|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.actor.TypeEvent
public class TypeEvent
A TypeEvent represents a type change on a Typeable object. This event is generated by the Typeable whose type is changed, and is passed to the type change listeners to notify them about the change.
TypeListener
Green (cxh) |
Green (yuhong) |
Field Summary | |
---|---|
private Type |
_newType
|
private Type |
_oldType
|
private Typeable |
_typeable
|
Constructor Summary | |
---|---|
TypeEvent(Typeable typeable,
Type oldType,
Type newType)
Construct a TypeEvent, with the specified Typeable and the old and new types. |
Method Summary | |
---|---|
Type |
getNewType()
Return the new type. |
Type |
getOldType()
Return the old type. |
NamedObj |
getSource()
Return the Typeable whose type is changed. |
java.lang.String |
toString()
Return a string description for this type change. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Typeable _typeable
private Type _oldType
private Type _newType
Constructor Detail |
---|
public TypeEvent(Typeable typeable, Type oldType, Type newType)
typeable
- The Typeable whose type is changed.oldType
- The type of the Typeable before the change.newType
- The type of the Typeable after the change.Method Detail |
---|
public Type getNewType()
public Type getOldType()
public NamedObj getSource()
getSource
in interface DebugEvent
public java.lang.String toString()
toString
in interface DebugEvent
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |