com.objex.panywhere
Class TwinRelationship

java.lang.Object
  extended by com.objex.panywhere.Relationship
      extended by com.objex.panywhere.TwinRelationship
All Implemented Interfaces:
java.io.Serializable

public class TwinRelationship
extends Relationship
implements java.io.Serializable

Class defines the properties and methods of a relationship between twins, triplets and/or quadruplets. It enables the user to determine and/or manipulate at a more specific level the Twin Relationship type that exists between two or more Individuals are twins, quadruplets etc.

See Also:
Serialized Form

Constructor Summary
TwinRelationship()
          Creates a new TwinRelationship object
TwinRelationship(java.lang.String upn, java.lang.String type)
          Creates a new TwinRelationship object for Individual specified and with the Twin type types specified.
 
Method Summary
 boolean isDizygotic()
           
 boolean isMonozygotic()
           
 boolean isUnknown()
           
 void setDizygotic(boolean di)
          Sets the Dizygotic status of this Relationship Object
 void setMonozygotic(boolean mono)
          Sets the Monozygotic status of this Relationship Object
 void setUnknown(boolean uk)
          Sets the Unknown status of this Twin Relationship Object
 
Methods inherited from class com.objex.panywhere.Relationship
getType, getUpn, isCasual, isConsanguineous, isDivorced, isInfertile, isMarried, isNoissue, isSeparated, setCasual, setConsanguineous, setDivorced, setInfertile, setMarried, setNoissue, setSeparated, setType, setUpn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwinRelationship

public TwinRelationship()
Creates a new TwinRelationship object


TwinRelationship

public TwinRelationship(java.lang.String upn,
                        java.lang.String type)
Creates a new TwinRelationship object for Individual specified and with the Twin type types specified.

Parameters:
upn - The UPN of the Individual owning this twin Relationship object
type - The twin type for the new twi relationship.
Method Detail

setDizygotic

public void setDizygotic(boolean di)
Sets the Dizygotic status of this Relationship Object

Overrides:
setDizygotic in class Relationship
Parameters:
di - The new Dizygotic status

isDizygotic

public boolean isDizygotic()
Overrides:
isDizygotic in class Relationship
Returns:
The Dizygotic status of this relationship object

setMonozygotic

public void setMonozygotic(boolean mono)
Sets the Monozygotic status of this Relationship Object

Overrides:
setMonozygotic in class Relationship
Parameters:
mono - The new Monozygotic status

isMonozygotic

public boolean isMonozygotic()
Overrides:
isMonozygotic in class Relationship
Returns:
The Monozygotic status of this relationship object

setUnknown

public void setUnknown(boolean uk)
Sets the Unknown status of this Twin Relationship Object

Overrides:
setUnknown in class Relationship
Parameters:
uk - The new Dizygotic status

isUnknown

public boolean isUnknown()
Overrides:
isUnknown in class Relationship
Returns:
The Unknown status of this relationship object