com.nodelab.equity

Type VolumeShares

com.nodelab.0.10181
Instance of Type
Inheriting from Calculator

Type dataValue
org.uninode.Type.displayPatterna {att:org.uninode.Node.type}
org.uninode.Resource.resourceType
org.uninode.Resource.label
org.uninode.Resource.resourceOfList{}
org.uninode.Listable.resourcesReference[org.uninode.Listable.resources] of com.nodelab.equity.VolumeShares

Attribute summaryDefined inUninode® IdPropertiesDefault
Reference[org.uninode.Listable.resources]resourcesListableorg.uninode.0.2001type
StringtoString
This is the display string.
Nodeorg.uninode.0.102
Typetype
The type of an object determines the behaviour and attributes of the object.
Nodeorg.uninode.0.101
StringuriNodeorg.uninode.0.103
StringlabelResourceorg.uninode.0.2041type
List[Type]resourceOfResourceorg.uninode.0.2042type
SignatureresourceType
This defines the type of resource. It can be 'view', 'adapter' or 'action'
Resourceorg.uninode.0.2043type

Method summaryDefined inOverridesProperties
voidactivateListable
voiddesignEditor(WidgetWorkspace ws)Listable
voidgenerateScript(ScriptGenerationInfo info)
Prepare and generate initialization code
ScriptGenerator
voidinstanceScript(ScriptGenerationInfo info)
return either variable name (like 'ave1', found in info), or a constructor call (new ...)
ScriptGenerator
BooleanisResourceOf(Listable listable, Signature aspect)Mixabletype
ListablemixOn(Mixable mix)Mixable
ListablemixWith(Mixable mix)Mixable
StringresourceStringListableintrospection
voidcom.nodelab.java.view.ActivateViewListable
Intcom.nodelab.java.view.ActorCountView
Actorcom.nodelab.java.view.ActorForSoView
Actorcom.nodelab.java.view.AddSourceSoView
voidcom.nodelab.java.view.ConstructorView
voidcom.nodelab.java.view.DesignViewWWView
Dimensioncom.nodelab.java.view.DimensionAtInView
Intcom.nodelab.java.view.DimensionCountView
Dimensioncom.nodelab.java.view.DimensionTypeTyView
voidcom.nodelab.java.view.DragMouseReReReReView
voidcom.nodelab.java.view.GenerateScriptSIViewScriptGenerator
Actorcom.nodelab.java.view.GetActorInView
voidcom.nodelab.java.view.InstallView
voidcom.nodelab.java.view.InstanceScriptSIViewScriptGenerator
Booleancom.nodelab.java.view.IsPerpetualView
voidcom.nodelab.java.view.PrepareView
Collection[Type]com.nodelab.java.view.RequiredDimensionsView
Scenecom.nodelab.java.view.SceneView
WidgetWorkspacecom.nodelab.java.view.WorkspaceView

Script summary
com.nodelab.0.10386
/*
	aBaliPluginTable tableAspect value = #volumeShares ifTrue: [
		from := aBaliPluginTable display dimHistory from.
		focus :=  aBaliPluginTable display dimHistory focus.
		daySet := Set new.
		env := aBaliPluginTable display envDimensions.
		env localAt: 'cond_history_resolution' put: #day.
		env localAt: 'cond_history_to' put: focus.
		self collectStepsDim: #dimHistory environment: env into: daySet.
		dayList := daySet asList.
		dayList sortWith: [:a :b | a < b].
		i := 1.
		[i < dayList size] whileTrue: [
			((dayList at: i) equalTo: (dayList at: i + 1) type: #day)
				ifTrue: [dayList removeAtIndex: i]
				ifFalse: [i := i + 1]].
		volumeTable := TwoDList columns: 8 rows: (rows := dayList size + 1).
		1 to: 8 do: [:k | volumeTable at: k@rows put: 0].
		1 to: dayList size do: [:j |
			env localAt: 'cond_history_resolution' put: #hour.
			11 to: 17 do: [:hr | 
				env 
					localAt: 'cond_history'
					put: (BaliTime fromSeconds: ((dayList at: j) daysStart asSeconds + (3600 * hr))).
				volumeTable at: (hr - 10)@j put: (self valueAspect: #volume environment: env)].
			volumeTable at: 8@j put: (volumeTable at: 7@j).
			17 to: 12 by: -1 do: [:hr |
				(val1 := volumeTable at: (hr-10)@j) isNil ifFalse: [
					(val2 := volumeTable at: (hr-11)@j) isNil ifFalse: [
						volumeTable at: (hr - 10)@j put: val1 - val2.
						j < dayList size ifTrue: [
							volumeTable at: (hr - 10)@rows put: (volumeTable at: (hr - 10)@rows) + val1 - val2]]]].
			j < dayList size ifTrue: [
				(volumeTable at: 8@j) isNil ifFalse: [
					volumeTable at: 8@rows put: (volumeTable at: 8@rows) + (volumeTable at: 8@j)].
				(volumeTable at: 1@j) isNil ifFalse: [
					volumeTable at: 1@rows put: (volumeTable at: 1@rows) + (volumeTable at: 1@j)]]].
		dayList removeLast.
		list := List new.
		11 to: 17 do: [:hr |
			list add: ((BaliTime fromSeconds: (focus daysStart asSeconds + (hr * 3600))) printType: #hour).
			list add: (GotheTools 
				formatFloat: 100 * (volumeTable at: (hr - 10)@rows) / (volumeTable at: 8@rows)
				digits: 2) , '%'.
			list add: (GotheTools formatInteger: ((volumeTable at: (hr - 10)@rows) / dayList size) rounded).
			list add: (GotheTools formatInteger: (volumeTable at: (hr - 10)@(rows - 1))).
			].
		list 
			add: 'Total'; 
			add: ''; 
			add: (GotheTools formatInteger: ((volumeTable at: 8@rows) / dayList size) rounded); 
			add: (GotheTools formatInteger: (volumeTable at: 8@(rows - 1))).
		list add: ' day count'; add: dayList size printString; add: ''; add: ''.
		aBaliPluginTable tableList: (TwoDList on: list columns: 4).
		aBaliPluginTable table columnLabelsFormats: #right.
		aBaliPluginTable table elementFormats: #right.
		aBaliPluginTable table columnLabelsArray: #('time' 'prognosis' 'prognosis volume' 'actual volumes').
		^nil].
	super setTableFor: aBaliPluginTable!


*/