notio
Class Actor

java.lang.Object
  |
  +--notio.Node
        |
        +--notio.Relation
              |
              +--notio.Actor
All Implemented Interfaces:
java.io.Serializable

public class Actor
extends Relation
implements java.io.Serializable

The actor node class.

See Also:
Serialized Form

Constructor Summary
Actor()
          Constructs an actor that has no type and no arguments.
Actor(Concept[] newArguments)
          Constructs an actor with no type and the specified arguments.
Actor(Concept[] newArguments, int newOutputStartIndex)
          Constructs an actor with no type and the specified arguments with output arguments starting at the specified index.
Actor(RelationType newType)
          Constructs an actor with the given type.
Actor(RelationType newType, Concept[] newArguments)
          Constructs an actor with the given type and arguments.
Actor(RelationType newType, Concept[] newInputArguments, Concept[] newOutputArguments)
          Constructs an actor with the given type and the specified input and output arguments.
Actor(RelationType newType, Concept[] newArguments, int newOutputStartIndex)
          Constructs an actor with the given type and arguments and output argument start index.
 
Method Summary
 Relation copy(CopyingScheme copyScheme)
          Performs a copy operation on this actor according to the the specified CopyingScheme.
 Relation copy(CopyingScheme copyScheme, java.util.Hashtable substitutionTable)
          Performs a copy operation on this actor according to the the specified CopyingScheme.
 
Methods inherited from class notio.Relation
getArguments, getInputArguments, getOutputArguments, getOutputStartIndex, getType, getValence, isComplete, matchRelations, relatesConcept, replaceArgument, replaceInputArgument, replaceOutputArgument, restrictTo, setArgument, setArguments, setInputArgument, setOutputArgument, setOutputStartIndex, setType
 
Methods inherited from class notio.Node
getComment, getEnclosingGraph, setComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Actor

public Actor(RelationType newType,
             Concept[] newArguments)
Constructs an actor with the given type and arguments. The last argument is assumed to be the sole output argument. The number of arguments must conform to the valence of the relation type unless it is unspecified in which case the valence is set to the number of arguments in the array.
Parameters:
newType - the type for this actor.
newArguments - the concepts related by this actor.

Actor

public Actor(RelationType newType,
             Concept[] newArguments,
             int newOutputStartIndex)
Constructs an actor with the given type and arguments and output argument start index. The number of arguments must conform to the valence of the relation type unless it is unspecified in which case the valence is set to the number of arguments in the array.
Parameters:
newType - the type for this actor.
newArguments - the concepts related by this actor.
newOutputStartIndex - the index into the newArguments array at which the output arcs start.

Actor

public Actor(RelationType newType,
             Concept[] newInputArguments,
             Concept[] newOutputArguments)
Constructs an actor with the given type and the specified input and output arguments. The number of arguments must conform to the valence of the relation type unless it is unspecified in which case the valence is set to the number of arguments in the array.
Parameters:
newType - the type for this actor.
newInputArguments - the input concepts related by this actor.
newOutputArguments - the output concepts related by this actor.

Actor

public Actor(RelationType newType)
Constructs an actor with the given type. The valence is taken from the specified type and the arguments are initialized to null. If the type's valence is unspecified, a zero-length argument array is used for construction. For a specified non-zero valence, the last argument is assumed to be the sole output argument.
Parameters:
newType - the type for this actor.

Actor

public Actor(Concept[] newArguments,
             int newOutputStartIndex)
Constructs an actor with no type and the specified arguments with output arguments starting at the specified index.
Parameters:
newArguments - the concepts related by this actor.
newOutputStartIndex - the index into the newArguments array at which the output arcs start.

Actor

public Actor(Concept[] newArguments)
Constructs an actor with no type and the specified arguments. For a non-zero valence, the last argument is assumed to be the sole output argument.
Parameters:
newArguments - the concepts related by this actor.

Actor

public Actor()
Constructs an actor that has no type and no arguments. The number of arguments is automatically set to zero.
Method Detail

copy

public Relation copy(CopyingScheme copyScheme)
Performs a copy operation on this actor according to the the specified CopyingScheme. The result may be a new node or simply a reference to this actor depending on the scheme. Note that the returned object is truly an Actor object even though the return type is Relation. This is because Java does not allow overriding of return types.
Overrides:
copy in class Relation
Parameters:
copyScheme - the copying scheme used to control the copy operation.
Returns:
the result of the copy operation.

copy

public Relation copy(CopyingScheme copyScheme,
                     java.util.Hashtable substitutionTable)
Performs a copy operation on this actor according to the the specified CopyingScheme. The result may be a new node or simply a reference to this actor depending on the scheme. Note that the returned object is truly an Actor object even though the return type is Relation. This is because Java does not allow overriding of return types.
Overrides:
copy in class Relation
Parameters:
copyScheme - the copying scheme used to control the copy operation.
substitutionTable - a hashtable containing copied objects available due to earlier copy operations.
Returns:
the result of the copy operation.


Copyright 1998-2001 Finnegan Southey