All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Sav.Association

java.lang.Object
   |
   +----Sav.Association

public class Association
extends Object
implements Cloneable, Observer
The Association representes a set of the connected concepts. Theory set operation, connecting the concepts and connection pass, extraction of the set, enumerative access to the concepts, fixing and regaining connection pass, storing association.

See Also:
Concept

Constructor Index

 o Association()
Creates a new temporary association.
 o Association(String)
Creates an association.
 o Association(String, String)

Method Index

 o clear(Association)
Clears the subassociation.
 o clear(Concept)
Clears the concept.
 o clear(String)
Clears the concept.
 o clone()
Clones this association.
 o con()
 o con(Concept)
Cons to an inassociation through the concept's name.
 o con(int)
Cons to an inassociation through the connection identifier.
 o con(String)
Cons to an inassociation through the name.
 o fix()
Fixes a current connection pass as initial.
 o get(Association)
Gets a subassociation.
 o get(Concept)
Gets the concept.
 o get(String)
Gets the concept.
 o getFirst()
Gets the first concept of this association.
 o getLast()
Gets the last concept of this association.
 o getNext()
Gets the next concept of this association.
 o has()
Detects quickly that this association has concepts.
 o regain()
Regains the initial connection pass.
 o save()
Saves all the changed nodes defined the association core.
 o see(Concept)
Sees a subassociation of this through the concept's name.
 o see(int)
Sees a subassociation of this through the conception type.
 o see(String)
Sees a subassociation of this through the name.
 o set(Association)
Sets the subassociation.
 o set(Concept)
Sets the concept.
 o set(String)
Sets the concept.
 o store()
Saves all the changed nodes and frees operating memory.
 o update(Observable, Object)
Registers out change.

Constructors

 o Association
 public Association()
Creates a new temporary association.

 o Association
 public Association(String name) throws IOException
Creates an association.

Parameters:
name - the association's name
Throws: IOException
when reading the initial block of the existent file
 o Association
 public Association(String path,
                    String name) throws IOException

Methods

 o update
 public void update(Observable o,
                    Object arg)
Registers out change. It is called other association with the same core.

Parameters:
o - the association core
arg - the argument
See Also:
Observer
 o get
 public synchronized Association get(Association ass) throws IOException
Gets a subassociation.

Parameters:
ass - the subassociation
Returns:
a new temporary association being the subassociation of this
Throws: IOException
when reading a block of this or ass
 o set
 public synchronized Association set(Association ass) throws IOException, InterruptedException
Sets the subassociation.

Parameters:
ass - the subassociation
Returns:
this association
Throws: IOException
when reading a block of this or ass
 o clear
 public synchronized Association clear(Association ass) throws IOException, InterruptedException
Clears the subassociation.

Parameters:
ass - the subassociation
Returns:
this association
Throws: IOException
when reading a block of this or ass
 o get
 public synchronized Concept get(Concept cnc) throws IOException
Gets the concept.

Parameters:
cnc - the concept
Returns:
the concept
Throws: IOException
when reading a block of this
 o set
 public synchronized Association set(Concept cnc) throws IOException, InterruptedException
Sets the concept.

Parameters:
cnc - the concept
Returns:
this association
Throws: IOException
when reading a block of this
 o clear
 public synchronized Association clear(Concept cnc) throws IOException, InterruptedException
Clears the concept.

Parameters:
cnc - the concept
Returns:
this association
Throws: IOException
when reading a block of this
 o save
 public void save() throws IOException, InterruptedException
Saves all the changed nodes defined the association core. The name of the saving file matches this association's name or is "Temporary" if the asociation dosen't have name. The file's name has ".ass" extension.

Throws: IOException
when writing a block of this or reading a free addresses block
 o store
 public void store() throws IOException, InterruptedException
Saves all the changed nodes and frees operating memory.

Throws: IOException
when writing a block of this or reading a free addresses block
See Also:
save
 o fix
 public synchronized void fix()
Fixes a current connection pass as initial.

See Also:
regain
 o regain
 public synchronized void regain()
Regains the initial connection pass.

See Also:
fix
 o con
 public synchronized Association con(Concept cnc)
Cons to an inassociation through the concept's name.

Parameters:
cnc - the concept
Returns:
this as an inassociation
 o con
 public synchronized Association con(int connection)
Cons to an inassociation through the connection identifier.

Parameters:
connection - the connection identifier (PN constant)
Returns:
this as an inassociation
See Also:
PN
 o see
 public synchronized Association see(Concept cnc)
Sees a subassociation of this through the concept's name.

Parameters:
cnc - the concept
Returns:
this as a subassociation
 o see
 public synchronized Association see(int conception)
Sees a subassociation of this through the conception type.

Parameters:
conception - the conception type (PN constant)
Returns:
this as a subassociation
See Also:
PN
 o get
 public Concept get(String name) throws IOException
Gets the concept.

Parameters:
name - the concept's name
Returns:
the concept
Throws: IOException
when reading a block of this
 o set
 public Association set(String name) throws IOException, InterruptedException
Sets the concept.

Parameters:
name - the concept's name
Returns:
this association
Throws: IOException
when reading a block of this
 o clear
 public Association clear(String name) throws IOException, InterruptedException
Clears the concept.

Parameters:
name - the concept's name
Returns:
this association
Throws: IOException
when reading a block of this
 o con
 public Association con(String name)
Cons to an inassociation through the name.

Parameters:
name - the inassociation's name
Returns:
this as an inassociation
 o see
 public Association see(String name)
Sees a subassociation of this through the name.

Parameters:
name - the subassociation's name
Returns:
this as a subassociation
 o getFirst
 public synchronized Concept getFirst() throws IOException
Gets the first concept of this association.

Returns:
the first concept
Throws: IOException
when reading a block of this
 o getNext
 public synchronized Concept getNext() throws IOException
Gets the next concept of this association.

Returns:
the next concept
Throws: IOException
when reading a block of this
 o clone
 public synchronized Object clone() throws CloneNotSupportedException
Clones this association.

Returns:
a new object
Throws: CloneNotSupportedException
if this hasn't cloned
Overrides:
clone in class Object
 o has
 public boolean has() throws IOException
Detects quickly that this association has concepts.

Returns:
true if this association is not empty
Throws: IOException
when reading a block of this
 o getLast
 public synchronized Concept getLast() throws IOException
Gets the last concept of this association.

Returns:
the last concept
Throws: IOException
when reading a block of this
 o con
 public synchronized Association con()

All Packages  Class Hierarchy  This Package  Previous  Next  Index