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
-
Association()
- Creates a new temporary association.
-
Association(String)
- Creates an association.
-
Association(String, String)
-
-
clear(Association)
- Clears the subassociation.
-
clear(Concept)
- Clears the concept.
-
clear(String)
- Clears the concept.
-
clone()
- Clones this association.
-
con()
-
-
con(Concept)
- Cons to an inassociation through the concept's name.
-
con(int)
- Cons to an inassociation through the connection identifier.
-
con(String)
- Cons to an inassociation through the name.
-
fix()
- Fixes a current connection pass as initial.
-
get(Association)
- Gets a subassociation.
-
get(Concept)
- Gets the concept.
-
get(String)
- Gets the concept.
-
getFirst()
- Gets the first concept of this association.
-
getLast()
- Gets the last concept of this association.
-
getNext()
- Gets the next concept of this association.
-
has()
- Detects quickly that this association has concepts.
-
regain()
- Regains the initial connection pass.
-
save()
- Saves all the changed nodes defined the association core.
-
see(Concept)
- Sees a subassociation of this through the concept's name.
-
see(int)
- Sees a subassociation of this through the conception type.
-
see(String)
- Sees a subassociation of this through the name.
-
set(Association)
- Sets the subassociation.
-
set(Concept)
- Sets the concept.
-
set(String)
- Sets the concept.
-
store()
- Saves all the changed nodes and frees operating memory.
-
update(Observable, Object)
- Registers out change.
Association
public Association()
- Creates a new temporary association.
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
Association
public Association(String path,
String name) throws IOException
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
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
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
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
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
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
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
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
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
fix
public synchronized void fix()
- Fixes a current connection pass as initial.
- See Also:
- regain
regain
public synchronized void regain()
- Regains the initial connection pass.
- See Also:
- fix
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
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
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
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
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
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
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
con
public Association con(String name)
- Cons to an inassociation through the name.
- Parameters:
- name - the inassociation's name
- Returns:
- this as an inassociation
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
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
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
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
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
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
con
public synchronized Association con()
All Packages Class Hierarchy This Package Previous Next Index