These are the attributes used in the Types and Operations cheatsheet.
Download this page as a text file.

<Class name="TypesAndOperationsExamples">
    <!-- +++++++++++++++++++++++++++++++++ -->
    <!-- Attributes used in examples -->
    <!-- +++++++++++++++++++++++++++++++++ -->
    <Attribute name="timelineListOfNumber">
        <type>
            <javaclass name="curam.creole.value.Timeline">
                <javaclass name="List">
                    <javaclass name="Number" />
                </javaclass>
            </javaclass>
        </type>
        <derivation>
            <Timeline>
                <intervaltype>
                    <javaclass name="List">
                        <javaclass name="Number" />
                    </javaclass>
                </intervaltype>
                <initialvalue>
                    <fixedlist>
                        <listof>
                            <javaclass name="Number" />
                        </listof>
                        <members>
                            <Number value="0" />
                            <Number value="0" />
                        </members>
                    </fixedlist>
                </initialvalue>
                <intervals>
                    <fixedlist>
                        <listof>
                            <javaclass name="curam.creole.value.Interval">
                                <javaclass name="List">
                                    <javaclass name="Number" />
                                </javaclass>
                            </javaclass>
                        </listof>
                        <members>
                            <Interval>
                                <intervaltype>
                                    <javaclass name="List">
                                        <javaclass name="Number" />
                                    </javaclass>
                                </intervaltype>
                                <start>
                                    <Date value="2010-01-01" />
                                </start>
                                <value>
                                    <fixedlist>
                                        <listof>
                                            <javaclass name="Number" />
                                        </listof>
                                        <members>
                                            <Number value="3000" />
                                            <Number value="9000" />
                                        </members>
                                    </fixedlist>
                                </value>
                            </Interval>
                            <Interval>
                                <intervaltype>
                                    <javaclass name="List">
                                        <javaclass name="Number" />
                                    </javaclass>
                                </intervaltype>
                                <start>
                                    <Date value="2020-01-01" />
                                </start>
                                <value>
                                    <fixedlist>
                                        <listof>
                                            <javaclass name="Number" />
                                        </listof>
                                        <members>
                                            <Number value="4000" />
                                            <Number value="10000" />
                                        </members>
                                    </fixedlist>
                                </value>
                            </Interval>
                        </members>
                    </fixedlist>
                </intervals>
            </Timeline>
        </derivation>
    </Attribute>
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Non-Timeline Types and Operations examples -->
    <!-- Boolean -->
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <Attribute name="createBoolean">
        <type>
            <javaclass name="Boolean" />
        </type>
        <derivation>
            <true />
        </derivation>
    </Attribute>
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Non-Timeline Types and Operations examples -->
    <!-- Date -->
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <Attribute name="createDate">
        <type>
            <javaclass name="curam.util.type.Date" />
        </type>
        <derivation>
            <Date value="1990-10-23" />
        </derivation>
    </Attribute>
    <Attribute name="periodOfTimeBetweenTwoDates">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <periodlength endDateInclusion="inclusive" unit="days">
                <Date value="2020-01-01" />
                <Date value="2020-02-10" />
            </periodlength>
        </derivation>
    </Attribute>
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Non-Timeline Types and Operations examples -->
    <!-- Null -->
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <Attribute name="createNull">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <null />
        </derivation>
    </Attribute>
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Non-Timeline Types and Operations examples -->
    <!-- Numeric -->
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <Attribute name="createNumber">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <Number value="278" />
        </derivation>
    </Attribute>
    <Attribute name="addANumberToAnother">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <arithmetic operation="+">
                <Number value="3" />
                <Number value="2" />
            </arithmetic>
        </derivation>
    </Attribute>
    <Attribute name="roundedAddition">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <arithmetic decimalPlaces="1" operation="+" rounding="half_up">
                <Number value="1.23" />
                <Number value="3.45" />
            </arithmetic>
        </derivation>
    </Attribute>
    <Attribute name="chainedArithmeticOperation">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <arithmetic operation="*">
                <arithmetic operation="+">
                    <Number value="3" />
                    <Number value="2" />
                </arithmetic>
                <Number value="4" />
            </arithmetic>
        </derivation>
    </Attribute>
    <Attribute name="sumNumbers">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <sum>
                <fixedlist>
                    <listof>
                        <javaclass name="Number" />
                    </listof>
                    <members>
                        <Number value="30000.00" />
                        <Number value="50000.00" />
                        <Number value="25000.00" />
                    </members>
                </fixedlist>
            </sum>
        </derivation>
    </Attribute>
    <Attribute name="maxNumber">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <max>
                <fixedlist>
                    <listof>
                        <javaclass name="Number" />
                    </listof>
                    <members>
                        <Number value="30000.00" />
                        <Number value="50000.00" />
                        <Number value="25000.00" />
                    </members>
                </fixedlist>
            </max>
        </derivation>
    </Attribute>
    <Attribute name="minNumber">
        <type>
            <javaclass name="Number" />
        </type>
        <derivation>
            <min>
                <fixedlist>
                    <listof>
                        <javaclass name="Number" />
                    </listof>
                    <members>
                        <Number value="30000.00" />
                        <Number value="50000.00" />
                        <Number value="25000.00" />
                    </members>
                </fixedlist>
            </min>
        </derivation>
    </Attribute>
    <!-- ++++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Non-Timeline Types and Operations examples -->
    <!-- String -->
    <!-- ++++++++++++++++++++++++++++++++++++++++++++ -->
    <Attribute name="createString">
        <type>
            <javaclass name="String" />
        </type>
        <derivation>
            <String value="Hello, World!" />
        </derivation>
    </Attribute>
    <Attribute name="concatenateStrings">
        <type>
            <javaclass name="curam.creole.value.Message" />
        </type>
        <derivation>
            <concat>
                <fixedlist>
                    <listof>
                        <javaclass name="Object" />
                    </listof>
                    <members>
                        <String value="Hello," />
                        <String value=" " />
                        <String value="World!" />
                    </members>
                </fixedlist>
            </concat>
        </derivation>
    </Attribute>
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Non-Timeline Types and Operations examples -->
    <!-- Code Table -->
    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
    <Attribute name="createCodeTable">
        <type>
            <codetableentry table="Product" />
        </type>
        <derivation>
            <Code table="Product">
                <String value="SM123" />
            </Code>
        </derivation>
    </Attribute>
    <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Non-Timeline Types and Operations examples -->
    <!-- Localizalbe text -->
    <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Create a .property file before validate this example -->
    <!--
    <Attribute name="localizableMessage">
        <type>
            <javaclass name="curam.creole.value.Message" />
        </type>
        <derivation>
            <ResourceMessage key="simpleGreeting" resourceBundle="curam.creole.example.Messages" />
        </derivation>
    </Attribute>
    -->
    <!-- Create a .property file before validate this example -->
    <!--
    <Attribute name="localizableMessageWithParameter">
        <type>
            <javaclass name="curam.creole.value.Message" />
        </type>
        <derivation>
            <ResourceMessage key="parameterizedGreeting" resourceBundle="curam.creole.example.Messages">
                <String value="CER Expert" />
            </ResourceMessage>
        </derivation>
    </Attribute>
    -->
    <!-- Create a .property file before validate this example -->
    <!--
    <Attribute name="localizableNumberFormat">
        <type>
            <javaclass name="curam.creole.value.Message" />
        </type>
        <derivation>
            <ResourceMessage key="incomeStatement" resourceBundle="curam.creole.example.Messages">
                <reference attribute="income" />
            </ResourceMessage>
        </derivation>
    </Attribute>
    -->
    <Attribute name="markup">
        <type>
            <javaclass name="curam.creole.value.Message" />
        </type>
        <derivation>
            <XmlMessage>
                <b>Some in bold text.</b>
            </XmlMessage>
        </derivation>
    </Attribute>
    <Attribute name="tokenReplacementInMarkup">
        <type>
            <javaclass name="curam.creole.value.Message" />
        </type>
        <derivation>
            <XmlMessage>
                <p />This calculated number will appear in italics:
		    <i>
		        <replace>
			    <arithmetic operation="+">
		      	        <Number value="1.23" />
		                <Number value="3.45" />
			    </arithmetic>
                        </replace>
                    </i>
            </XmlMessage>
        </derivation>
    </Attribute>
    <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Non-Timeline Types and Operations examples -->
    <!-- FrequencyPattern -->
    <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <Attribute name="createFrequencyPattern">
        <type>
            <javaclass name="curam.util.type.FrequencyPattern" />
        </type>
        <derivation>
            <FrequencyPattern value="100100100" />
        </derivation>
    </Attribute>
    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- Types and Operations examples -->
    <!-- Timelines -->
    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <Attribute name="createForerverTimeline">
        <type>
            <javaclass name="curam.creole.value.Timeline">
                <javaclass name="Number" />
            </javaclass>
        </type>
        <derivation>
            <timelineoperation>
                <Number value="10000" />
            </timelineoperation>
        </derivation>
    </Attribute>
    <Attribute name="createTimelineWithASingleDefinedInterval">
        <type>
            <javaclass name="curam.creole.value.Timeline">
                <javaclass name="Number" />
            </javaclass>
        </type>
        <derivation>
            <existencetimeline>
                <intervaltype>
                    <javaclass name="Number" />
                </intervaltype>
                <intervalfromdate>
                    <Date value="2010-01-01" />
                </intervalfromdate>
                <intervaltodate>
                    <Date value="2019-12-31" />
                </intervaltodate>
                <preExistenceValue>
                    <Number value="0" />
                </preExistenceValue>
                <existenceValue>
                    <Number value="10000" />
                </existenceValue>
                <postExistenceValue>
                    <Number value="0" />
                </postExistenceValue>
            </existencetimeline>
        </derivation>
    </Attribute>
    <Attribute name="createTimelineWithIntervals">
        <type>
            <javaclass name="curam.creole.value.Timeline">
                <javaclass name="Number" />
            </javaclass>
        </type>
        <derivation>
            <Timeline>
                <intervaltype>
                    <javaclass name="Number" />
                </intervaltype>
                <initialvalue>
                    <Number value="0" />
                </initialvalue>
                <intervals>
                    <fixedlist>
                        <listof>
                            <javaclass name="curam.creole.value.Interval">
                                <javaclass name="Number" />
                            </javaclass>
                        </listof>
                        <members>
                            <Interval>
                                <intervaltype>
                                    <javaclass name="Number" />
                                </intervaltype>
                                <start>
                                    <Date value="2010-01-01" />
                                </start>
                                <value>
                                    <Number value="10000" />
                                </value>
                            </Interval>
                            <Interval>
                                <intervaltype>
                                    <javaclass name="Number" />
                                </intervaltype>
                                <start>
                                    <Date value="2020-01-01" />
                                </start>
                                <value>
                                    <Number value="15000" />
                                </value>
                            </Interval>
                        </members>
                    </fixedlist>
                </intervals>
            </Timeline>
        </derivation>
    </Attribute>
    <Attribute name="operateWithTimelines">
        <type>
            <javaclass name="curam.creole.value.Timeline">
                <javaclass name="Number" />
            </javaclass>
        </type>
        <derivation>
            <timelineoperation>
                <sum>
                    <dynamiclist>
                        <list>
                            <intervalvalue>
                                <reference attribute="timelineListOfNumber" />
                            </intervalvalue>
                        </list>
                        <listitemexpression>
                            <current />
                        </listitemexpression>
                    </dynamiclist>
                </sum>
            </timelineoperation>
        </derivation>
    </Attribute>
</Class>

Join The Discussion

Your email address will not be published. Required fields are marked *