Copyright 1984-2009 The MathWorks, Inc. Version 7.9.0.529 (R2009b) 64-bit (glnxa64) August 12, 2009 ---------------------------------------------------------- Your MATLAB license will expire in 56 days. Please contact your system administrator or The MathWorks to renew this license. ---------------------------------------------------------- To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com. >> run -- running @test_1 x = Test1 handle Properties: p1: 0 Properties of x: p1 => edit Test1.m and uncomment property "p2" [press when done] y = Test1 handle Properties: p1: 0 Properties of y: p1 -- running @test_2 cb1 = meta.class handle Package: meta Properties: Name: 'Test2_b' Description: '' DetailedDescription: '' Hidden: 0 Sealed: 0 ConstructOnLoad: 0 InferiorClasses: {0x1 cell} Properties: {0x1 cell} Methods: {18x1 cell} Events: {[1x1 meta.event]} SuperClasses: {[1x1 meta.class]} ContainingPackage: {} Methods of Test2_b: m1, Test2_b, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj => edit Test2_a.m and make method block sealed [press when done] cb2 = meta.class handle Package: meta Properties: Name: 'Test2_b' Description: '' DetailedDescription: '' Hidden: 0 Sealed: 0 ConstructOnLoad: 0 InferiorClasses: {0x1 cell} Properties: {0x1 cell} Methods: {18x1 cell} Events: {[1x1 meta.event]} SuperClasses: {[1x1 meta.class]} ContainingPackage: {} Methods of Test2_b: m1, Test2_b, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x = Test2_b handle with no properties. x.m1() = 1 -- running @test_3 Methods of x: m1, Test3, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = 1 => edit @Test3/m1.m and change output value to be 0 [press when done] x.m1 () = 1 y.m1 () = 1 -- running @test_4 x = Test4 handle Properties: p1: 4 Properties of x: p1 Methods of x: m1, Test4, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = 4 Warning: The class file for 'Test4' has changed, but the change cannot be applied because objects based on the old class file still exist. Use the 'clear' command to remove these objects first. > In run>print_object_properties at 50 In run>test_4 at 97 In run>run_test at 17 In run at 7 Properties of x: p1 Warning: The class file for 'Test4' has changed, but the change cannot be applied because objects based on the old class file still exist. Use the 'clear' command to remove these objects first. > In run>print_object_methods at 54 In run>test_4 at 98 In run>run_test at 17 In run at 7 Methods of x: m1, Test4, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = -- error occured while executing @test_4 Error using ==> m1 Method 'm1' is not defined for class 'Test4' or is removed from MATLAB's search path. -- running @test_5 x = Test5_b handle Properties: p1: 1 p0: 0 Properties of x: p1, p0 Methods of x: m1, Test5_b, m0, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = 1 Properties of x: p1, p0 Methods of x: m1, Test5_b, m0, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = -- error occured while executing @test_5 Method 'm1' is not defined for class 'Test5_a' or is removed from MATLAB's search path. -- running @test_6 x = Test6 handle Properties: p6: 6 Properties of x: p6 Methods of x: m1, Test6, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = 6 Warning: The methods for class 'Test6' now come from directory '/home/godfrey/mdg/octave_test/classes/octave-test/test6/d2'. This is not the original directory '/home/godfrey/mdg/octave_test/classes/octave-test/test6/d1' where the class is defined. This was probably caused by a path change. If you use the methods now, you might get unexpected results. > In run>print_object_properties at 50 In run>test_6 at 125 In run>run_test at 17 In run at 9 Properties of x: p6 Methods of x: m1, Test6, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = -- error occured while executing @test_6 No appropriate method, property, or field p6b for class Test6. -- running @test_7 x = Test7_b handle Properties: p1: 1 p0: 0 Properties of x: p1, p0 Methods of x: m1, Test7_b, m0, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = 1 Properties of x: p1, p0 Methods of x: m1, Test7_b, m0, eq, ne, lt, gt, le, ge, delete, isvalid, findprop, notify, notify, addlistener, addlistener, addlistener, addlistener, findobj x.m1 () = Warning: The methods for class 'Test7_a' now come from directory '/home/godfrey/mdg/octave_test/classes/octave-test/test7/base_b'. This is not the original directory '/home/godfrey/mdg/octave_test/classes/octave-test/test7/base_a' where the class is defined. This was probably caused by a path change. If you use the methods now, you might get unexpected results. > In Test7_b>Test7_b.m1 at 7 In run>test_7 at 145 In run>run_test at 17 In run at 10 -- error occured while executing @test_7 No appropriate method, property, or field m2 for class Test7_b. >>