2022-03-21 18:03:15 +01:00
|
|
|
Class {
|
|
|
|
#name : #DiyaApplicationModel,
|
|
|
|
#superclass : #DiyaSingleton,
|
|
|
|
#instVars : [
|
2022-08-15 12:28:09 +02:00
|
|
|
'node',
|
|
|
|
'am',
|
2022-08-16 00:59:35 +02:00
|
|
|
'target',
|
|
|
|
'context'
|
2022-03-21 18:03:15 +01:00
|
|
|
],
|
|
|
|
#category : #'Diya-Applications'
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaApplicationModel >> am [
|
|
|
|
^ am
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaApplicationModel >> cleanup [
|
|
|
|
self subclassResponsibility
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaApplicationModel >> context [
|
2022-08-14 18:13:23 +02:00
|
|
|
^DiyaRenderer
|
2022-03-21 18:03:15 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #initialization }
|
|
|
|
DiyaApplicationModel >> initialize [
|
|
|
|
super initialize.
|
2022-08-16 00:59:35 +02:00
|
|
|
context := DiyaRenderer
|
2022-03-21 18:03:15 +01:00
|
|
|
]
|
|
|
|
|
2022-08-16 00:59:35 +02:00
|
|
|
{ #category : #'as yet unclassified' }
|
|
|
|
DiyaApplicationModel >> loadNode [
|
|
|
|
|pseudoRoot|
|
|
|
|
pseudoRoot := DiyaRootNode new.
|
|
|
|
pseudoRoot addNode: node.
|
|
|
|
pseudoRoot processQueue do:[:el|
|
|
|
|
el process
|
|
|
|
].
|
2022-03-21 18:03:15 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
2022-08-15 12:28:09 +02:00
|
|
|
DiyaApplicationModel >> node [
|
|
|
|
^ node
|
2022-03-21 18:03:15 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
2022-08-15 12:28:09 +02:00
|
|
|
DiyaApplicationModel >> onloaded: aBlock [
|
|
|
|
self subclassResponsibility
|
2022-03-21 18:03:15 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
2022-08-15 12:28:09 +02:00
|
|
|
DiyaApplicationModel >> quit [
|
2022-08-16 00:59:35 +02:00
|
|
|
node empty.
|
2022-08-15 12:28:09 +02:00
|
|
|
self cleanup
|
2022-03-21 18:03:15 +01:00
|
|
|
]
|
2022-08-16 00:59:35 +02:00
|
|
|
|
|
|
|
{ #category : #initialization }
|
|
|
|
DiyaApplicationModel >> target: aNode [
|
|
|
|
target := aNode.
|
|
|
|
]
|