org.unizone.finance.equity

Type Volume

org.unizone.0.5810
Instance of Type
Inheriting from SourceAdapterSingle

Type dataValue
org.uninode.Type.displayPattern{att:org.unizone.source.Source.displayName}
org.unizone.source.Source.valueAttribute
org.uninode.Resource.resourceType'adapter'
org.uninode.Resource.label
org.uninode.Resource.resourceOfList{org.unizone.finance.equity.Equity}
org.uninode.Listable.resourcesReference[org.uninode.Listable.resources] of org.unizone.finance.equity.Volume

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
StringdisplayName
The display name is the name that is shown in lists, displays and graphs.
Sourceorg.unizone.0.4001essential
AttributevalueAttribute
The value attribute is used for determining the default value that should be used for displaying this source in a graph.
Sourceorg.unizone.0.4011type
inheritValue
SignaturevalueType
The value type determines which axes should be used in graphs.
Sourceorg.unizone.0.4002inheritValue
SourcesourceSourceAdapterSingleorg.unizone.0.4051

Method summaryDefined inOverridesProperties
voidactivateListable
voidcheckRangeSourceAdapterSingleSource
voiddesignEditor(WidgetWorkspace ws)Listable
voidgenerateScript(ScriptGenerationInfo info)SourceAdapterSingleScriptGenerator
BooleanisResourceOf(Listable listable, Signature aspect)Mixabletype
ListablemixOn(Mixable mix)Mixable
ListablemixWith(Mixable mix)Mixable
StringresourceStringListableintrospection
voidsetSource(Source source)SourceAdapterSingle
SourcesourceSourceAdapterSingle
voidXXXcom.nodelab.java.sourceadaptersingle.CheckRangeSourceAdapterSingle
SignatureXXXcom.nodelab.java.sourceadaptersingle.ValueTypeSourceAdapterSingle
voidcom.nodelab.java.source.ActivateSourceListable
Listablecom.nodelab.java.source.MixWithMiSourceMixable

Script summary
com.nodelab.0.10408
import com.nodelab.view.DiagramPainter;
import com.nodelab.view.DiagramPainterBar;

type Type diagramPainter() {
  return DiagramPainterBar;
}
org.unizone.0.8533
import org.unizone.finance.equity.Equity;

constructor() {
  SourceAdapterSingle:();
}
constructor(Equity src) {
  SourceAdapterSingle:();
  setSource(src);
}
type Boolean isResourceOf(Listable node, Signature aspect) {
  if (aspect == 'adapter') return true;
  false;
}
String displayName() {
  "volume of " + source.toString;
}
Signature valueType() {
  'volume';
}
Real evaluate() {
  Equity{source}.volume.evaluate;
}
void prepareRange() {
  Equity{source}.volume.prepareRange;
}

/*
constructor() {
  Source:();
}
class Boolean isResourceOf(Listable node, Symbol aspect) {
  if (aspect == #adaptors) return true;
  false;
}
class String resourceLabel() "Name of resource" {
  "volume";
}
String resourceString() "Name of resource" {
  "volume of " + nextSource().toString();
}
Mixable mixWith(Mixable item) {
  if (item.class.subclassOf(Source)) {
    setNextSource(Source{item});
    return this;
  }
  return Source:mixWith(item);
}
Real aspectReal(Symbol aspect) {
  if (aspect == #min) return 0;
  if (aspect == #max) return nextSource().aspectReal(#volume);
  if (aspect == #value) return nextSource().aspectReal(#volume);
  null;
}
Object aspectValue(Symbol aspect) {
  if (aspect == #min) return 0;
  if (aspect == #max) return nextSource().aspectValue(#volume);
  if (aspect == #value) return nextSource().aspectValue(#volume);
  null;
}
Symbol generalizeAspect(Symbol aspect) { 
  if (aspect == #volume) return #value;
  return null;
}
introspect Class diagramPainter() {
  return DiagramPainterBar;
}
String instanceScript(InstanceScriptInfo info) {
  nextSource().instanceScript(info);
  info.objectId(this, AdaptorVolume, "vol");
}
String initScript(InstanceScriptInfo info) {
  "  " + info.methodPrefix(this) + "setNextSource(" + nextSource().instanceScript(info) + ");
";
}

*/