net.sourceforge.fuzzyservices.beans
Class MembershipFunctionPoint

java.lang.Object
  extended by net.sourceforge.fuzzyservices.beans.MembershipFunctionPoint
All Implemented Interfaces:
Serializable, Cloneable

public class MembershipFunctionPoint
extends Object
implements Cloneable, Serializable

This class represents a point on a membership function according to JavaBeans conventions.

Version:
1.0
Author:
Uwe Weng
See Also:
MembershipFunctionPoint, Serialized Form

Constructor Summary
MembershipFunctionPoint()
          Default MembershipFunctionPoint constructor.
MembershipFunctionPoint(float newX, float newDegreeOfMembership)
          Constructs a MembershipFunctionPoint which is initialized with x as x value and newDegreeOfMembership as degree of membership of this x value.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 float getDegreeOfMembership()
          Returns the degree of membership of this point.
 float getX()
          Returns the x value of this point.
 int hashCode()
           
 void setDegreeOfMembership(float aDegreeOfMembership)
          Sets the degree of membership of this point.
 void setX(float xValue)
          Sets the x value of this point.
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MembershipFunctionPoint

public MembershipFunctionPoint()
Default MembershipFunctionPoint constructor. Both x value and degree of membership are 0.0.


MembershipFunctionPoint

public MembershipFunctionPoint(float newX,
                               float newDegreeOfMembership)
Constructs a MembershipFunctionPoint which is initialized with x as x value and newDegreeOfMembership as degree of membership of this x value.

Parameters:
newX - the x value
newDegreeOfMembership - the degree of membership to the x value
Method Detail

getX

public final float getX()
Returns the x value of this point.

Returns:
the x property
See Also:
setX(float)

getDegreeOfMembership

public final float getDegreeOfMembership()
Returns the degree of membership of this point.

Returns:
the degreeOfMembership property
See Also:
setDegreeOfMembership(float)

setDegreeOfMembership

public final void setDegreeOfMembership(float aDegreeOfMembership)
Sets the degree of membership of this point.

Parameters:
aDegreeOfMembership - The new value for the property.
See Also:
getDegreeOfMembership()

setX

public final void setX(float xValue)
Sets the x value of this point.

Parameters:
xValue - The new value for the property.
See Also:
getX()

clone

public Object clone()
Overrides:
clone in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 Fuzzy Services. All Rights Reserved.