WIP: DATA Représentation Dilemna: Client <vs> XML Initial commit

This commit is contained in:
Jean Sirmai 2021-12-20 22:00:16 +01:00
parent f230ad3a73
commit 5a52450ae1
Signed by: jean
GPG Key ID: FB3115C340E057E3
3 changed files with 7 additions and 5 deletions

View File

@ -446,7 +446,9 @@ class Model:
self.__transitions = child
def get_space(self, space_id, x_val, site_val):
return testmodel.get_states().get_space(space_id).get_weight(x_val, site_val)
pass
# return testmodel.get_states().get_space(space_id).
# get_weight(x_val, site_val)
def get_identity(self):
return Identity(self.__identity)

View File

@ -101,6 +101,7 @@ with open('input.txt', 'r') as f:
##
testmodel.get_states().get_space(space_id).
print("\n*** Conditions tree ***")
print(type(model.testmodel.get_conditions()))
@ -157,4 +158,4 @@ for k in range(0, size + 1):
print(k + 1, end=' ' + ' ' * sites * 2)
print('\n', end = "")
"""
"""

View File

@ -6,7 +6,7 @@ sites = int(model.testmodel.get_parameters().spaceparam.get_site_multiplicity())
nb_arrows = int(model.testmodel.get_states().get_space(0).get_nb_arrows())
print("\n space size = ", size, " nb de sites par cellule = ", sites,
print("\nspace size = ", size, " nb de sites par cellule = ", sites,
" nb total de flèches dans l'espace = ", nb_arrows)
print(' | ', end=' ')
@ -46,5 +46,4 @@ for k in range(0, size + 1):
else:
print(k + 1, end=' ' + ' ' * sites * 2)
print('\n', end = "")
print('\n', end="")