Package ptolemy.cg.lib
Class Profile.ProfileActor
- java.lang.Object
-
- ptolemy.cg.lib.Profile.ProfileActor
-
- Enclosing class:
- Profile
public static class Profile.ProfileActor extends java.lang.ObjectA class for actors in a graph information.
-
-
Constructor Summary
Constructors Constructor Description ProfileActor(java.lang.String name, boolean original)Create a Profile Actor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Return the name of this ProfileActor.ProfilegetProfile()Get the profile.booleanisOriginal()Return if an actor is an original ptolemy actor or not.
-
-
-
Constructor Detail
-
ProfileActor
public ProfileActor(java.lang.String name, boolean original) throws IllegalActionExceptionCreate a Profile Actor.- Parameters:
name- The name of the actor.original- True if this actor is original?- Throws:
IllegalActionException- Not thrown in this base clasee.
-
-
Method Detail
-
isOriginal
public boolean isOriginal()
Return if an actor is an original ptolemy actor or not.- Returns:
- true is the actor is an original ptolemy actor like Ramp, false if the actor is generated from some composite actor, thus it has profile
-
getName
public java.lang.String getName()
Return the name of this ProfileActor.- Returns:
- the name of this ProfileActor
-
getProfile
public Profile getProfile() throws IllegalActionException
Get the profile.- Returns:
- the profile.
- Throws:
IllegalActionException- If there is a problem loading the class from the $HOME/cg directory.
-
-