Draw on the right, write (Umple) model code on the left. Analyse models and generate code. This tool stores your data in cookies and on a server. I understand. Click to learn about privacy. Download Donate For help: User manual Ask questions Report issue
trait TEquality{ Boolean isEqual(Object object); Boolean isNotEqual(Object object) Java { return isEqual(object) ? false : true; } mixset Numerical { Boolean isGreaterThan(Object object); Boolean isLessThan(Object object); } } class RealNumber { float value; isA TEquality; Boolean isEqual (Object object)Java { if(object instanceof RealNumber) return this.value == ((RealNumber) object).value; else return false; } } /* The below use statement generates an error in Umple when its activited. Because the trait TEquality has the Numerical mixset, and there is no implementaion for its methods (isGreaterThan and isLessThan). */ //use Numerical; //$?[End_of_model]$? // @@@skipphpcompile // @@@skippythoncompile - Contains Java Code