com.ibm.tws.objects.model
Class InterNetworkDependency

java.lang.Object
  extended bycom.ibm.tws.objects.model.InterNetworkDependency
All Implemented Interfaces:
java.io.Serializable, TWSLink

public class InterNetworkDependency
extends java.lang.Object
implements TWSLink

Inter-network dependencies model dependencies of jobs and job streams from targets in a remote TWS network. Since they can model dependencies in a very general way, a string is used to represent the dependency targets in place of the names of the remote job stream, job and worskation that may be involved in the dependency. In addition to this general-purpose value, the agent workstation that is responsible for the connection to the remote network is also specified.

The following syntax validation constraints must be met on InterNetworkDependency objects:

networkAgentKey Must reference an existing workstation
dependency Always required
Not longer than 255 characters

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
InterNetworkDependency()
          Creates an empty InterNetworkDependency.
InterNetworkDependency(FlowTargetKey key)
          Creates an InterNetworkDependency, specifying the key of the referenced network agent.
InterNetworkDependency(Identifier id)
          Creates an InterNetworkDependency, specifying the identifier of the referenced network agent.
InterNetworkDependency(Identifier id, FlowTargetKey key)
          Creates an InterNetworkDependency, specifying the identifier and key of the referenced network agent.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this InterNetworkDependency object are equal to those of the given one.
 java.lang.String getDependency()
          Returns the dependency value.
 Identifier getId()
          Returns the identifier of the network agent referenced by this dependency.
 Identifier getNetworkAgentId()
          Returns the identifier of the referenced network agent.
 FlowTargetKey getNetworkAgentKey()
          Returns the key of the referenced network agent.
 int hashCode()
          Returns a hash code for this InterNetworkDependency object.
 void setDependency(java.lang.String value)
          Sets the dependency value.
 void setNetworkAgentId(Identifier id)
          Sets the identifier of the referenced network agent.
 void setNetworkAgentKey(FlowTargetKey key)
          Sets the key of the referenced network agent.
 java.lang.String toString()
          Returns a string representation of this InterNetworkDependency object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

InterNetworkDependency

public InterNetworkDependency()
Creates an empty InterNetworkDependency.


InterNetworkDependency

public InterNetworkDependency(Identifier id)
Creates an InterNetworkDependency, specifying the identifier of the referenced network agent.

Parameters:
id - The identifier of the referenced network agent.

InterNetworkDependency

public InterNetworkDependency(FlowTargetKey key)
Creates an InterNetworkDependency, specifying the key of the referenced network agent.

Parameters:
key - The key of the referenced network agent.

InterNetworkDependency

public InterNetworkDependency(Identifier id,
                              FlowTargetKey key)
Creates an InterNetworkDependency, specifying the identifier and key of the referenced network agent.

Parameters:
id - The identifier of the referenced network agent.
key - The key of the referenced network agent.
Method Detail

getId

public Identifier getId()
Returns the identifier of the network agent referenced by this dependency.

Specified by:
getId in interface TWSLink
Returns:
The identifier of the network agent referenced by this dependency.

getNetworkAgentId

public Identifier getNetworkAgentId()
Returns the identifier of the referenced network agent.

Returns:
The identifier of the referenced network agent.

getNetworkAgentKey

public FlowTargetKey getNetworkAgentKey()
Returns the key of the referenced network agent.

Returns:
The key of the referenced network agent.

getDependency

public java.lang.String getDependency()
Returns the dependency value.

Returns:
The dependency value.

setNetworkAgentId

public void setNetworkAgentId(Identifier id)
Sets the identifier of the referenced network agent.

Parameters:
id - The identifier of the referenced network agent.

setNetworkAgentKey

public void setNetworkAgentKey(FlowTargetKey key)
Sets the key of the referenced network agent.

Parameters:
key - The key of the referenced network agent.

setDependency

public void setDependency(java.lang.String value)
Sets the dependency value.

Parameters:
value - The dependency value.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this InterNetworkDependency object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this InterNetworkDependency object.

Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this InterNetworkDependency object.

Returns:
A text string including all InterNetworkDependency fields.


Copyright © 2005 IBM All Rights Reserved.