MyActivity.java :  » UML » umlatj » org » umlatj » behavior » Java Open Source

Java Open Source » UML » umlatj 
umlatj » org » umlatj » behavior » MyActivity.java
package org.umlatj.behavior;

import org.umlatj.action.Action;
import org.umlatj.activity.Activity;
import org.umlatj.kernel.Constraint;

@Activity
public class MyActivity {
  
  boolean called;

  @Action
  public MyOpaqueBehavior a() {
    return new MyOpaqueBehavior();
  }

  protected void a(MyOpaqueBehavior myOpaqueBehavior) {
    this.called = true;
  }

  @Action(preConditions = "test1 && test2")
  public void doSthg() {

  }

  @Constraint
  public boolean isTest1() {
    return true;
  }

  @Constraint
  public boolean isTest2() {
    return true;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.