Skip to content

Conversation

leviathan747
Copy link
Collaborator

Recent changes to BridgePoint have made timestamp based on integer and not inst. Update the pyxtuml schema to reflect this.

@coveralls
Copy link
Collaborator

Coverage Status

Coverage remained the same at 80.388% when pulling 5c3003c on leviathan747:timestamp into 174553e on xtuml:master.

@john-tornblom
Copy link
Contributor

Do you think this change introduces incompatibility issues?

@leviathan747
Copy link
Collaborator Author

I do not believe so. @cortlandstarrett might have more to say, but without having intimate knowledge about the other MC's out there, I do not believe it will have large negative effects.

@cortlandstarrett
Copy link
Member

cortlandstarrett commented Jun 29, 2020 via email

@john-tornblom
Copy link
Contributor

Sure, but this changes complicates the maintenance, and motivates a major version bump of pyxtuml.
It would be nice to be able to support both to some extent, the .xtuml files contains version-info (prefixed with "persistence-version: "), but will be somewhat hacky imho.

What was the motivation behind this change? I never really liked having both timer handling and time in the same EE to begin with. The OAL language has syntax for handling timers, just not implemented in bridgepoint (see Executable UML: A Foundation for Model-driven Architecture for examples).

@cortlandstarrett
Copy link
Member

cortlandstarrett commented Jun 29, 2020 via email

@john-tornblom
Copy link
Contributor

Right. I would just have made a new package with EE+UserType out of this. I have several examples of similar stuff at: https://github.com/john-tornblom/mc_stdlib, working fine in both verifier and mc3020.

But if you really feel the need to break backwards compatibility, I'll merge this.

@cortlandstarrett
Copy link
Member

cortlandstarrett commented Jun 29, 2020 via email

@john-tornblom
Copy link
Contributor

Okey, but where does strings fit in to this?

@cortlandstarrett
Copy link
Member

cortlandstarrett commented Jun 30, 2020 via email

@john-tornblom
Copy link
Contributor

john-tornblom commented Jun 30, 2020

Hmmm, isn't it inst<Mapping>??

@cortlandstarrett
Copy link
Member

cortlandstarrett commented Jun 30, 2020 via email

@john-tornblom
Copy link
Contributor

So, can the date type also be update? Then, could inst_ref<Mapping> be removed/deprecated?

@cortlandstarrett
Copy link
Member

cortlandstarrett commented Jun 30, 2020 via email

@john-tornblom
Copy link
Contributor

Yea, UNIX time can be captured by an integer, but it is not unusual with other representation of date and time, see, e.g., https://docs.python.org/3/library/datetime.html (object) and https://docs.python.org/3/library/time.html#time.clock_settime (64bit floating point number)

@john-tornblom
Copy link
Contributor

Lets merge this into a version 3 branch, but also make sure we address related issues that might appear down the line before a stable major version bump appears on master. Sounds OK?

@cortlandstarrett
Copy link
Member

cortlandstarrett commented Jul 1, 2020 via email

@john-tornblom john-tornblom changed the base branch from master to develop/v3.0 July 2, 2020 18:38
@john-tornblom john-tornblom merged commit dc43765 into xtuml:develop/v3.0 Jul 2, 2020
@john-tornblom
Copy link
Contributor

Install with: python -m pip install git+https://github.com/xtuml/pyxtuml.git@develop/v3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants