Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Identify SutStates and Actions by hash codes #27

Closed
tdauth opened this issue Apr 3, 2019 · 0 comments
Closed

Identify SutStates and Actions by hash codes #27

tdauth opened this issue Apr 3, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@tdauth
Copy link
Contributor

tdauth commented Apr 3, 2019

In the legacy code an MD5 checksum was used for the identifcation of states (not for the serialization).
We do not want to store the whole XML structure of states which would take too much space.
Instead we want to generate a unique checksum/hash as identifier.
We cannot reproduce the SutState or Action from this identifer but it does not matter for the monkey who only needs to know for its current SutState if it has already been there.
Additional properties for the states and actions could still be added in the future.

@tdauth tdauth added the enhancement New feature or request label Apr 3, 2019
@tdauth tdauth self-assigned this Apr 3, 2019
tdauth added a commit that referenced this issue Apr 3, 2019
We use a SHA-256 hash based on the binary object stream of serializables.
We provide two difference classes for SutStates and Actions which can
get more properties in the future.
tdauth added a commit that referenced this issue Apr 4, 2019
rebazer added a commit that referenced this issue Apr 4, 2019
@tdauth tdauth closed this as completed Apr 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant