hep.aida.ref
Class ManagedObject

java.lang.Object
  extended by hep.aida.ref.event.AIDAObservable
      extended by hep.aida.ref.ManagedObject
All Implemented Interfaces:
hep.aida.dev.IDevManagedObject, IManagedObject, Connectable
Direct Known Subclasses:
AbstractBaseHistogram, AbstractIFunction, AbstractTuple, BaseModelFunction, ContainerManagedObject, DataPointSet, Folder, Link, SumOfFunctions

public class ManagedObject
extends AIDAObservable
implements Connectable, hep.aida.dev.IDevManagedObject

An object which can be stored in a tree. Implementation of IManagedObject.


Constructor Summary
ManagedObject(String name)
          Creates a new instance of ManagedObject.
 
Method Summary
 boolean isFillable()
           
 String name()
          Get the name of this ManagedObject.
 void setFillable(boolean fillable)
          If ManagedObject is fillable, it can modified.
 void setName(String name)
          Set the name of this ManagedObject.
 String type()
          Get the type of an IManagedObject.
static String typeForClass(Class c)
           
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ref.event.Connectable
isConnected, setConnected
 

Constructor Detail

ManagedObject

public ManagedObject(String name)
Creates a new instance of ManagedObject.

Parameters:
name - The name of the ManagedObject as it will appear in the Tree.
Method Detail

setFillable

public void setFillable(boolean fillable)
If ManagedObject is fillable, it can modified. othervisw throws ReadOnlyException.


isFillable

public boolean isFillable()

name

public String name()
Get the name of this ManagedObject. Names can only be changed using the ITree.mv().

Specified by:
name in interface IManagedObject
Returns:
The name of the ManagedObject.

setName

public void setName(String name)
Set the name of this ManagedObject.

Specified by:
setName in interface hep.aida.dev.IDevManagedObject
Parameters:
name - The new name of the ManagedObject.

type

public String type()
Description copied from interface: IManagedObject
Get the type of an IManagedObject. The same string as the ITree::listObjectTypes() returns.

Specified by:
type in interface IManagedObject
Returns:
The type of the IManagedObject.

typeForClass

public static String typeForClass(Class c)


jHepWork 3.2 © jWork.org