Package repast.simphony.ui.probe
Class ProbeIntrospector
- java.lang.Object
-
- repast.simphony.ui.probe.ProbeIntrospector
-
public class ProbeIntrospector extends Object
Introspect objects and creates ProbeInfo out of them.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description ProbeIntrospector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProbeIntrospector
getInstance()
Gets the instance of the ProbeIntrospector.String
getProbeId(Object probedObject)
Gets the probe id for the specified object.ProbeInfo
getProbeInfo(Class<?> probedObjectClass)
Gets the ProbeInfo for the specified class.
-
-
-
Method Detail
-
getInstance
public static ProbeIntrospector getInstance()
Gets the instance of the ProbeIntrospector.- Returns:
- the instance of the ProbeIntrospector.
-
getProbeInfo
public ProbeInfo getProbeInfo(Class<?> probedObjectClass) throws IntrospectionException
Gets the ProbeInfo for the specified class.- Parameters:
probedObjectClass
- the class to get ProbeInfo for.- Returns:
- the ProbeInfo for the specified class.
- Throws:
IntrospectionException
- if there is getting the ProbeInfo.
-
getProbeId
public String getProbeId(Object probedObject)
Gets the probe id for the specified object. This will return the result of calling the method annotated with @ProbeId in specfied object, or the class name of the object if there is no- Parameters:
probedObject
-- Returns:
- the result of calling the method annotated with @ProbeId in specfied object, or the class name of the object if there is no
-
-