goldfish brain – using time in a model?

homepage Forums BridgePoint/xtUML Usage and Training goldfish brain – using time in a model?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5907
    sfinnie
    Participant

    It’s been a while and the grey matter is creaking.

    How do I use the time / timer functions? I have some OAL in a state that fails to parse:

    [code title=””]self.commitmentDate = TIM::current_date();

    create event instance cooling_off_complete of Commitment2:cooling_off_complete() to self;
    cooling_off_period = TIM::timer_start(microseconds: 30*24*60*50*1000, cooling_off_complete);
    [/code]

    The TIM external entity isn’t found on lines 1 & 3. I can’t remember how to add it – would be grateful of a reminder.

    Thanks,
    Scott.

    #5908
    keithbrown
    Keymaster

    Hi Scott,

    Add a new package to your model, then right-click on it and in the CME pick “Add built-in external entities”

    Of course, you can also copy and paste EEs from one model (like example GPS Watch or MicrowaveOven) to another.

    Best,
    Keith

    #5914
    sfinnie
    Participant

    Ahh – easy when you know how :)

    Thanks Keith.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.