-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked serialization extensions and format names
- Loading branch information
1 parent
702728a
commit fbac6dd
Showing
5 changed files
with
66 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,19 @@ | ||
Class { | ||
#name : 'OPFsmIncomingTransition', | ||
#superclass : 'Object', | ||
#instVars : [ | ||
'transition' | ||
], | ||
#superclass : 'OPFsmTransition', | ||
#category : 'OpenPonk-FSM-Adapters', | ||
#package : 'OpenPonk-FSM', | ||
#tag : 'Adapters' | ||
} | ||
|
||
{ #category : 'instance creation' } | ||
OPFsmIncomingTransition class >> of: aTransition [ | ||
^ self ofTransition: aTransition | ||
] | ||
|
||
{ #category : 'instance creation' } | ||
OPFsmIncomingTransition class >> ofTransition: aTransition [ | ||
^ self new | ||
transition: aTransition; | ||
yourself | ||
] | ||
|
||
{ #category : 'comparing' } | ||
OPFsmIncomingTransition >> = otherTransition [ | ||
^ self represents: otherTransition | ||
] | ||
|
||
{ #category : 'converting' } | ||
OPFsmIncomingTransition >> asTransition [ | ||
^ transition | ||
] | ||
|
||
{ #category : 'printing' } | ||
OPFsmIncomingTransition >> changed [ | ||
^ transition changed | ||
] | ||
|
||
{ #category : 'reflective operations' } | ||
OPFsmIncomingTransition >> doesNotUnderstand: aMessage [ | ||
^ aMessage sendTo: transition | ||
] | ||
|
||
{ #category : 'comparing' } | ||
OPFsmIncomingTransition >> hash [ | ||
^ transition hash | ||
] | ||
|
||
{ #category : 'testing' } | ||
OPFsmIncomingTransition >> isTransition [ | ||
OPFsmIncomingTransition class >> isDeprecated [ | ||
|
||
^ true | ||
] | ||
|
||
{ #category : 'printing' } | ||
OPFsmIncomingTransition >> printOn: aStream [ | ||
^ transition printOn: aStream | ||
] | ||
|
||
{ #category : 'comparing' } | ||
OPFsmIncomingTransition >> represents: otherTransition [ | ||
|
||
^ super = otherTransition or: [ | ||
transition == otherTransition or: [ transition = otherTransition ] ] | ||
] | ||
|
||
{ #category : 'accessing' } | ||
OPFsmIncomingTransition >> transition: aTransition [ | ||
transition := aTransition | ||
] | ||
{ #category : 'instance creation' } | ||
OPFsmIncomingTransition class >> new [ | ||
|
||
{ #category : 'printing' } | ||
OPFsmIncomingTransition >> when: anAnnouncementClass send: aSelector to: anObject [ | ||
^ transition when: anAnnouncementClass send: aSelector to: anObject | ||
^ self superclass new | ||
] |
19 changes: 19 additions & 0 deletions
19
repository/OpenPonk-FSM/OPFsmModelDeprecatedSerializer.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Class { | ||
#name : 'OPFsmModelDeprecatedSerializer', | ||
#superclass : 'OPFsmModelSerializer', | ||
#category : 'OpenPonk-FSM-Serialization', | ||
#package : 'OpenPonk-FSM', | ||
#tag : 'Serialization' | ||
} | ||
|
||
{ #category : 'as yet unclassified' } | ||
OPFsmModelDeprecatedSerializer class >> fileExtension [ | ||
|
||
^ #ston | ||
] | ||
|
||
{ #category : 'as yet unclassified' } | ||
OPFsmModelDeprecatedSerializer class >> formatName [ | ||
|
||
^ #'graphml-ston' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters