PerfExplorer 2.0

edu.uoregon.tau.perfexplorer.rules
Class FactWrapper

Object
  extended by FactWrapper

public class FactWrapper
extends Object

This class is used as a simple wrapper to create simple facts. For more complex fact objects, implement the SelfAsserting interface.

Since:
2.0
Author:
khuck
See Also:
SelfAsserting

Constructor Summary
FactWrapper(String factName, String factType, Object factData)
          Constructor method.
 
Method Summary
 Object getFactData()
          Return the object stored in the FactWrapper object.
 FactHandle getFactHandle()
          Return the handle of the fact.
 String getFactName()
          Return the name of the fact.
 String getFactType()
          Return the type of the fact.
 void setFactData(Object factData)
          Set the object in the FactWrapper.
 void setFactHandle(FactHandle handle)
          Set the handle of the fact.
 void setFactName(String factName)
          Set the name of the Fact.
 void setFactType(String factType)
          Set the type of the fact.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactWrapper

public FactWrapper(String factName,
                   String factType,
                   Object factData)
Constructor method.

Parameters:
factName - The name of the fact
factType - The type of the fact
factData - The object that this fact wrapper will contain
Method Detail

getFactData

public Object getFactData()
Return the object stored in the FactWrapper object.

Returns:
the factData
See Also:
setFactData(java.lang.Object)

getFactHandle

public FactHandle getFactHandle()
Return the handle of the fact.

Returns:
the handle
See Also:
setFactHandle(org.drools.FactHandle)

getFactName

public String getFactName()
Return the name of the fact.

Returns:
the factName
See Also:
setFactName(java.lang.String)

getFactType

public String getFactType()
Return the type of the fact.

Returns:
the factType
See Also:
setFactType(java.lang.String)

setFactData

public void setFactData(Object factData)
Set the object in the FactWrapper.

Parameters:
factData - the factData to set
See Also:
getFactData()

setFactHandle

public void setFactHandle(FactHandle handle)
Set the handle of the fact.

Parameters:
handle - the handle to set
See Also:
getFactHandle()

setFactName

public void setFactName(String factName)
Set the name of the Fact.

Parameters:
factName - the factName to set
See Also:
getFactName()

setFactType

public void setFactType(String factType)
Set the type of the fact.

Parameters:
factType - the factType to set
See Also:
getFactType()

PerfExplorer 2.0

****************************************************************************
Copyright 1997-2009
Department of Computer and Information Science, University of Oregon
Advanced Computing Laboratory, Los Alamos National Laboratory
Juelich Supercomputing Centre, Research Center Juelich, Germany
http://tau.uoregon.edu
****************************************************************************
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of University of Oregon (UO) and Los Alamos National Laboratory (LANL) not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. The University of Oregon and LANL makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

THE UNIVERSITY OF OREGON AND LANL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF OREGON OR LANL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.